Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Strange Behavior with Excel Run Script - Files not getting listed / manual entry fails with a 400 or 404 error

I have a SPO document library which I use powerautomate for various tasks...


I am able to call files successfully using the following.... (I have replaced the site address, folder path for obvious reasons)




however, when I use the excel run script, it fails and unable to list the files....





the files are not getting listed! - so I used manual entry of the filename to test but even that also fails...


i used \filename.xlsx , /filename.xlsx , filename.xlsx etc... but no luck!


what could be the reason? any pointers would be appreciated....


Accepted Solutions
Helper I
Helper I

resolved by recreating the sp site.

View solution in original post

Helper I
Helper I

also...these are in two different workflows so I am unable to reference to the other.... 

Super User
Super User

Hey @Jared_Simon ,


Ok. So files are there in library and they are not getting listed. This only happens it the action cannot find an XLSX file.


Please create a new file xlsx and try to create a new flow and see if that returns the list.


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

not working - same error....


is there a way to select "category value" - sales_1 in the excel run script flow step? its not showing currently...

Helper I
Helper I

resolved by recreating the sp site.

"recreate the SP site"!  really? 

Is that the best we can do? 

What about all the other shared files and links etc... this is an OK solution if you've only just set up your sp site but when it's been running for a few years this solution sucks. (no offence intended Jared)


Isn't there something better like tweaking the permissions or changing the file names, something a little less invasive? 

Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,915)