question

Sakura-6148 avatar image
2 Votes"
Sakura-6148 asked ABK-1764 answered

Office Script stuck

Hello

I have been using Office Scripts for a long time and never without too many issues.

One returning issue though, is that a script run in Excel Online through the Code Editor (under Automation tab), will get stuck in 'The script is running' while it is in fact not doing anything. Without exception, this happens to me when using Google Chrome. It seems Microsoft has not optimized things for Chrome users. When I use Microsoft Edge, things always worked.

However, this week I need to use some scripts again and now they won't work anymore on Microsoft Edge either. Just stays stuck on 'The script is running'. Nothing has been changed in these scripts and they worked perfectly before.

What do I do to fix this? These are business critical scripts.

office-scripts-excel-dev
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

the same happened to me! And i tried simple code with just one comand just to test and it wont work either.

0 Votes 0 ·

the same happened to me! And i tried simple code with just one comand just to test and it wont work either.

0 Votes 0 ·

Same here. No idea what's wrong. The script says it is running, but nothing is happening.

0 Votes 0 ·

I have exactly same problem. Scripts were not starting on Chrome, I raise this issue with Microsoft last year and I was told to use Edge instead of Chrome. Problem didn't occur on Edge until they moved Edge to Chromium engine. Since several weeks I can't run macro on Edge, clearing cookies and cache do not help. What is curious scripts occasionally work on Edge on different computers with fresh installation. Also, at least right now I can run scripts using Chrome browser.
Excel scrips are amazing and much simpler than VBA but because unreliability I can't use them in my business. I lost some time learning technology and building automation only to discover that I need to redo it again in VBA to make sure that script will run.

0 Votes 0 ·


Please vote on this item so it might get some attention.





0 Votes 0 ·
jeremy-msft avatar image
0 Votes"
jeremy-msft answered Sakura-6148 commented

Hi @Sakura-6148, could you please try reproducing the issue then sending feedback (referencing this post) from within Excel following the instructions below? This will help us better diagnose the issue.

https://support.microsoft.com/en-us/office/how-do-i-give-feedback-on-microsoft-office-2b102d44-b43f-4dd2-9ff4-23cf144cfb11#platform=Office_for_the_web

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. I've submitted now through the internal feedback button. Still experiencing the issue intermittently.

0 Votes 0 ·
Sakura-6148 avatar image
0 Votes"
Sakura-6148 answered Sakura-6148 commented

Not sure if there was any feedback since I last time inquired, but the issue has been popping all day now for me, meaning I cannot move forward with a project. A simple Office Script like this stays stuck on 'The script is running'. Happening on both Chrome and Microsoft Edge.


 function main(workbook: ExcelScript.Workbook)
 {
   // Your code here
   console.log("success")
 }
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It wasn't working for me a few days ago but now its working normally. Back then what i did in the meanwhile was changing the browser(and it worked). I saw on internet that maybe you can correct this by cleaning your browser cache.

1 Vote 1 ·

Hi,

Would you please try to reproduce this issue, then provide the Excel Online session ID?

To find the session id:
193906-image.png



Thank you!

0 Votes 0 ·
image.png (33.1 KiB)

Can I just post the session ID here?

This issue has really become a problem for us. Never experience it with Google App Script. I'm almost certain it is a browser issue that has not been properly tested by Microsoft. I have a computer where it works without a problem. Another computer where Office Scripts never work. This is very problematic for distribution as users all have different browser setups. Need a business solution on which we can depend.

0 Votes 0 ·

Could it be caused due to not having a desktop version of 365 installed on my machine? The other machine where it works, does have the 365 desktop version installed. I was hoping that merely having the right credentials I could test the scripts in Excel Online.


0 Votes 0 ·

I'm also having the same issue even on basic scripts. It stays stuck on the The script is running, with no error or output

0 Votes 0 ·
Bart-0342 avatar image
1 Vote"
Bart-0342 answered

Please vote on this item so it might get some attention.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ABK-1764 avatar image
0 Votes"
ABK-1764 answered

Also having this issue with new scripts I'm creating. They are fairly basic scripts too - removing and adding some columns and applying some number filters. Interestingly, old scripts still seem to work.

My current workaround is to use Firefox instead of Chrome

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.