Instant error message: Script is taking too long to execute. Negative User CPU time.

lock
push_pin
done
Besvarat
1

Hi,

One of our customers has a custom screen built in Service.

  1. First, the user uploads a .csv-file,
  2. Then, they click "Upload" which executes a CRMScript and redirects them to another screen.

  1. The CRMScript parses and saves the csv data in an extratable. The data is then displayed in another Screen using a static table. 
  2. After confirming that the data is correct, the user click "Import" which executes another CRMScript.
  3. This script contains some business logic and calculations, some of the data is saved again to another extratable.

 

We're encountering an issue where users sporadically receive the error message below. The error message usually appears instantly, rather than after the script has been running for a while. 

Script is taking too long to execute. Execution time: 1066117.28, User CPU time: -6871.58

After retrying 3-4 more times, it works without any issues.

Does anyone have any idea what could be causing this error?

Not sure if it helps, but i've also seen the error occurring in other customer's enviroments when custom screens are loaded.

Let me know if you need more details.

28. nov. 2023 | 12:32 em

Allt Svar (1)

If you retry it, are you using the same file for import?

I assume you are storing the file you want to import as a attachment in service, maybe a timeout occurs there because it took to long to same/retrieve it? I would add some logging between each step you mentioned and see where it fails.

29. nov. 2023 | 10:03 fm

Lägg till svar