cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

502 Error using Flow

So after finally fixing my last problem CustomConnector Error - invalid data from response , I was finally able to use my flow. Now when I want to insert my flow to powerapps im getting this error. 

 

image.png

 

any suggestion how I can fix this? does this occurs because of the char " on start and end of the variable ?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Can I use appres://resources/ as datauri ? Im considering to edit my flow like this @base(fromdatauri....appres://resources/

 

Edit:

 

I got a fix for this problem. I just send the base64 body to my flow

 

Set(
    s;
    JSON(
        Image1.Image;
        JSONFormat.IncludeBinaryData
    )
);;
Set(
    s;
    Mid(
        s;
        24;
        Len(s) - 24
    )

Like this variable s does not cotain any " chars. 🙂

 

View solution in original post

3 REPLIES 3
Advocate IV
Advocate IV

Hi @Macwin,

 

Are you able to trigger the flow manually?

If so, please try to remove the Flow from PowerApps and reconnect it.

 

Best regards

Stefan

yes. manually the  flow works 

image.png

 

already deleted the flow and even created a new project.

The only difference between my flow and the powerapps call is the char " at the start and at the end of the input value

 

flow inputvariable in powerapps
data:image/png;base64,...."data:image/png;base64,...."

 

But I dont know if this causes the problem and I dont know how to fix it

 

Edit:

If I call my flow in powerapps like in this picture it works 

image.png

so why does variable objects with the base64 string does not work ? 

Can I use appres://resources/ as datauri ? Im considering to edit my flow like this @base(fromdatauri....appres://resources/

 

Edit:

 

I got a fix for this problem. I just send the base64 body to my flow

 

Set(
    s;
    JSON(
        Image1.Image;
        JSONFormat.IncludeBinaryData
    )
);;
Set(
    s;
    Mid(
        s;
        24;
        Len(s) - 24
    )

Like this variable s does not cotain any " chars. 🙂

 

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,731)