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 Automate
Unanswered

JSON response Format

(0) ShareShare
ReportReport
Posted on by 2

I am trying to call an API from AWS Lambda, for this I have created a custom connector.

The test connection for the api is working fine. I have added this connector in the power apps and calling the connector on Select of the button --> onSelect= Set(response, 'test-sre1'.testsre1()). I am getting an error stating "The data returned in this response is invalid. Response data should be a valid JSON 

 

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

    Hi , @Soni11 

    As searched , you can try to add the Accept in your request headers. 

    Accept : application/json

    And for the similar case, you can refer to :

    Solved: The Data return in the response is invalid, Respon... - Power Platform Community (microsoft.com)

    Solved: Re: Power App + custom connector - The Data return... - Power Platform Community (microsoft.com)

     

    Best Regards,

    Yueyun Zhang

  • Soni11 Profile Picture
    2 on at

    Thank you for the reply!

    I added Accept : application/json and tried again but I am still getting the same error.

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Soni11 

    For this error code ,Sorry for that it is hard to find the solution and this is a generally error. I suggest you create a support ticket for professional assistance following the below procedure.

    Get Help + Support - Power Platform | Microsoft Docs

     

     

    Best Regards,

    Yueyun Zhang

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard