Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
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 

 

  • v-yueyun-msft Profile Picture
    on at
    Re: JSON response Format

    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

  • Soni11 Profile Picture
    2 on at
    Re: JSON response Format

    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
    on at
    Re: JSON response Format

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics