Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?
  • efialttes Profile Picture
    14,756 on at
    Re: Parsing Array Error

    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!

  • xyvic Profile Picture
    75 on at
    Re: Parsing Array Error

    Ah didn't catch that, thank you!

  • efialttes Profile Picture
    14,756 on at
    Re: Parsing Array Error

    @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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow