Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

SharePoint Add Attachment Bad Request

Hi all,


I had a working Flow until today. I'm now getting a 'Bad Request' fail message at add attachment after it 'Get File content using path' executes successfully. 


I have a similar condition before it and it works perfectly so I cannot figure out why this is failing.





Regular Visitor

It appears it may be because the image files have the same name?


I assume you cannot have a file name the same in a SharePoint list?


{"statusCode":400,"headers":{"Pragma":"no-cache","x-ms-request-id":"81a4369f-b041-a000-3b21-bb9f8a86d523","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Cache-Control":"no-store, no-cache","Date":"Tue, 18 Feb 2020 11:42:23 GMT","Set-Cookie":"ARRAffinity=9a53c9d953bbdfc85fcb9bc388522492211961687fcde0ee871a9a717de0c346;Path=/;HttpOnly;","Content-Length":"643","Content-Type":"application/json","Expires":"-1"},"body":{"status":400,"message":"The specified name is already in use.\n\nThe document or folder name was not changed. To change the name to a different value, close this dialog and edit the properties of the document or folder.\r\nclientRequestId: e7deec03-5b49-42b3-aaa0-02871819e9ef\r\nserviceRequestId: 81a4369f-b041-a000-3b21-bb9f8a86d523","source":"'0fdb7e18-4608-4a92-8417-a545a8184e...}


Super User III
Super User III

hi @drossi  some time I get the same Error is like an server error so, the MSFT evantually fix that kind of errors.

If not, try changing your user conextion creating another one.


Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!

If you want you can follow me at Quieres contenido en español? Síguenos en Power Automate LA

Thanks for the tip.

I ended up fixing it by renaming the file to include a distinct file name. As when there was a filename with the same name, it just fails.

Helpful resources

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 (8,760)