
Hi @Anu Tomy
Thank you for contacting Microsoft Q&A Support and for sharing the steps you've already tried, that’s very helpful.
To better understand the issue and provide more targeted assistance, could you please help clarify a few things:
- What does your Office Script do?
If possible, please share the script code or describe its main actions. This will help identify if it uses any APIs not supported in Excel Online. - Where is the Excel file stored?
Is it saved in SharePoint, OneDrive, or opened from a local folder? - How are you running the script?
Are you using the Excel Online task pane, or triggering it via Power Automate? - Have you checked for any error details in browser Developer Tools?
You can press F12 in your browser, go to the Console tab, and run the script again to see if any technical error appears.
In the meantime, here are a few steps you can try:
- Test with a simple workbook
Create a new .xlsx file with minimal content and try running a basic script to rule out workbook-specific issues. - Check file permissions
Make sure you have edit access to the workbook and it's not locked by another user. - Try running a sample script from Microsoft Learn
This helps confirm whether the issue is with your script or the environment: Office Scripts samples - Office Scripts | Microsoft Learn - Run the script via Power Automate
If it works there, the issue may be specific to the Excel Online task pane.
Looking forward to your response so I can assist you further!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.