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 / Help with parse json, ...
Power Automate
Answered

Help with parse json, how to handle required fields and null values

(1) ShareShare
ReportReport
Posted on by 212

Hi, @abm 

here is a sample of a parse json.  There are required fields and some values are coming in as null. what can I do to address this?

 

[
{
"message": "Invalid type. Expected String but got Null.",
"lineNumber": 0,
"linePosition": 0,
"path": "[1].Author.Department",
"schemaId": "#/items/properties/Author/properties/Department",
"errorType": "type",
"childErrors": []
},
{
"message": "Invalid type. Expected String but got Null.",
"lineNumber": 0,
"linePosition": 0,
"path": "[2].Author.Department",
"schemaId": "#/items/properties/Author/properties/Department",
"errorType": "type",
"childErrors": []
},
{
"message": "Invalid type. Expected String but got Null.",
"lineNumber": 0,
"linePosition": 0,
"path": "[3].Author.Department",
"schemaId": "#/items/properties/Author/properties/Department",
"errorType": "type",
"childErrors": []
},
{
"message": "Invalid type. Expected String but got Null.",
"lineNumber": 0,
"linePosition": 0,
"path": "[4].Author.Department",
"schemaId": "#/items/properties/Author/properties/Department",
"errorType": "type",
"childErrors": []

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

    Hi @mthiru_0023 

     

    Under the Parse JSON schema remove the required fields. Then change

    "type""string" to "type": ["string","null"] and same for all other data types such as boolean, number, etc.

     

    Thanks

  • mthiru_0023 Profile Picture
    212 on at

    @abm Thank so much. Worked well for me after removing the required fields and updating "type": ["string","null"]

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard