Fix NetSuite Unexpected Error on Sales Order Form
Learn to fix NetSuite Sales Order form errors: Troubleshoot unexpected errors, compare forms, identify metadata corruption.
Suite UtilsHow we write these guides
On this page
An unexpected error has occurred stops the Sales Order page from loading for one user on one custom form while other users and other forms work fine. The client script pageInit never fires and beforeLoad User Event scripts finish cleanly, which means NetSuite aborts during its own form build. This pattern almost always points to form metadata corruption rather than a script or role permission.
The discussion that triggered this article involved a custom Sales Order form rebuilt after an automated layout change. After the rebuild, one user could not create a new Sales Order via Transform from Estimate, a blank new record, or direct URL salesord.nl?cf=<formid>. The same user could edit existing orders on that form and could create orders on a different custom Sales Order form in the same session. Switching roles did not change the behavior.
What the corruption looks like
Compare the failing form with a working Sales Order form.
Customization > Forms > Transaction Forms. Open both forms and check:
- Actions > Standard Actions. The working form lists Approve, Auto Fill, Fulfill, Save & New, etc. The failing form shows "No records to show". Standard Actions cannot be added back from the UI once the list is empty.
- Subtab labels. On the failing form four sublist labels were stored as raw translation keys:
{#Payment#},{#Events#},{#Tasks#},{#Phone Calls#}. The working form shows plain "Payment", "Events", etc.
Oracle's docs note that a translation typed directly onto a form is visible only to users with the same language preference. So one form can render two ways for two users on the same role, and a failure that follows one person rather than one role is worth checking against their language setting first.
Empty Standard Actions and raw {#...#} keys look like symptoms of a form that was partially rebuilt or merged by an automation tool. A likely explanation is that the literal key breaks the render for users whose language preference triggers a translation lookup, while users with a different preference still get a usable label. We haven't seen Oracle document that mechanism, so treat it as a working theory.
Restore Standard Actions without a full rebuild
There is no UI button to re-add Standard Actions once the list is empty. Use one of these paths.
Clone and redeploy via Save As
- Customization > Forms > Transaction Forms
- Open the corrupted form
- Click Actions > Save As
- Name the copy clearly, e.g.,
Sales Order - Main v2 - Open the copy and check whether Actions > Standard Actions is populated
- Make the copy the preferred form: check the Preferred box for it at Customization > Forms > Transaction Forms, or on the Forms subtab of each role at Setup > Users/Roles > Manage Roles
Don't count on this. A copy may inherit the same empty Standard Actions list, so check the copy before you reassign anything. If the list is populated, you have a clean form without a manual rebuild. If it's empty, go to the SDF route.
SDF export/import
- Using the SuiteCloud IDE plug-ins or the SuiteCloud CLI, import the working form and the failing form into an SDF project
- Compare the two XML files and bring the failing form's action definitions in line with the working one
- Deploy the corrected XML to a sandbox, test creation with the affected user, then deploy to production
Fix raw translation keys
- Open the form in Form Designer
- Expand each sublist and note the Label field
- Replace
{#Payment#}withPayment,{#Events#}withEvents, etc. - Click Save and clear the browser cache, then test with the affected user's language preference
If the form uses multiple languages, manage the label translations in a translation collection with the Manage Translations feature, which Oracle recommends over editing each form's Translation subtab. Do not store the {#...#} placeholder as the label. Translation management for custom records and subtab titles is handled through the Multiple Languages feature.
Why it fails for one user only
Same role, same browser, same form can still fail for one user because:
- Language preference. Each user picks a language at Home > Set Preferences, and translations entered directly on a form show only for users with the same preference. A raw
{#...#}key is a likely cause of a render failure for one language and not another. - Session state. Logging out and back in was already tried in the source thread and didn't help, which points away from a stale session and toward the form itself.
Ask the user to check their language under Home > Set Preferences, since language is a personal preference each user sets. Then reproduce with an admin account set to the same language.
Checklist for user-specific form failures
- Verify the error ID in the browser URL or execution log and open a Support case. An
UNEXPECTED_ERRORwith Error ID is a NetSuite-side render failure. - Confirm beforeLoad scripts complete and client scripts do not fire. That isolates the failure to server-side form build.
- Compare form metadata side-by-side: Standard Actions count, sublist labels, field IDs, and custom actions.
- Test the failing form with the affected user in an incognito window and with a different language preference.
- If Standard Actions is empty, try a Save As copy (and check it) or repair the form through SDF rather than editing the corrupted record in place.
An automated layout change is the likely trigger here, though we can't say how often it happens. The cleanest long-term fix is to version forms with SDF and avoid manual edits on production forms. Audit forms regularly for empty Standard Actions and placeholder labels before users encounter them.


