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 / Flow does not work whe...
Power Automate
Unanswered

Flow does not work when a response is submitted without an attachment through MS form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a flow to create items in list when a response is submitted via MS form, especially when the attachment is image(jpg,png,jpeg) such that it should reflect in the list.
However, the flow throws an error when an attachment is not present is there a way that the flow runs even if no attachment is present, I tried using condition but for some reason it throws an error. 

SVenkadesh_0-1688380711761.png

SVenkadesh_1-1688380734168.png

pujabogati_0-1689685089037.png

 

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Anonymous ,

     

    In you JSON schema , please change the type of that to any and that should work fine good.

     

    If this helps , please give this answer a thumbs up and accept this as a solution.

     

    Thanks,

    Sanmesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @SanmeshG ,

    I removed the 'required' property from json schema but it still throws following error.

    pujabogati_0-1690188291391.png

     

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Anonymous  ,

     

    Sorry you should change the type of the property (Which is causing an error) to any instead in the beginning , in the JSON schema.

     

    Else can you paste the JSON schema / data here?

     

    Thanks,

    Sanmesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @SanmeshG 

    Please find below the json schema:

    {
        "type":"array",
        "items": {
            "type""object",
            "properties": {
                "name": {
                    "type""string"
                },
                "link": {
                    "type""string"
                },
                "id": {
                    "type""string"
                },
                "type": {},
                "size": {
                    "type""integer"
                },
                "referenceId": {
                    "type""string"
                },
                "driveId": {
                    "type""string"
                },
                "status": {
                    "type""integer"
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Anonymous  ,

     

    1. I think you can have a condition to check, if the array is empty using the empty function in Power Automate  before you parse the JSON , and you can include the Parse JSON action inside a condition where it is not empty (Parse JSON if that array is not empty

    2. Else you can completely skip the Parse JSON action and change the approach a little bit , you can check out the below video by Raza , where he has showcased the exact use case. 

     

    https://www.youtube.com/watch?v=K-hiDOPAG-4

     

    If this helps , please give this a thumbs up and accept this as a solution.

     

    Thanks, 

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 62 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard