====== How to resolve 'Cannot read property 'path' of undefined' error for custom maps in N4V for Webi ====== //Anonymised summary of support ticket #622031 (2024-05-21)// ===== Symptom ===== %%Error message 'Cannot read property 'path' of undefined' appears when generating a custom map in Web Intelligence, despite the map files being present on the server. Other charts work correctly.%% ===== Environment ===== N4V for Webi (Need4Viz extensions for SAP BusinessObjects Web Intelligence), custom map files (e.g., cerp1.js, cerp2.js, cerp3.js) deployed in the correct directories, Webi reports. ===== Resolution ===== - %%Verify that the custom map files (e.g., cerp1.js, cerp2.js, cerp3.js) are correctly deployed in the directory: /webapps/N4VCustomElements/res/js/highcharts/maps_custom.%% - %%Ensure the file list_maps_conf.js in the directory /nodejs/node_modules/custom_element/ce_libs/resources is the original version provided by the N4V setup. If modified, replace it with the original file.%% - %%Restart the N4V services (e.g., using 'pm2 start all' in a PowerShell window) to apply changes.%% ===== Other resolution ===== If the issue persists, check the browser console logs and the N4V server logs for additional error details.