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.
Problem Using nlapLogExecution
Hi,
I have a scheduled script that runs through my last months bills and updates a custom column field on the line items.
This script has been running fine for the past few months but it's stopped working this month. When I run it I get an error message that reads:
Error: USER_ERROR
The total can not be negative.
Stack Trace: clearLocProcessedonBills(ServerSideScripts2.js:195)
My conclusion here is that I have a rogue bill that won't submit when I call nlapiSubmitRecord.
I have therefore added in a debug log so that I can figure out which transaction is causing the problem:
0