cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShaneH
Regular Visitor

Errors setting up an HTTP Request flow

Hi Flow experts, I am trying to learn some advanced features in Flow - setting up my own API to upload a file - using some excellent tutorials from John Liu: http://johnliu.net/blog/2017/7/building-non-json-webservices-with-flow

 

When I set up an identical flow as the one in John's post above, it constantly fails.

1) When I specify a header in Postman (Content-Type:Multipart/Form-data the Flow fails in the Compose with the error message:

 

InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '1541': 'The template language function 'triggermultipartbody' failed to retrieve multipart contents from outputs. The supported multipart content type is 'multipart/*' and the provided content type is 'multipart/form-data'. '

 

2) If I remove the Content-Type header and resubmit the Flow via Postman, Flow reports that the flow has Succeeded, but I cannot view the status and when I try  to view the status it causes a different error:

It looks like something went wrong

Please try again in a few minutes or refresh the page now.

 

If you contact support, you may be asked to provide the following details:

Time:
Server/Client Correlation ID: [removed]
Error: Unexpected token � in JSON at position 0

 

Any suggestions would be greatly appreciated!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

On further investigation this appears to have been a bug in the HttpRequest trigger that was just fixed in the past couple days - was not handling correctly unusual characters in dynamic token values. This would explain why Michael was no longer able to repro this issue when he last tried. Please let us know if you continue having trouble with it.

View solution in original post

6 REPLIES 6
v-micsh-msft
Community Support
Community Support

Hi @ShaneH,

 

Thanks for the feedback.

Issue could be reproduced from my side.

The error message from my side is the following:

21.PNG

I will forward this from our channel, and if I got any response, I will post back.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-micsh-msft
Community Support
Community Support

Hi @ShaneH,

 

I checked again and now there is no errors when trying to view the flow running details.

Would you please take a check from your side?

37.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

On further investigation this appears to have been a bug in the HttpRequest trigger that was just fixed in the past couple days - was not handling correctly unusual characters in dynamic token values. This would explain why Michael was no longer able to repro this issue when he last tried. Please let us know if you continue having trouble with it.

View solution in original post

Anonymous
Not applicable

Hello, the bug seems to be back

same as at the OP...

Is there any workaround?

Anonymous
Not applicable

Hy i m having trpubble with it

Anybody able to solve this bug? I am still getting this error in my tenant. Please let me know.

 

The template language function 'triggerMultipartBody' failed to retrieve multipart contents from outputs. The supported multipart content type is 'multipart/*' and the provided content type is 'application/x-www-form-urlencoded'. '.

 

Ravi

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,596)