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 / "Invalid type. Expecte...
Power Automate
Answered

"Invalid type. Expected Object but got Array.",

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

HI 

I'm converting a data table from power to flow 

I' using power app V2

Emptyglasses_0-1677738861896.png

 

when ever I'm trying to convert the json string I'm getting the following error 

Emptyglasses_1-1677738910976.png

This is my json schema 

{
    "type""object",
    "properties": {
        "type": {
            "type""string"
        },
        "items": {
            "type""object",
            "properties": {
                "type": {
                    "type""string"
                },
                "properties": {
                    "type""object",
                    "properties": {
                        "Amount": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "Description": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "Entity": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""array",
                                    "items": {
                                        "type""string"
                                    }
                                }
                            }
                        },
                        "HSNCode": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "MailID": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""array",
                                    "items": {
                                        "type""string"
                                    }
                                }
                            }
                        },
                        "Make": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""array",
                                    "items": {
                                        "type""string"
                                    }
                                }
                            }
                        },
                        "MaterialCode": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "Quantity": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "Title": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""array",
                                    "items": {
                                        "type""string"
                                    }
                                }
                            }
                        },
                        "Type": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "UOM": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        },
                        "UnitRate": {
                            "type""object",
                            "properties": {
                                "type": {
                                    "type""string"
                                }
                            }
                        }
                    }
                },
                "required": {
                    "type""array",
                    "items": {
                        "type""string"
                    }
                }
            }
        }
    }
}
 Im getting following error 
Emptyglasses_2-1677738990219.png

 

 

Could anyone please help me to fix this json schema 

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Emptyglasses ,

    Please use json() to format the value passed from power apps in Compose, and then copy its format for ParseJSON

    vchengfenmsft_0-1677744126317.png

     

     

     

    Best Regards

    Cheng Feng

  • PallaviPK11 Profile Picture
    2 on at

    Thank you for your help, but the provided solution is not working for me.
    Getting below error.

    PallaviPK11_0-1686037557916.png

     

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