Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Pass null image value in JSON

(0) ShareShare
ReportReport
Posted on by 13

Hi,

 

I have created a flow connecting MS Forms to MS excel. There is an option to upload a picture, however I want to make it optional. If form is submitted without a picture I get an error as

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

I tried finding solution for this exact question, but unfortunately couldn't. 

 

PARSE JSON:

{
    "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"
        ]
    }
}
 
zaidkhan20_0-1671427337246.png

 

Help will be appreciated.

Thanks

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Pass null image value in JSON

    Hi @zaidkhan20 ,

    Do you want:
    1. The user submits the Form and uses excel to collect user information?

     

     

    Here is a test for your reference:

    Here is form

    vchengfenmsft_0-1671428741213.png

    Here is excel

    vchengfenmsft_1-1671429006153.png

    Here is flow:

    (Because there will be cases where the user does not submit a picture, [Condition] needs to be set)

    vchengfenmsft_2-1671429527206.png

    Because I don't know how you collect the pictures into excel, I put the pictures into excel in the form of Uri

    vchengfenmsft_3-1671429607581.png

     

    Test 1 (user submitted image)

    vchengfenmsft_4-1671429674404.pngvchengfenmsft_5-1671429733924.png

     

    Test 2 (User has not submitted an image):

    vchengfenmsft_6-1671429878620.pngvchengfenmsft_7-1671429934498.png

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

     

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Pass null image value in JSON

    Hi @zaidkhan20,

    Please Confirm the Name of Property Where You Are Receive Picture Content. and try to remove from Required section of that property where you generate Json template.

     

    Please Send me output of Get response details Action If I misunderstood the requirement.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1