web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Parse JSON Error

(0) ShareShare
ReportReport
Posted on by 31

 

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

Categories:
I have the same question (0)
  • EmployeeA Profile Picture
    31 on at
    Re: Parse JSON Error

    picture 1 parse json error.png

     

  • efialttes Profile Picture
    14,756 on at
    Re: Parse JSON Error

    Hi!

    It sounds like one of the answers was left empty so the property does not exist (null).

    Can you share a screenshot from your Parse JSON input, and also from the JSON sintax you currently chose?

    Thanx!

  • EmployeeA Profile Picture
    31 on at
    Re: Parse JSON Error

    { "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" ] } }

     

    7.png

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    Re: Parse JSON Error
    Hello @EmployeeA

    Can you try this:

    { "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": {} }} }


    If the above does not work. Please add a Compose action before the Parse Json action.
    In the Compose put the dynamic content you are referencing in the parse JSON.
    This is just to see what the JSON output looks like from the run.

    —Josh
    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Parse JSON Error

     

    Hi @EmployeeA ,

     

    There are two ways to solve this issue.

     

    The first one is set the file upload required.

    12.PNG

    Another method is to use length() function to check if the user has uploaded the file.

    13.PNG

    Hope this helps.

     

    Best Regards,

  • jleesalsero Profile Picture
    8 on at
    Re: Parse JSON Error

    Hi Guys,

     

    I am new to this automation and trying to figure out ways to attaching a uploaded file on forms to sharepoint item as an attachment.

    -filled out a form

    -uploaded two docx files

    -found out you need to use get file content for onedrive business to attach files to the sharepoint list/item

    -found out you have to parse forms upload into json to get id for onedrive file content id

    -I have visited all recent blogs and posts copying and pasting a known-working schema

    -confirmed file already uploaded via forms

    -fails with same error message : 

     
    InvalidTemplate. Unable to process template language expressions in action 'Parse_JSON' inputs at line '1' and column '2856': 'Required property 'content' expects a value but got null. Path ''.'.
     
     
    Please advise
  • efialttes Profile Picture
    14,756 on at
    Re: Parse JSON Error

    @jleesalsero wrote:

    Hi Guys,

     

    I am new to this automation and trying to figure out ways to attaching a uploaded file on forms to sharepoint item as an attachment.

    -filled out a form

    -uploaded two docx files

    -found out you need to use get file content for onedrive business to attach files to the sharepoint list/item

    -found out you have to parse forms upload into json to get id for onedrive file content id

    -I have visited all recent blogs and posts copying and pasting a known-working schema

    -confirmed file already uploaded via forms

    -fails with same error message : 

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

    Hi!

    My humble suggestion is to open a new topic. Superusers tend to pay more attention to unanswered topics, and this one already ave been marked as solved

    Thanx!

  • Hameed_Hussain Profile Picture
    28 on at
    Re: Parse JSON Error

    As far as why this is happening, the output from your flow isn't returning a result, check the call that you're making to the API/entity. 

    As far as the error definition, it clearly tells you that the output is empty/null, and therefore parse json cannot parse a null value. Never parse json without checking for a null value. In order to avoid this error, you have to check if the body value is null, and then parse JSON. (However you can avoid checking for null, if you know for sure that your output will always yield a json result)

     

    Check if the returned json is null

     
     

    1.PNG

  • Community Power Platform Member Profile Picture
    on at
    Re: Parse JSON Error

    Hello, 

     

    I did as you told and my flow is still not getting this condition.

    This is how I done it:

    TomasBan_2-1611839020789.png

     

    And this is the result:

    TomasBan_3-1611839100054.png

     

    Do you have an idea what might be the case here?

    Been trying to search it but with no success

  • 5013 Profile Picture
    9 on at
    Re: Parse JSON Error

    Hi TomasBan, it is also not working for me. I tried all the proposed solutions and even included "null" to every JSON property but without success in getting rid of the JSON error. Did you maybe found a solution?

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

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard