Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
SuiteScript - You still need to reconfigure the inventory detail record after changing the quantity
Hello~
I'm working on automating the creation of Inventory Adjustments so that we can expense items from our item receipts with ease. However, I've run into a problem that I'm struggling to wrap my head around.
{"type":"error.SuiteScriptError","name":"USER_ERROR","message":"You still need to reconfigure the inventory detail record after changing the quantity.","id":"","stack":["anonymous(N/serverRecordService)","onRequest(/SuiteScripts/ExpenseButtonFunction.js:245)"],"
When I run the script, I get this message as it tries to create the item line. It would suggest that the quantity on the item line is being changed after I've added the inventory details of quantity and status, but that shouldn't be happening? I put the inventory detail quantity last in the process just to be sure but to no avail.