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

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
Community Support

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
Community Support

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

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
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager
Power Platform Communities

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

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 🙂

 

 

Hi @v-yamao-msft,

I uploaded screen shots of my flow:

 

badGateway2.pngbadGateway1.png

New Member

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

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