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 / Power Automate Flow Fa...
Power Automate
Answered

Power Automate Flow Failing on Form Submissions Without Attachments - Need Help

(2) ShareShare
ReportReport
Posted on by 394

Hi all,

I have a flow that starts with a form submission, which may include an attachment if the user adds one. The form details, along with any attachment, are automatically sent to a SharePoint list via Power Automate, with a query to handle the attachment upload.

However, I'm encountering an issue: when users submit the form without an attachment, the flow fails.

My question is, how can I configure the flow to handle form submissions both with and without attachments, so that the flow works smoothly in either case and doesn't fail when no attachment is included?

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at
    Hi

    Here is my tutorial video explaining about this.
     

    Add an IF condition and map the question response related to the attachment. On the right hand side of the condition leave it blank.
     
    See below
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    Hi
     
    For future reference, remember we cannot see the flows or failures, so any answers are based on guesses and experience.
     
    please share the flow run and inputs etc and be clear on what the failure is and where :-) so we can help faster.
     
    The answer is fairly simple though, you have code that you expect to run, but the actual values you are using are blank, which is going to cause an issue.
     
    Its up t you to validate that there are attachments (or in other flows, records, or data at all) before you try to use data that isn't there, or it will fail.
     
    So you need to validate if the attachment is there, using a condition (like abm says). I didnt watch their tutorial but they know what they are talking about.
     
    I just wanted to clarify in words to help you understand. This isn't just about this flow, its a best practice in any flow, for any condition that is going to use data from Get Items or Get Item or List Rows etc etc etc to check that you actually have data prior to attempting to use it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 495

#3
Vish WR Profile Picture

Vish WR 429

Last 30 days Overall leaderboard