cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,032)