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 / Message appears"Invali...
Power Automate
Answered

Message appears"Invalid type. Expected Object but got Array" using Parse JSON

(0) ShareShare
ReportReport
Posted on by 75

Hi all ; hi @trice602 , sorry to ping you here, I decided to find another way to do this flow. To put it again in context. Originally, this flow was working correctly. The main function was that in a group chat in Teams and when someone writes "OPP-XXXXXXXXXX" the flow will lookup details in excel and return specific data about that specific OPP. 

 

Text inputs such as:

I want to view OPP-XXXXXXXXXX

Need update on OPP-XXXXXXXXXX

 

So the flow will look up the word "OPP" and then get the rest 10 digits, then proceed to look that number in excel and return the message in Teams.

 

this is my flow:

 

Robotech12_0-1693950144009.png

 

Robotech12_2-1693950253145.png

 

Robotech12_4-1693950282083.png

I am getting Error in the ParseJson part it says the error is :

 

{
    "errors": [
        {
            "message": "Invalid type. Expected Object but got Array.",
            "lineNumber": 0,
            "linePosition": 0,
            "path": "",
            "schemaId": "#",
            "errorType": "type",
            "childErrors": []
        }
    ]
}

 

Robotech12_5-1693950426126.png

 

Not sure where to change or extra step to do? Thank you in advance.

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Robotech12 ,

     

    Your PARSE JSON schema is incorrect.

    You first node should be an array if you want to parse items returned by the Filter.

    SudeepGhatakNZ_0-1693968923382.png

    Regenerate the JSON schema or share the output of your Filter array and I will create a schema for you.

     

  • Robotech12 Profile Picture
    75 on at

    Hi, I just updated, it is working now, all good ! thank you !

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard