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 / Null Value Error in Pa...
Power Automate
Unanswered

Null Value Error in Parse JSON

(0) ShareShare
ReportReport
Posted on by

Hello I receive the following error when running my flow.

 

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

 

Below is my Parse 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"
        ]
    }
}
 
 

The flow is pulling picture attachments from a Microsoft Form and putting it into a sharepoint grid. I want it to allow a null value, but I'm not entirely sure how. There are multiple attachments from different forms questions. I am still fairly new to this, so any help would be appreciated. Thank you!

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    The problem is that the value you are trying to Parse is null.  You need to put a condition in to evaluate the value before you feed it to the Parse JSON.  If the value is empty (null) then you need to bypass the parse JSON or use a Parse JSON that is using static content.

  • Community Power Platform Member Profile Picture
    on at

    Thanks Pstork1,

    Would you be able to elaborate a bit more on how to bypass the parse JSON if it is null?

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Put a condition before the Parse JSON action and test the input to see if its blank.  only execute the Parse JSON step if the input isn't blank.

    image.png

  • Community Power Platform Member Profile Picture
    on at

    I am still receiving the same error message.

    COmike10_0-1608057814214.png

     

  • Suggested answer
    Hellen ramos Profile Picture
    12 on at
    Hey! 
    Try to modify your array like this:

    {
        "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": {}
            }
        }
    }
     
    Every time you need to pass values that may be empty, you need to add the "null" type in the parse and remove the required part.
     
    Hope it helped!

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard