Resolving 'TypeError: Cannot read property 'length' of undefined' in N4V for Webi charts

Anonymised summary of support ticket #661303 (2021-10-04)

Symptom

A 'TypeError: Cannot read property 'length' of undefined' error occurs when calculating a chart in N4V for Webi. The issue may persist after Tomcat restart and is suspected to be related to browser compatibility or outdated licenses.

Environment

N4V for Webi (Need4Viz extensions for SAP BusinessObjects Web Intelligence) running on Tomcat servers. The issue was observed with Google Chrome and resolved better in Chromium Edge.

Resolution

  1. Check and update the N4V license key on all servers if expired or outdated.
  2. Enable debug logging in the config.js file by setting 'var LogDebug = true;'.
  3. Restart the N4V services using the command 'pm2 start all' in PowerShell.
  4. Clear all log files in the Need4Viz\logs folder (except Chart_usage.csv).
  5. Refresh the report and collect the generated logs (n4v_circular_out.log and n4v_circular_err.log) from each server.
  6. Disable debug logging by setting 'var LogDebug = false;' in config.js and restart services again.

Other resolution

The issue may also be browser-related; testing in Chromium Edge can help isolate the problem.