Troubleshooting Sync Script Errors

If your NetSuite configuration setup uses many custom fields, your Map/Reduce (MR) Sync script instance that updates NetSuite Connector data may encounter the following error:

SyntaxError: Invalid String [at JSON.parse (native), at Object.getInputData

This error occurs when the JSON file is over one million characters long. This error could result in orders not syncing into NetSuite Connector properly.

To avoid this error, lower the amount of data that is synced at the same time.

To lower the amount of data being synced at the same time:

  1. Go to Customization > Scripting > Scripts.

  2. In the FA | MR Sync – Update FA script row, click Deployments.

  3. In the customdeploy_fa_mr_sync_update_fa row, click Edit.

  4. Click the Parameters tab.

  5. In the Amount of Records to Sync Per MR Run field, enter 10.

    Note:

    The default value of this field is 20. If the issue persists after lowering the value to 10, set the value to 5. If lowering to 5 does not resolve the issue, contact NetSuite Customer Support.

  6. Click Save.

Related Topics

Troubleshooting Common NetSuite Issues in NetSuite Connector
Troubleshooting Common NetSuite Configuration Issues

General Notices