How to resolve HTML export issues with N4V for Webi when embedding in external HTTPS pages

Anonymised summary of support ticket #222441 (2024-08-21)

Symptom

HTML exports from Webi with N4V charts fail when embedded in an external HTTPS wiki server. Errors include 'highcharts is not defined' and 'ERR_TOO_MANY_REDIRECTS'. The issue occurs due to cross-origin restrictions, proxy DNS redirections, or iframe security policies.

Environment

SAP BusinessObjects Web Intelligence with N4V extensions (Need4Viz). Webi server accessible via HTTP/HTTPS. External wiki server hosted on HTTPS. N4V webapp (N4VCustomElements) hosted on Tomcat. Proxy DNS may redirect traffic.

Resolution

  1. Set 'use_external_webbapp_HTML' to True in N4V configuration to allow external URLs in HTML exports.
  2. Configure 'URL_PORT_WebApp_ext_HTML' with the HTTPS URL of the N4V webapp (e.g., https://[external-server]/N4VCustomElements).
  3. Ensure the external wiki server can access the N4V webapp URL directly (test by accessing the URL in a browser).
  4. If the wiki server embeds the HTML via an iframe, verify that the N4V webapp allows embedding (check server-side security policies like X-Frame-Options or Content-Security-Policy headers).
  5. For versions prior to N4V 2024.2.0, manually adjust URLs in the generated HTML file to point to a local copy of N4V libraries hosted on the wiki server. For newer versions, use the per-component URL override feature to specify a custom N4V webapp URL during export.

Other resolution

If the issue persists, check SSL certificate validity for the N4V webapp URL and ensure no firewall/proxy blocks access to the webapp from the wiki server. For debugging, inspect browser console errors and network requests in the wiki page.