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 / Parsing Json to get li...
Power Automate
Unanswered

Parsing Json to get link to optional file

(0) ShareShare
ReportReport
Posted on by 12

Hello all,

may I ask for a quick help? I have a PowerAutomate flow to update MS list when new MS Form is submitted. One of the MS Form´s field is to upload screenshot, but it is optional.

The problem is, Flow fails if file is not uploaded, saying:

**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 ''.**

 

Any idea how to make it work even if file is not uploaded?

 

Eske939_0-1698739728236.png

 

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Eske939 

    According to your error code "'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null.".

    This seems to be due to the fact that the json argument you passed in doesn't match the Type of your parsing. For example, if you set the String type in Parse Json, but you pass in null, an error will be reported.

    Here are the steps you can refer to :

    vyueyunmsft_0-1698740961794.png

    "type": ["string","null"]
     
    Second, for extracting the values in Json, we can directly use Expression to get them, such as the value of the Vary field here:
    outputs('Compose')? ['headers']? ['Vary']
     
    Best Regards,
    Yueyun Zhang
  • Chriddle Profile Picture
    8,634 Super User 2026 Season 1 on at

    If the field is optional, you should remove it from the required list in the schema 😉

  • Eske939 Profile Picture
    12 on at

    Hello  @v-yueyun-msft 

    thanks for getting back. My "type" is Parsing Json. How do I know which to modify?

     

    What do you mean by ** Vary ** in second reply?

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Eske939 

    Thanks for your quick response , in my understand , you can try to modify the schema in Parse Json action:

    vyueyunmsft_0-1698976600636.png

    And you can see the type for each key , you need to find the error key and modify its type as my above reply.

     

    And the second reply "Vary" is just one of the key in my Json String .

    vyueyunmsft_1-1698976698610.png

     

     

    Best Regards,

    Yueyun Zhang

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

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard