Table of Contents

Troubleshooting 'Cannot read property 'path' of undefined' error when using new maps in N4V for Webi

Anonymised summary of support ticket #937995 (2023-06-30)

Symptom

Error 'cannot read property 'path' of undefined' appears when attempting to use newly installed maps in N4V for Webi. The issue persists even after verifying file permissions, restarting services, and clearing browser cache.

Environment

N4V for Webi (Need4Viz extensions for SAP BusinessObjects Web Intelligence), SAP BusinessObjects Web Intelligence, Tomcat or Apache web server, N4VCustomElements component.

Resolution

  1. Verify that the map files (e.g., fr-regions_2.js) and their associated folders (e.g., pack_1) are correctly deployed in the N4VCustomElements web application directory under /res/js/highcharts/maps_[locale]/.
  2. Ensure the JavaScript files are accessible via the URL: http(s)://[server]/N4VCustomElements/res/js/highcharts/maps_[locale]/[map_file.js].
  3. Check that the files have the correct permissions (e.g., 0755) and ownership to be readable by the web server.
  4. Update the configuration file (e.g., config.js) in the N4VCustomElements installation directory to include the new map versions (e.g., version_files_id range).
  5. Restart the web application server (e.g., Tomcat) to apply changes.
  6. Clear the browser cache or use a private/incognito window to avoid cached errors.
  7. Recreate the Webi report or map to ensure the new configuration is applied.

Other resolution

If the issue persists, consider checking the browser console for additional errors or conflicts with other JavaScript libraries. Ensure compatibility between the map files and the N4V for Webi version in use.