Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
nlapiYieldScript is causing script to fail
I've been using nlapiYieldScript for years hard coded into a monthly report script that normally yields 2 or 3 times during execution. I decided to move that to a library function and found that it was failing from the library function even though the "Yield" was successful. After researching I found this was a know issue if nlapiYieldScript was called from a library script.
I have since removed the call out to the Library script function that contained nlapiYieldScript and inserted the nlapiYieldScript back in the main script. Now each time nlapiYieldScript is run in the main script it shows as "Yield" successful, however the script fails immediately after the Yield.
0