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 Platform Community / Forums / Power Automate / Action 'Parse_JSON' fa...
Power Automate
Unanswered

Action 'Parse_JSON' failed

(0) ShareShare
ReportReport
Posted on by

Errors: 

[
  {
    "message""Invalid type. Expected Array but got Object.",
    "lineNumber"0,
    "linePosition"0,
    "path""",
    "schemaId""#",
    "errorType""type",
    "childErrors": []
  }
]
 
Content:
{
  "@odata.type""#microsoft.graph.user",
  "id""Example ID",
  "businessPhones": [],
  "displayName""Example Name",
  "givenName""Example given name",
  "mail""Example mail",
  "officeLocation""Example officeLocation",
  "surname""Example surname",
  "userPrincipalName""Example userPrincipalName"
}
 
Schema:
{
  "type""array",
  "items": {
    "type""object",
    "properties": {
      "id": {
        "type""string"
      },
      "businessPhones": {
        "type""array"
      },
      "displayName": {
        "type""string"
      },
      "givenName": {
        "type""string"
      },
      "mail": {
        "type""string"
      },
      "officeLocation": {
        "type""string"
      },
      "surname": {
        "type""string"
      },
      "userPrincipalName": {
        "type""string"
      },
      "@odata.type": {
        "type""string"
      }
    },
    "required": [
      "@odata.type",
      "id",
      "businessPhones",
      "displayName",
      "givenName",
      "mail",
      "officeLocation",
      "surname",
      "userPrincipalName"
    ]
  }
}
 
I tried to change type from Array to Object:Hk11_0-1649648680552.png

 

but new error appears: The variable 'Members' of type 'Object' cannot be initialized or updated with value of type 'Array'. The variable 'Members' only supports values of types 'Object'.
 
Thanks,
Hk
Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at
    Re: Action 'Parse_JSON' failed

    Hi @Anonymous 

    I guess you're making a query against Azure AD groups... Why do you need the parse JSON action? Could you provide context on that so we can help you?

    Thanks in advance!

    Ferran

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard