Why do I get a Tax Nexus error when I do a record....
# ask-stanley-ai
a
Why do I get a Tax Nexus error when I do a record.submitFields() call, but not when I save by clicking the blue Save button in the UI, on a specific Invoice?
1
c
AI generated answer (using internal Slack threads):
The Tax Nexus error you're encountering when using
record.submitFields()
but not when saving via the UI could be due to the way NetSuite handles these two operations differently. When you use
record.submitFields()
, it's a server-side operation that doesn't necessarily trigger all the client-side logic that would be executed when you click the Save button in the UI. This includes the logic that automatically populates certain fields based on the Nexus. In the case of tax fields, these are often dependent on the Nexus. If the Nexus isn't set correctly or isn't being recognized in the server-side operation, this could lead to the Tax Nexus error. To resolve this, you might need to explicitly set the Nexus in your script before calling
record.submitFields()
. Also, ensure that you're not inadvertently overwriting or nullifying the Nexus elsewhere in your script. Remember to also check if there are any user event scripts or workflows that might be interfering with the operation. These scripts or workflows might not be designed to work with server-side operations like
record.submitFields()
, and could be causing the error. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832763731
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828186035
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82409668
Please provide your feedback on this answer.
a
It was because the Subsidiary didn't have all its Tax Registrations set up
1