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

Community site session details

Session Id : 6KDJa1/1L2RKR2pcMUieNk
Power Apps - Building Power Apps
Answered

The data returned in the response is invalid. Response data should be a valid JSON object

Like (0) ShareShare
ReportReport
Posted on 24 Jan 2022 14:50:19 by 55

Hello everyone,

 

So my issue is that no matter what I put where the flow parameters go, it gives me this error, even if it's a JSON. 

 

This is the code:

 

TestZones.Run(Set(JSONCollection, JSON(Outputs)))

 

Pretty straightforward, yet I can't get it to work.

Categories:
  • PandaRedCap Profile Picture
    54 on 25 Feb 2023 at 14:16:05
    Re: The data returned in the response is invalid. Response data should be a valid JSON object

    Add the Responds to Power Apps or Flow at the end of your flow, send an empty json {}

    This will fix your Issue

    Pandaredcap_0-1677334557673.png

     

  • Verified answer
    sergeasmar97 Profile Picture
    55 on 24 Jan 2022 at 15:03:11
    Re: The data returned in the response is invalid. Response data should be a valid JSON object

    by HTTP response action, do u mean the one with the green logo? i cant find where to put the JSON Schema. could you upload a photo of which action you mean specifically?

  • Verified answer
    Pstork1 Profile Picture
    67,356 Most Valuable Professional on 24 Jan 2022 at 14:57:30
    Re: The data returned in the response is invalid. Response data should be a valid JSON object

    The respond to Power Apps action in Power Automate can only return a single object with one or more properties of a specific data type.  It looks like you are trying to return a data set.  To do that you need to use the HTTP Response action and specify a JSON schema for the array being returned.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete