Office Script stuck

Sakura 61 Reputation points
2022-01-24T22:55:21.773+00:00

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.

Microsoft 365 and Office | Development | Other
{count} votes

8 answers

Sort by: Most helpful
  1. Bart 36 Reputation points
    2022-05-20T11:25:54.92+00:00

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

    3 people found this answer helpful.
    0 comments No comments

  2. Michał Stelmasiak 10 Reputation points
    2023-03-03T14:55:24.6266667+00:00

    Also having this issue today at my office. Doesn't work on any computer.

    This feature depending on internet connection is unacceptable. VBA scripts runs locally so why not office scripts?

    2 people found this answer helpful.

  3. Juan Viteri 5 Reputation points
    2023-03-03T15:39:08.9866667+00:00

    I ran into this issue after some days working normally since I started with Office Scripts this week. No matter if I run the script on the Desktop version, or on the web version (Edge or Chrome). The notification "The script is running..." will stay forever without actually doing any command.

    User's image

    1 person found this answer helpful.

  4. jeremy-msft 11 Reputation points Microsoft Employee Moderator
    2022-01-31T17:05:30.933+00:00

    Hi @Sakura , 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


  5. Sakura 61 Reputation points
    2022-04-12T05:47:07.5+00:00

    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")
    }
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.