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.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Season’s greetings to you and yours! As we head into the holidays (December 24 – January 4), we want to take a moment to celebrate the incredible strength and collaboration within our community. Even during the break, you can continue to benefit from connecting with peers, searching related threads, posting your questions, and marking helpful replies as “Accepted” in the Support Community.
Please note our dedicated team will be on reduced coverage during this time, and regular responsiveness will resume on January 5. Wishing you a joyful and restful holiday season!
-The NetSuite Support Community Team
Changing entity in BeforeSubmit for SalesOrder generates TRANS_NOT_COMPLETED error
Greetings,
I'm writing a User Event script "Before Submit" function triggered by creating a Sales Order from web services. I want to change the Customer ('entity') value in my SuiteScript, but when doing so get an error "TRANS_NOT_COMPLETED" web service response.
The code line is below - if I comment the setFieldValue out, everything else works fine.
var curRec = nlapiGetNewRecord();
.....
curRec.setFieldValue('entity', '1375');
Note I'm able to change other data points, examples:
curRec.setFieldValue('customform', '68');
curRec.setFieldValue('trandate', '2/15/2015');
Just unable to figure out why I can't change 'entity' and what exactly is causing the 'TRANS_NOT_COMPLETE' error. Looking forward, I have a similar issue trying to change the Project ('job') field in a similar fashion, noting we are using Advanced Projects but think it may be the same root cause as this.