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

Run excel script throw an error when uploading multiple document at a time



I'm trying run the 'Run excel script preview' action dynamically on newly created file but i'm getting and error '.... Please try again later...' when I try to upload multiple files at a time.


Example, if i drag and drop 3 file into the SharePoint library, the first file will be successfully executed by 'Run excel script preview' action but the remaining 2 files will throw an error.


Is there way to prevent this from happening or set the action to retry again?


Thank you


Hi @muges01 ,


Is this still happening? Could you please share the "clientRequestId" from the error details? Feel free to share multiple of them if there were several failures.




Hi @Yutao ,


I'm not getting the error now. Is it something been fix recently?

I'll try again in few more days and get back to you on the outcome.

Thank you very much.


Do you know when the 'Run Script' action will go to GA?

Hey @muges01 ,


Thanks for trying out Office Scripts! Sorry we don't have a timeline to share about the GA release yet. We're still doing a bunch of stabilization work at the moment. So any feedback or bug reports would be super helpful!



Hi @Yutao , 


I haven't get any errors yet but i have more test for next week. I'll keep you posted on this. 

Hi @Yutao 


There is no error anymore when uploading multiple file.


I have added the run excel script inside a try catch scope. I'm catching any error and update the excel file metadata status to be failed, but I couldn't set the metadata because the file is locked when the error is due to the script. e.g. A3 contain a number instead of string

let summaryValue = currentWorksheet.getRange("A3").getValues();
let sArray = summaryValue.split('-');


I have try to wait 3 minute but still the lock is not released. Is there a way to update the medatada of the file?

Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (43,427)