web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Parsing Array Error

(0) ShareShare
ReportReport
Posted on by 75

Hello, 

 

I've gotten this error 

[
  {
    "message""Required properties are missing from object: name.",
    "lineNumber"0,
    "linePosition"0,
    "path""[4]",
    "value": [
      "name"
    ],
    "schemaId""#/items",
    "errorType""required",
    "childErrors": []
  }
]
 
for this array
 
[
  {
    "name""6f369fa2-cc71-476b-9eed-02e56b7bbbab",
    "type""EXAMPLE",
    "parts": [
      {
        "text""no"
      }
    ]
  },
  {
    "name""94de71bd-ff45-43ba-9869-ad5ee0af1cd1",
    "type""EXAMPLE",
    "parts": [
      {
        "text""nothing else"
      }
    ]
  },
  {
    "name""1cfc1fd5-06e6-4a69-ab6f-e1a59d2ab8b1",
    "type""EXAMPLE",
    "parts": [
      {
        "text""thats all"
      }
    ]
  },
  {
    "name""f0ad02da-5ca9-4912-b69f-97411d109461",
    "type""EXAMPLE",
    "parts": [
      {
        "text""no thats it"
      }
    ]
  },
  {
    "type""EXAMPLE",
    "parts": [
      {
        "text""that is it thank you"
      }
    ]
  }
]
 
Here is a run of a successful run which is not much different.
 
[
{
"name": "71d2895e-8725-465f-9953-a2dc5278b3eb",
"type": "EXAMPLE",
"parts": [
{
"text": "whiteboard"
}
]
},
{
"name": "55ca3cb9-d3c9-4d3e-b755-59505cf82eb4",
"type": "EXAMPLE",
"parts": [
{
"text": "blackboard"
}
]
},
{
"name": "a6c62db1-dd63-4abb-b0f1-60b8989642ef",
"type": "EXAMPLE",
"parts": [
{
"text": "public printer"
}
]
},
{
"name": "10ec9b43-5597-441c-9420-6f7531e45567",
"type": "EXAMPLE",
"parts": [
{
"text": "public computer"
}
]
},
{
"name": "97b33a22-38cc-498a-944a-e5c6308242f4",
"type": "EXAMPLE",
"parts": [
{
"text": "email"
}
]
},
{
"name": "5093294d-c4b9-4a7b-bd49-ba742c713bc9",
"type": "EXAMPLE",
"parts": [
{
"text": "print something"
}
]
},
{
"name": "8439ba94-f0e9-41db-bcfe-b5d8bf7951a8",
"type": "EXAMPLE",
"parts": [
{
"text": "copier"
}
]
},
{
"name": "844e576e-32cf-4aed-a00f-15a3927075e5",
"type": "EXAMPLE",
"parts": [
{
"text": "copy machine"
}
]
},
{
"name": "4201c2d0-f767-4b3b-8bff-bbb13f15d5d0",
"type": "EXAMPLE",
"parts": [
{
"text": "copy"
}
]
},
{
"name": "46c74af6-7caf-457b-926b-04213d8cc9d8",
"type": "EXAMPLE",
"parts": [
{
"text": "photo copy"
}
]
},
{
"name": "8c0dbde1-67f2-4c3c-a09e-5577df2b648b",
"type": "EXAMPLE",
"parts": [
{
"text": "i need to get work done"
}
]
},
{
"name": "359c9b27-c2ff-4de7-863c-80f4b639c044",
"type": "EXAMPLE",
"parts": [
{
"text": "fax machine"
}
]
},
{
"name": "afb2115a-2340-4dd2-ad39-164b2cef8f23",
"type": "EXAMPLE",
"parts": [
{
"text": "work room"
}
]
},
{
"name": "1ed1cd09-5fd3-44b6-9db4-b1959f9e22e0",
"type": "EXAMPLE",
"parts": [
{
"text": "boarding pass"
}
]
},
{
"name": "b333c826-4d9d-4082-b1a6-17ce5a9fcc80",
"type": "EXAMPLE",
"parts": [
{
"text": "printer"
}
]
},
{
"name": "aa1f0e70-09bf-40ff-8ba2-7790b29a2e00",
"type": "EXAMPLE",
"parts": [
{
"text": "Business Center"
}
]
},
{
"name": "db112429-65f3-4173-81c8-1451ac80df06",
"type": "EXAMPLE",
"parts": [
{
"text": "site machine"
}
]
}
]
 
I don't see anything wrong with it since I've done it for previous arrays with similar content. Any ideas on what is different with the error array than the successful one?
Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    @xyvic 
    So in the array example that is parsed successfully, all the elaments bring 'name' attribute; while in the array example that thows an error when parsing, all the ellements nut one have 'name' attribute:

    {
     "type": "EXAMPLE",
     "parts": [
     {
     "text": "that is it thank you"
     }
     ]
     }

    If you expect elements with 'name' attribute and elements without 'name' attribute, you should use the array example that is currently throwing an error as the input example for your 'Parse JSON' action block, in order to generate a schema where this attribute is optional
    Hope this helps

  • xyvic Profile Picture
    75 on at

    Ah didn't catch that, thank you!

  • efialttes Profile Picture
    14,756 on at

    Glad to help!
    Please remember to mark this topic as solved if the suggestion works as you expect. This way other members of the community in similar circumstances can find faster the way to proceeed
    Thanx for your help making this community great!

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard