User encounters an Error: “SyntaxError: Unexpected token < in JSON at position 0 [at JSON.parse (native), at VendorBillFormGateway.triggerHttpsPostRequest (/SuiteApps/com.netsuite.vendorinvoicedistribution/app/common/gateways/BaseGateway.js:302:25)]” when opening a transaction such as Purchase Order or Sales Order. This is a result of Online Form User not being selected as one of the roles in a script deployment.
Solution
- Navigate to Customization > Scripting > Script Deployments
- Locate Deployment ID customdeploy_vid_sl_vendorbillform
- Click Edit
- Click Audience subtab
- External Roles: Select Online Form User
- Click Save
If Online Form User is not available for selection:
- Navigate to Setup > Company > Enable Features
- CRM subtab: Marketing section:
- Online Forms: Enter Checkmark
- Click Save
If the Online Form User does not reappear, please uninstall the SuiteApp and reinstall it, ensuring that Online Forms is enabled under Enable Features before installation.