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

File Copy in SharePoint Online - Bad Gateway

I'm using Flow for the first time and a basic test scenario is not working.

 

Library A has 1000+ documents with several custom columns of the types: Number, Lookup, Choice and Single line of text.   Library B is empty.

 

I've set up a flow to copy files from Library A to Library B if a column of type 'single line of text' reads 'test copy'.

 

In the flow, it shows that the Condition processed but the action failed.  The action is failing with 'Bad Gateway' as the error and the body of the error is as follows:

 

{
"error": {
"code": 502,
"source": "canada-001.azure-apim.net",
"clientRequestId": "85bdda98-b7f5-4a63-9107-14d745a02877",
"message": "BadGateway",
"innerError": {
"status": 500,
"message": "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)\r\nclientRequestId: 85bdda98-b7f5-4a63-9107-14d745a02877\r\nserviceRequestId: 7090a49e-d061-7000-6689-dfd94fed8809"
}
}
}
 
I can confirm that the file does exist.
 
Capture.JPG
 
1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @NMC_IT

 

Could you please share a screenshot of the configuration of your flow?

 

I have made a test on my side to create a flow as screenshot below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

Best regrads,

Alice

View solution in original post

2 REPLIES 2
v-yuazh-msft
Community Support
Community Support

Hi @NMC_IT

 

Could you please share a screenshot of the configuration of your flow?

 

I have made a test on my side to create a flow as screenshot below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

Best regrads,

Alice

View solution in original post

Hi Alice,

  Your screenshots helped fix the issue.  

 

  In my flow, I had the 'File to Copy' set to 'File Name with Extension'.  When I changed that to 'Identifier' as per your setup, everything worked.  I don't really understandy why, but at least now I know what I was doing incorrectly. 


Thank you!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,029)