cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TOPDHI
Level: Powered On

Bug report: 202 and 204 response result in error the data returned in the response is invalid

Let's assume you have a REST custom connector where you have PATCH operation. When that is called from a button, it is returning 202OK (also tested with 204) and error 'The data returned in the response is invalid' is showed in PowerApps.

 

Exactly the same service from the connector works in Flow. It seems that PowerApps care about the response and do not like 202/204 status coded for PATCH/PUT operations.

 

Can you please fix it, it is annoying.

 

Thank you.

Tomas

3 REPLIES 3
Community Support Team
Community Support Team

Re: Bug report: 202 and 204 response result in error the data returned in the response is invalid

I suspect the issue here should be caused by PowerApps can't handle the JSON data.

 

By the way, could you please take a look to see if the 202 and 204 response has been defined under the Response part when creating the Custom Connector in PowerApps?

Connector definition

If the corresponding response has been defined, then it should be available for PowerApps to handle the response.

 

For the current situation, please consider take use of Send Response to PowerApps with Microsoft Flow as a workaround.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
TimoPertila
Level: Powered On

Re: Bug report: 202 and 204 response result in error the data returned in the response is invalid

Hi @v-micsh-msft 

 

Is there any instructions how to define 202 and 204 responses in my custom connector?

TOPDHI
Level: Powered On

Re: Bug report: 202 and 204 response result in error the data returned in the response is invalid

we have webAPI with openAPI sitting in the backend, in there teh swagger will read annotations on the controller combined with the function. Connector will read this information when you will create it from OpenAPI file or OpenAPI Url. OpenAPI is generated by Swagger/Swaschbuckle.

 

Tomas