meta data for this page
Troubleshooting 'A JSONObject text must begin with {' error when adding custom elements in N4V for Webi
Anonymised summary of support ticket #750617 (2023-05-04)
Symptom
Error 'A JSONObject text must begin with {' at 1 [character 2 line 1]' occurs when attempting to add a custom element via CMC in SAP BusinessObjects Web Intelligence after installing N4V. Additionally, high CPU usage by node.exe processes and connection refusal errors may appear.
Environment
SAP BusinessObjects BI4.3 SP3 with N4V 2022.2.1 installed. Services running on Windows with Node.js components.
Resolution
- Verify the validity of the N4V license key file (key.js).
- Place the key.js file in the correct directory: <N4V_INSTALL_DIR>\nodejs\node_modules\custom_element\ce_libs, overwriting any existing file.
- Restart N4V services using the command 'pm2 start all' in PowerShell.
- If high CPU usage persists, stop all Node.js processes using 'pm2 kill' in PowerShell.
- Manually terminate any remaining node.exe processes via Task Manager or restart the server.
- Relaunch N4V services using the script <N4V_INSTALL_DIR>\scripts\Start_Need4Viz.ps1.