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 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,394 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard