cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Problematic
Regular Visitor

Problem on Parse Json with 'null' value

I got the error message as below which is about the 'null' value. However, the input that I created is optional. I read many discussions from the forum and was advised to add 'null' to the 'string' field which I also did. However, I still got the error message about 'input at line '0' and column'0'.  Can someone give advice on how to amend it ?  

 

Error message :

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

Why line '0' and column '0' need a value ?

 

Parse Json content :  (null already included in all "string" field)

{

    "type": "array",

    "items": {

        "type": "object",

        "properties": {

            "name": {

                "type": [

                    "string",

                    "null"

                ]

            },

            "link": {

                "type": [

                    "string",

                    "null"

                ]

            },

            "id": {

                "type": [

                    "string",

                    "null"

                ]

            },

            "type": {},

            "size": {

                "type": "integer"

            },

            "referenceId": {

                "type": [

                    "string",

                    "null"

                ]

            },

            "driveId": {

                "type": [

                    "string",

                    "null"

                ]

            },

            "status": {

                "type": "integer"

            },

            "uploadSessionUrl": {}

        },

        "required": [

            "name",

            "link",

            "id",

            "type",

            "size",

            "referenceId",

            "driveId",

            "status",

            "uploadSessionUrl"

        ]

    }

}

1 REPLY 1
mahoneypat
Dual Super User
Dual Super User

You can also try deleted the field names from the "required" section

 

"required": []

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,314)