cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

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
Highlighted
New Member

Re: Hide Azure Function response error

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

Highlighted
Responsive Resident
Responsive Resident

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.

Highlighted
New Member

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)

Highlighted
Advocate I
Advocate I

Re: Hide Azure Function response error

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,140)