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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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 (1,182)