web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / prevent empty content ...
Power Automate
Answered

prevent empty content error when attaching content to a Sharepoint List item

(0) ShareShare
ReportReport
Posted on by 274

I am creating a List item with content that may or may not include photo attachments.

 

If the user does not take a photo, my flow fails. The file content field uses the expression:

base64ToBinary(triggerBody()['Addattachment_FileContent'])

 

How would you prevent the error?

 

mobilismexico_0-1658079349366.png

 

Categories:
  • Verified answer
    mobilismexico Profile Picture
    274 on at

    I created a conditional branch. That's it.

     

    mobilismexico_0-1658080244803.png

     

    Posting my questions helps think about ways to test possible solutions.

  • Verified answer
    900cut Profile Picture
    27 on at

    Hi @mobilismexico , can you add a condition before the adding attachment? If there is an attachment, you add it. If there is no, do nothing

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard