cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Michael_miracle
Level: Powered On

502 Bad Gateway on Update Item on Sharepoint list

Hi, guys!

 

I'm trying to build Flow that copies existed Folder to another location.

But all I've got is 502 error (or 400 error if I remove the dash symbol in Folder to Copy before Id)

 

Any ideas what is the reason?

3.PNGflow4.PNGflow5.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hi @Michael_miracle,

 

When using the action Copy folder, in the Folder to copy field, we are asked to specify a folder.

Without using the dynamic content ID, flow won’t know which folder is going to copy.

I have made the following test and it works fine.

1.PNG2.PNG

More details about connector SharePoint at here:

https://docs.microsoft.com/en-us/connectors/sharepointonline/

 

Best regards,

Mabel

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

View solution in original post

6 REPLIES 6
Community Support Team
Community Support Team

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hi @Michael_miracle,

 

When using the action Copy folder, in the Folder to copy field, we are asked to specify a folder.

Without using the dynamic content ID, flow won’t know which folder is going to copy.

I have made the following test and it works fine.

1.PNG2.PNG

More details about connector SharePoint at here:

https://docs.microsoft.com/en-us/connectors/sharepointonline/

 

Best regards,

Mabel

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

View solution in original post

Administrator
Administrator

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hello, @Michael_miracle!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yamao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Flow Community Manager
Michael_miracle
Level: Powered On

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hi, @v-yamao-msft!

 

You're right, we should use absolute URL of the folder, not the folder ID. But I've tried it before using ID and still I hadn't work.

 

Yesterday I was able to sit tight and work on this issue.

The problem was- the destination folder must exist

And previously I've tried to copy to the folder that didn't exist (cause in Create file action you can create a File into non-existant Folder, SP would create it by itself).

 

So problem is solved and Flow worked! Thank you!

p.s. actully flow is working, cause after triggering it has been running for 14 hours. As I can see in SP - Flow completed to copy my folder in like 1 minute and now I've got no idea what he is doing. Bitcoin mining mb1.PNG

Malenefri
Level: Powered On

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hi @v-yamao-msft,

 

I am hoping for your help here :-)

I am trying to copy a folder from one site to another using the copy folder action. I also get the Bad Gateway when I run my flow. I am unable to add any dynamic content like you describe. I get: No dynamic content available

And when I try to choose the folder using the folder icon I get different things to choose from, but none of them works always Bad gateway.

I have tried the copy file action and it works, so I have connection between sites.

Thanks in advance :-)

 

 

Malenefri
Level: Powered On

Re: 502 Bad Gateway on Update Item on Sharepoint list

Hi @v-yamao-msft,

I uploaded screen shots of my flow:

 

badGateway2.pngbadGateway1.png

bamandan
Level: Power Up

Re: 502 Bad Gateway on Update Item on Sharepoint list

When creating a flow an flow for an approval when an item is added to SharePoint, I am getting a 500 error (InternalServerError) on the approval part of the flow. How do I fix this for the flow to work? Do I need to down load flow onto my desktop instead of using the app through 365?

 

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand 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.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 231 members 3,252 guests
Please welcome our newest community members: