SOME FACTS ABOUT NETSUITE SCHEDULED SCRIPT
Category : suitescript
What is the governance limit of scheduled scripts?10000 units.
How is a scheduled script executed?
In NetSuite Customization Scheduled script can be executed either manually from the script deployment page by clicking on save and execute or it can be executed from the scripts using scheduling api’s or it can be scheduled to run at a specific time by defining it’s scheduled in the deployment page.
Is it possible to overcome 10000 units limit in scheduled script?
Yes. This can be achieved in 1.0 script by first checking the remaining usage. If it is less than 200 or 100, you can set the recovery point using nlapiSetRecoveryPoint() and then yielding the script using the api nlapiYieldScript(). In 2.0, there is no option to yield script. You can place back the script in queue when remaining usage is less and pass the internal id of last processed record in the parameter if the records are being proceeded in sorted manner. In the befogging of script, you can check if internal id is passed in the parameter. If yes, then start from next record onwards by passing the filter internalidnumber greater than last proceesed records id. In 2.0 you can also use Map/reduce to process large data which has inbuilt yielding feature.
Not Scheduled: This status is set wen you want to execute the script by clicking on save and execute button or by using the scheduling api’s.
Scheduled : Script will be submitted for processing at the time(s) specified on the Schedule subtab of the Script Deployment page.
Testing : Means that when the scheduled script is executed, it will run only in the script owner’s account. This status is used if you want to debug the code in the debugger.
scheduled – normal execution according to the deployment options specified in the UI
ondemand – the script is executed via a scheduled api from the script.
userinterface – the script is executed via the UI (the Save & Execute button has been clicked)
aborted – re-executed automatically following an aborted execution (system went down during execution)
skipped – executed automatically following downtime during which the script should have been executed.
Feel free to reach out TheSmilingCoders for proper netsuite implementation, netsuite consultation , netsuite customization, netsuite Support,netsuite Trainingcontact us at:
Email : [email protected]
Linkedin : https://www.linkedin.com/company/netsuite-academy/