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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to solve the probl...
Power Automate
Unanswered

How to solve the problem of this errormessage

(0) ShareShare
ReportReport
Posted on by

Errormessage:

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

 

About my workflow: 

1 - Microsoft Form is filled and if necessary a picture is uploaded

2 - If a picture is uploaded, the flow is running without problems, but if there are no picture uploaded i get this message

 

I have an idea how to solve the problem => with a condition (some steps would be duplicated by this: Subsequent steps)

is it possible to solve this problem more "professionally"?

 

 

Parse JSON:

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type""string"
            },
            "link": {
                "type""string"
            },
            "id": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "type": {},
            "size": {
                "type""integer"
            },
            "referenceId": {
                "type""string"
            },
            "driveId": {
                "type""string"
            },
            "status": {
                "type""integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}

 

 

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

     

    Try editing the Parse JSON schema 
     
    "type": "string"
     
    to
     
    "type": ["string","null"]
     
    Do the same for all other attributes which are optional.
     
    Thanks
     
     
     
  • Community Power Platform Member Profile Picture
    on at

    Thanks for the quick reply.
    Now I tried, but the problem with the new code was not solved:

     

    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "name": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "link": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "id": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "type": {},
                "size": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "referenceId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "driveId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "status": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    What's the error you getting?

     

     

  • Community Power Platform Member Profile Picture
    on at

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

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    See this thread.

     

    Solved: Parse JSON Error - Power Platform Community (microsoft.com)

     

    Let me know how you get on.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    Thanks, this page helped a lot, only now I face another problem: Since I specify information about the image when uploaded, I bind the "body". Allerdingst there is then of course also an error message if no image is present

    Would be here ev. a solution to create an image (without name / link etc.)

     

    The execution of template action 'Microsoft_Forms_lädt_Datei_hoch_-_File_Name_muss_via_ParseJSON_ausgelesen_werden' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')' is of type 'Null'. The result must be a valid array.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Could you add an IF condition to check not null before the Apply to each? A flow screenshot is more helpful.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    an if condition solved the problem. Next time I'll ask right away with a screenshot.

    Thanks 😊

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard