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 / Pass null image value ...
Power Automate
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

Categories:
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    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.

  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    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

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard