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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow with approval and...
Power Automate
Unanswered

Flow with approval and null attachment

(0) ShareShare
ReportReport
Posted on by 52

Hi, I have a flow which has a Microsoft Form as its source data which has a branching question which asks for a file upload. As such, not all submissions have an attachment. While I found the solution to allow the flow to run without an attachment by using a condition with the upload field is equal to "null", which does allow it to the next steps... the approvals step further down is failing stating BadRequest. The request failed. Error code: 'InvalidAttachmentName'. Error Message: 'The attachment name '<null>' is invalid.'. 

 

Is there any way to handle the null attachment within the approval to allow it to proceed even if a file is not attached? 

 

ademboski_0-1666280926054.png

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @ademboski ,

     

    Maybe not the most elegant solution, but it will get the job done: https://powerusers.microsoft.com/t5/General-Power-Automate/Can-MS-Flow-Send-An-Email-With-An-Empty-Attachments-Array/td-p/275470

     

    Basically create two versions of the action: one  with and one without the attachement. Then have insert a condition to determine if there is an attachment and execute the corresponding action.

  • ademboski Profile Picture
    52 on at

    Hi, while I do understand the solution proposed, I dont understand how to exclude the attachment field from the approval even though its taking the path of no file attached. I am not including the attachment field on the approval; it is just that the approval sees the field from the get response details being a file attachment field which is empty and it fails. I did not pick up from the link how that could be excluded. I am doing the very similar process in my screenshot of taking path for when an attachment is not present, which did allow it to get to the approval step, but the approval still sees the field. 

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @ademboski ,

     

    Can you please post a screenshot?

  • ademboski Profile Picture
    52 on at

    Hi, I did post a screenshot. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard