Script Schedule of execution of instructions Error exceeded in Netsuite

I have a schedule script that does some calculations and updates a custom header field in a Sales Order that runs every 30 minutes.

With the increase in the order number on Netsuite, I began to receive the error message "An unexpected error occurred"

Execution time: 677.15s Script Usage: 75 Error: SSS_INSTRUCTION_COUNT_EXCEEDED "Script Exceeded execution counter. Stack trace: scheduled

Please help me get rid of this error.

ps: for the indicated problem there is no answer to the set.

+4
source share
3 answers

NetSuite , script . @rockstar

NetSuite "" ",

, .

, , - , script.

- , , , yield script reset script.

+3

NetSuite " ", . SSS_INSTRUCTION_COUNT_EXCEEDED. , NetSuite for script, , , .

NetSuite nlapiLogExecution(type, title, details)

, NetSuite, . ( ), nlapiLogExecution() .

:

60- 100 000 nlapiLogExecution() .

60- NetSuite , script ( 100 000 nlapiLogExecution()), NetSuite script . script , , script.

script . , script NetSuite. NetSuite, , , , ( ) . NetSuite , .

ABC 10 , 60- . 10

 nlapiLogExecution('DEBUG', 'My log', x.getID()) 

70 000 20- , NetSuite script.

script script (. ). , " " script "", NetSuite . , ,

nlapiLogExecution('DEBUG', 'My log', x.getID()) 

, , script .

Script

NetSuite , script , script . script , script , 100 000 ( 60- ).

NetSuite script. , NetSuite script, script .

: Netsuite [ script ]

+4

I usually get this error if I have some kind of logic in a loop that takes a lot of time to complete. Another common reason for this is endless loops.

+1
source

Source: https://habr.com/ru/post/1629493/


All Articles