Troubleshooting Sync Script Errors in NetSuite Connector
Resolve Sync Script errors like 'Invalid String' in NetSuite Connector by adjusting data sync settings and ensuring correct parameters.
TL;DR Opening
If your NetSuite setup uses numerous custom fields, you may encounter the error SyntaxError: Invalid String [at JSON.parse (native), at Object.getInputData during Map/Reduce scripting for the NetSuite Connector. This typically happens when the JSON file exceeds one million characters, leading to failures in syncing orders effectively.
To prevent this issue, it is crucial to reduce the volume of data synced concurrently.
How to Reduce Data Sync Volume
Lower the data load in your synchronization script configurations by following these steps:
- Navigate to Customization > Scripting > Scripts in your NetSuite dashboard.
- Locate the FA | MR Sync - Update FA script and click on Deployments.
- In the customdeploy_fa_mr_sync_update_fa row, select Edit.
- Open the Parameters tab.
- Adjust the Amount of Records to Sync Per MR Run field to 10.
- Note: The default value is 20. If issues persist after reducing it to 10, continue to decrease it to 5. Should the problem still not resolve, contacting NetSuite Customer Support is advised.
- Click Save.
Key Error Message
- The specific error encountered is:
SyntaxError: Invalid String [at JSON.parse (native), at Object.getInputData. This indicates that the script is handling an excessively large JSON document.
Additional Support
For more persistent errors or issues, reference the [Troubleshooting Common NetSuite Issues in NetSuite Connector] and the [Troubleshooting Common NetSuite Configuration Issues].
Key Takeaways
- Sync errors can arise when managing large JSON files in NetSuite Connector syncing scripts.
- Reducing the number of records to sync simultaneously can resolve these errors.
- If problems persist after adjusting parameters, contact NetSuite Support for further assistance.
Frequently Asked Questions (4)
What should I do if I encounter a 'SyntaxError: Invalid String' during Map/Reduce scripting?
How do I adjust the number of records to sync per Map/Reduce run in NetSuite?
What steps should I take if reducing records to sync doesn't resolve script errors in NetSuite Connector?
Can reducing the sync data volume help with JSON parsing errors in NetSuite?
Was this article helpful?
More in Integration
- Loop Returns Integration in NetSuite Connector 2026.1
Updated to include features of the Loop Returns integration in NetSuite Connector 2026.1. Loop Returns Integration in NetSuite Connector 2026.1
- Create Integration Records for OAuth 2.0 in NetSuite 2026.1
In NetSuite 2026.1, administrators can create integration records for applications to use OAuth 2.0, enabling secure access. Here's how.
- Square Connector Integration in NetSuite 2026.1
Discover the Square Connector for seamless integration with NetSuite 2026.1, synchronizing transactions, orders, and inventory effortlessly.
- SuiteTalk Web Services Updates for NetSuite Integrations
SuiteTalk Web Services adds new Item Supply Plan support, enhancing integrations for efficient data management.
Advertising
Reach Integration Professionals
Put your product in front of NetSuite experts who work with Integration every day.
Sponsor This Category