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

Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

Hi!

 

I have made simple Logic apps, having only http trigger and compose.

 

logicapps1.png

 

Then I have exported it. After that it is usabale from PowerApps.

 

I call it with proper parameters like that:

 

logicapps2.png

 

And it starts successfully my logicapps:

 

logicapps3.png

 

Problem is that every call causes error on my PowerApps.

 

logicapps4.png

 

Error: The data returned in the response is invalid

 

I have tested same thing with long running Logic Apps. Error is raised immediately after calling LogicApps.

 

Any ideas how to fix this? 

 

Tested in 2 different tenants.  Same behaviour. Should I manually fix custom connector after exporting from LogicApps? 

1 ACCEPTED SOLUTION

Accepted Solutions
savage4618
Level: Powered On

Re: Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

I was trying to figure out this issue as well. After about 2 hours of searching around this morning I found this thread (https://powerusers.microsoft.com/t5/General-Discussion/Custom-Connector-Add-another-response/td-p/28...)

 

I changed my swagger.json file "responses" section to what I have pictured. Also pasted the snippet below. 
I hope this helps you out, as it has made it so, in my app, the banner doesn't show up at all anymore.

"responses": {
          "200": {
            "description": "Success"
          }
        }

forpost.pngcode screenshot

 

View solution in original post

4 REPLIES 4
TimoPertila
Level: Powered On

Re: Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

This might be related to this one.. https://powerusers.microsoft.com/t5/General-Discussion/Bug-report-202-and-204-response-result-in-err...

 

When testing my custom connector, Logic Apps returns 202. And PowerApps cannot handle that properly?

 

logicapps5.png

 

Lisabel0
Level 8

Re: Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

Hi, please try to correct the error in the OnSelect property of your button control before calling.

TimoPertila
Level: Powered On

Re: Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

What do you mean @Lisabel0 in practise? There is no error on button OnSelect formula. Error raises becouse custom control returns 202 message and PowerApps can't handle that.

 

Custom connector runs logic apps perfectly, so there are no actual error. Just problem to handle that 202 message i think.

 

 

savage4618
Level: Powered On

Re: Calling LogicApps from PowerApps returns error (The data returned in the response is invalid)

I was trying to figure out this issue as well. After about 2 hours of searching around this morning I found this thread (https://powerusers.microsoft.com/t5/General-Discussion/Custom-Connector-Add-another-response/td-p/28...)

 

I changed my swagger.json file "responses" section to what I have pictured. Also pasted the snippet below. 
I hope this helps you out, as it has made it so, in my app, the banner doesn't show up at all anymore.

"responses": {
          "200": {
            "description": "Success"
          }
        }

forpost.pngcode screenshot

 

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 78 members 3,650 guests
Please welcome our newest community members: