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 / Parse Jason null value
Power Automate
Suggested Answer

Parse Jason null value

(0) ShareShare
ReportReport
Posted on by 11
I am building a data request flow, this involves creating and MS form and ambeding it in sharepoint list for team members to fill, then a sharepoint list is created. One the questions on the MS form ask requester to either upload a document is neccessary but can also be left blank without uploading. I realize whenever the requester uploads a document on the MS forms when submitting , the flow runs succesfully , but if no document is not uploaded, the flow fails with the below error message. how can I make sure that the flow runs even without document upload? Thank you all
 
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at
    Add a condition to your flow to check if there are attachments added to the question:
    You can use the length expression to get the number of attachments added to the question and check if it is greater than 0:
    The expression used:
    length(outputs('Get_response_details')?['body/yourquestionwithattachments'])
     
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Hey Mate, How does you JSON look like, you handle null values in ParseJSON schema as well. For example -
     

    "FileContent":

                                    {
                                       "type": [
                                                    "string",
                                                    "null"
                                                   ]
                                }

     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
     
  • dominique2001 Profile Picture
    11 on at
    @CFernandes  . Thank you so much, I believe yours will work. Can you tell me how I can go about this? below is my Parsed Jason
     
    {
        "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"
            ]
        }
    }
     
     
    Below is what I tried after your answer. still did not work
    {
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "name": {
                    "type": ["string", "null"]
                },
                "link": {
                    "type": ["string", "null"]
                },
                "id": {
                    "type": ["string", "null"]
                },
                "type": {
                    "type": ["string", "null"]
                },
                "size": {
                    "type": ["integer", "null"]
                },
                "referenceId": {
                    "type": ["string", "null"]
                },
                "driveId": {
                    "type": ["string", "null"]
                },
                "status": {
                    "type": ["integer", "null"]
                },
                "uploadSessionUrl": {
                    "type": ["string", "null"]
                }
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard