HOW TO OVERCOME GOVERNANCE LIMIT IN SCHEDULE SCRIPT?
Feel free to reach your NetSuite Solution Provider , TheSmilingCoders for proper netsuite implementation , netsuite consultation , netsuite customization , netsuite Support , netsuite Training Schedule script has a governance limit of 10000 units. In many situations, schedule script is used for processing huge amount of data and this might take more than 10000 units. To overcome this problem, Netsuite provides the api's nlapiSetRecoveryPoint() and nlapiYieldScript() . This creates a recovery point and re-executes the schedule script from where it left and its governance units are also reset. It can create a recovery point even inside a for or while loop. nlapiSetRecoveryPoint() consumes 100 units. The below code explains how to use these api's if(nlapiGetContext().getRemainingUsage()<300) { nlapiSetRecoveryPoint(); ...