How do you resolve the error "An unexpected SuiteScript Error has occurred" when accessing AvaTax configuration in NetSuite?
Overview
When you go to the Setup/Configuration in NetSuite you receive an error. "An unexpected SuiteScript Error has occurred" and you are not able to continue or configure.
Environment
NetSuite Basic
NetSuite OneWorld
Resolution
- First, verify the Avalara bundle installed. In NetSuite or NetSuite OneWorld, go to Customization > Suitebundler > Search & Install Bundles > List.
Note: each set of instructions below is different as it depends on which Avalara bundle is installed.
For Avalara bundle v5.7 (OneWorld) & v6.6 (Basic) and newer:
- Go to Customization > List, Records, Fields > Record Types > AVACONFIG > List > Edit
- Uncheck 'Config flag' and click Save
- You will now be able to access the Avalara configuration tab.
- Re-enter your AvaTax account credentials and validate again.
- Click Next to be redirect to configuration page.
- All tax codes and item tax code assignments will remain in place.
- Click 'Save'.
For Avalara bundle v5.6.2 (OneWorld) & v6.5.2 (Basic) and older:
- Go to Customization > List, Records, Fields > Record Types > AVACONFIG > List > Edit
- Clear all characters from the 'Password' field and click Save.
- You will now be able to access the Avalara configuration tab.
- All tax codes and item tax code assignments will remain in place.
- Re-enter your AvaTax account credentials and validate again.