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)] After Installing Transaction Line Distribution (Version 1.2.4)

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
  1. Navigate to Customization Scripting Script Deployments
  2. Locate Deployment ID customdeploy_vid_sl_vendorbillform
  3. Click Edit
  4. Click Audience subtab
  5. External Roles: Select Online Form User
  6. Click Save

If Online Form User is not available for selection:

  1. Navigate to Setup Company Enable Features
  2. CRM subtab: Marketing section: 
  3. Online Forms: Enter Checkmark
  4. 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.

Leave a comment

Your email address will not be published. Required fields are marked *