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 / ValidationFailed. The ...
Power Automate
Unanswered

ValidationFailed. The schema validation failed.

(0) ShareShare
ReportReport
Posted on by 4

Hi all 

 

I am hoping someone will be able to help me 

 

I have some JSON format, where sometimes the item will contain a single entry or an array which is causing it to fail/error when there is only a single item. How can I get the flow to work regardless of it being a single item or an array 

 

Parse JSON

}
},
"Operating_x0020_Company": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Value": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
},
"required": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"Operating_x0020_Company@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Operating_x0020_Company#Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
},
"Operating_x0020_Company#Id@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"DAB_x0020_Status": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Value": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
}
}
},
"DAB_x0020_Status#Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Status": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Status@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Status#Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Status#Id@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Type@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Type#Id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Action_x0020_Type#Id@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Created": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Author": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Claims": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"DisplayName": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Email": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Picture": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Department": {
"type": "object",
"properties": {}
},
"JobTitle": {
"type": "object",
"properties": {}
}
}
}
}
},
"Author#Claims": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Editor": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@@odata.type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Claims": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"DisplayName": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Email": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Picture": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Department": {
"type": "object",
"properties": {}
},
"JobTitle": {
"type": "object",
"properties": {}
}
}
}
}
},
"Editor#Claims": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Modified": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{Identifier}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{IsFolder}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{Thumbnail}": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"Large": {
"type": "object",
"properties": {}
},
"Medium": {
"type": "object",
"properties": {}
},
"Small": {
"type": "object",
"properties": {}
}
}
}
}
},
"{Link}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{Name}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{FilenameWithExtension}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{Path}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{FullPath}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{HasAttachments}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"{VersionNumber}": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
},
"required": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}

 

 

 

Output - 

[
  {
    "message": "Invalid type. Expected Object but got Array.",
    "lineNumber": 0,
    "linePosition": 0,
    "path": "",
    "schemaId": "#",
    "errorType": "type",
    "childErrors": []
  }
]
 
How can i fix this - please help
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @TCass 

     

    Could you share a screenshot of how json looks like for array and for single object ?

     

  • TCass Profile Picture
    4 on at

    Hi @Nived_Nambiar 

     

    Thank you for you response, please see below my screenshots

    TCass_0-1684250268620.png

    TCass_1-1684250287630.png

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @TCass 

     

    Actually i need screenshot of json when it is in single object and when it is in array form ?

     

    Kindly let me know 

  • TCass Profile Picture
    4 on at

    Hi @Nived_Nambiar is this what you require?

     

    TCass_0-1684487413469.png

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @TCass 

     

    One thing to know does the entire json will looks like json array sometimes or as json object or any properties will be looking as json object or array ?

     

    Could u clarify on that.

     

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard