cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sofie_D
Level 8

Hide Azure Function response error

I run an Azure Function from my PowerApp (a http trigger POST) and even when it works without a problem and it just returns '200', I get the following error in my PowerApp:AzureFunctionError.png

"AzureFunction.FunctionName failed: the data returned in the response is invalid."

How do I get this to not show up? The function works fine and I don't need it to return anything.

Or is this something I should ask on a Azure Function forum?

Pretty new to working with Azure.

4 REPLIES 4
Petter_B
Level: Power Up

Re: Hide Azure Function response error

Maybe you havent specified a default response for the custom connector action?

Sofie_D
Level 8

Re: Hide Azure Function response error

response.png

There shouldn't be a problem with the response.

I have a different custom connecter which I call through flow instead of directly, with the same response and that never gives an error. Maybe I'll just add this one through flow as well instead of directly, but it'd be nice to know what I did wrong anyway.

Petter_B
Level: Power Up

Re: Hide Azure Function response error

This is what I do:

Function: Return something: Out-File -Encoding utf8 -FilePath $res -inputObject (ConvertTo-json @{"status"="$Message"})

Connector: Set a default response by sample: {"status": "Hello"}

App: Call the endpoint and store the result: Set(sStatus,MyCon.CreateList(Title:TextTitle.Text).status)

Ballzer0
Level: Powered On

Re: Hide Azure Function response error

I am having the same problem. did you find any solutions?

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 363 members 5,198 guests
Please welcome our newest community members: