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

Community site session details

Session Id : jAL++7naS5AZyjW08aNiCk
Power Automate - Building Flows
Answered

Flow failed if no attachment in Microsoft Forms

Like (1) ShareShare
ReportReport
Posted on 5 Apr 2020 13:13:29 by

Hi, 

I have created a Microsoft Forms with Upload File attachment and then added the actions of "When a new response is submitted" -> "Get response details"-> "Parse JASON" -> "Get File content using path" -> "Send and email" to include the attachment or as a link in an email. However, I found that if there is no attachment in the Forms, the flow would be failed.  

 

Can I have some advices on how to fix this issue? Is there a condition action that I have to add? Thanks. 

 

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 08 Apr 2021 at 16:36:48
    Re: Flow failed if no attachment in Microsoft Forms

    @ChristianAbata  kindly assist me with this also with same issue but mine is for an approval request.
    I want the the flow to be able to function with an attachment in the form.
    It gives an error when there is no attachment.

    Capture2.PNG

  • Jcook Profile Picture
    7,779 Most Valuable Professional on 26 Jun 2020 at 18:41:50
    Re: Flow failed if no attachment in Microsoft Forms

    @Anonymous 

     

    Please create a new post. That way all users and Super Users, will be able to find and help you.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on 26 Jun 2020 at 12:10:47
    Re: Flow failed if no attachment in Microsoft Forms

    @ChristianAbata @Anonymous  I have similar requirement to create an attachment in ADO when Microsoft Form is submitted. I guess there is no direct attachment option available. Is there any way we could do this.  I tried using "Send an HTTP request  to Azure Devops" but is throwing an error.I believe the parameters what is provided is wrong.  Could you please help me getting the correct logic for attachment.Ado attachment flow.JPGADO attchement errorJPG.JPG

    This is a project requirement and need some quick assistance. Appreciate your support. Thanks in advance.

     

    Regards,

    Bharat

  • Community Power Platform Member Profile Picture
    on 06 Apr 2020 at 12:25:57
    Re: Flow failed if no attachment in Microsoft Forms

    @ChristianAbataThanks a lot. It works perfectly. 

  • Verified answer
    ChristianAbata Profile Picture
    8,949 Most Valuable Professional on 06 Apr 2020 at 12:08:40
    Re: Flow failed if no attachment in Microsoft Forms

    hi @Anonymous  please follow this steps to add a condition if the form response don't have attachments.

    Flow3.PNG

  • v-bacao-msft Profile Picture
    on 06 Apr 2020 at 02:10:41
    Re: Flow failed if no attachment in Microsoft Forms

     

    Hi @Anonymous ,

     

    Please check the same thread and see if it helps:

    https://powerusers.microsoft.com/t5/Building-Flows/Flow-failed-if-no-attachment-in-Microsoft-Forms/m-p/516646

     

    Best Regards,

  • Jcook Profile Picture
    7,779 Most Valuable Professional on 05 Apr 2020 at 23:49:46
    Re: Flow failed if no attachment in Microsoft Forms
    Hi @Anonymous

    Can you try:
    In your JSON schema, change:
    "content": {
    "type": [
    "number",
    "null"
    ]
    },

    To:
    "content": {
    },
  • Community Power Platform Member Profile Picture
    on 05 Apr 2020 at 17:14:24
    Re: Flow failed if no attachment in Microsoft Forms

    @ChristianAbataJust tried, if I don't have any attachment in the form, the flow failed. Did I miss anything in the flow setting? 

     

    Flow2.PNG

     

  • ChristianAbata Profile Picture
    8,949 Most Valuable Professional on 05 Apr 2020 at 17:01:04
    Re: Flow failed if no attachment in Microsoft Forms

    yes @Anonymous  but if you want to use the value in compose into get file content (One Drive) you need to drag the action inside apply to each is the same for devops action.

  • Community Power Platform Member Profile Picture
    on 05 Apr 2020 at 16:56:58
    Re: Flow failed if no attachment in Microsoft Forms

    @ChristianAbataAppreciate your flow guidance. Since I only have one field "Attachments" in the form, can you advise if my flow setting is correct? Flow.PNG

     

    Flow1.PNG

     

    And using the schema with empty content 

     "content": {},

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2