Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Sharepoint Extract Folder gives 400 BadRequest

I have a flow designed to automatically extract files from uploaded zipped archives. Here is how the flow is set up (if condition is no, it does nothing):



I have played around with the condition clause and determined that is not the issue, it reliable produces the correct file name and extention. This flow works maybe 1/10 times depending on the upload. Every other time it will either never run - like it doesn't realize a new file has been added to the sharepoint folder - or it gives a bad request error, pictured below:



The body of the error response is:

"message": "Unable to extract contents of file '/Metrics/'.\r\nclientRequestId: xxxxxxx\r\nserviceRequestId: xxxxxxxx;xxxxxx;xxxxxx",
"status": 400,
"source": ""
This is the only flow that is running, and I have verified that the account has the correct license and permissions to read/write from this sharepoint folder.
Any help is appreciated as to what could be the cause.
Level: Power Up

Re: Sharepoint Extract Folder gives 400 BadRequest

Interesting development - I have attempted to convert the sharepoint flow above to a OneDrive flow that does the same purpose in the same way, and I still get the 400 bad request error. The error body for that error is:


"status": 400,
"message": "Unable to extract contents of file '/Metrics/'.",
"source": ""

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,914)