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 Automate
Unanswered

Parse JSON Error

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I am trying to run a flow to pick up form responses and also add the embedded attachment within the form into a SharePoint List.

 

I have added the PARSE JSON etc. and this works really well - apart from that the attachment isn't present on all branches of the form.  So the responses that do not contain an attachment are creating an error at the PARSE stage of the flow.

Capture.PNG

The error in this instance is:

Unable to process template language expressions in action 'Parse_JSON' inputs at line '1' and column '32007': 'Required property 'content' expects a value but got null. Path ''.'.

 

The flow is attached, and the schema within the PARSE action is:

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "link": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "id": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": {},
            "size": {
                "type": [
                    "integer",
                    "null"
                ]
            },
            "referenceId": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "driveId": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "status": {
                "type": [
                    "integer",
                    "null"
                ]
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}
 
The only way around it I can think of is to build in a condition at the beginning of the flow to make the different branches of the form follow different paths in the flow but this seems complicated.
 
Please advise!
D
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,037 Most Valuable Professional on at

    Take a look at the following post.  ParseJSON action does not accept valid null value ... - Power Platform Community (microsoft.com)

    The problem is that the ParseJSON action builds a default schema that expects every property to have a value.  You can modify the schema so the properties can either have a value or be null.  That will remove the error.

  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @D110,

     

    I have a quick question. Are you allowed to make that attachment question required in the Microsoft Forms? That's potentially the easiest fix.

     

    Btw, I am assuming you are parsing the Question itself and not the whole body of the response, looking at your schema.

     

    Another option could be to use an expression to check if the response of the question is empty and use that in a condition. Replace the id with your question id btw.

     

     

    empty(outputs('Get_response_details')?['body/rb6300447760b4ab1b66fc97ef9017f2a'])

     

    isquestionempty02.png

     

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
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard