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 Apps - Building Power Apps
Suggested answer

Code to correct

(0) ShareShare
ReportReport
Posted on by 5
Dear Team, can anyone help me with the below error code, please? I would like to skip Parse JSON to not feed anything, but not sure how to do that. Thank you. 

InvalidTemplate. 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 ''.'.
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    3,886 Super User 2025 Season 2 on at
    Code to correct
     
    Use a Condition to Check for Valid Content
    • Step 1 - Add a Condition before Parse JSON
    and(
      not(empty(outputs('Your_Previous_Action')?['body'])),
      length(outputs('Your_Previous_Action')?['body']) > 0
    )
    
    Replace 'Your_Previous_Action' with the name of the step that provides the JSON content. This ensures the content is not null and the content is not an empty array
    • Step 2 -  Move Parse JSON into the "If yes" branch - Only run Parse JSON if the condition is true.
    • Step 3 -  Handle the "If no" branch - Skip it entirely / Or set a variable to an empty object/array.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
  • CU30091014-0 Profile Picture
    5 on at
    Code to correct
    Thank you @developerAJ. Your help is much appreciated :) 
     
    Please see the code: 
    Content is Outputs. 
    Schema: 
     
        "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": {}
            }
        }
    }
     
     
  • Suggested answer
    developerAJ Profile Picture
    3,386 on at
    Code to correct
    This looks like a Flow issue. You’re using the Parse JSON action, and the error occurs because it expects the content property to be non-empty, but the input you’re passing is null. If the content field is optional, you can remove it from the required properties to allow null values. If you share the code you’ve pasted, I can provide you with the replacement code.
     

    If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!

    🤝 Let’s connect on LinkedIn || 📘 Explore more on my articles

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 1,019 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 436

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 281 Super User 2025 Season 2

Last 30 days Overall leaderboard