====== 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 ===== - Check and update the N4V license key on all servers if expired or outdated. - %%Enable debug logging in the config.js file by setting 'var LogDebug = true;'.%% - %%Restart the N4V services using the command 'pm2 start all' in PowerShell.%% - %%Clear all log files in the Need4Viz\logs folder (except Chart_usage.csv).%% - %%Refresh the report and collect the generated logs (n4v_circular_out.log and n4v_circular_err.log) from each server.%% - %%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.%%