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 Automate - Building Flows
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
I have the same question (0)
  • fchopo Profile Picture
    8,001 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard