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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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