meta data for this page
How to prevent HTML export file name truncation in N4V for Webi
Anonymised summary of support ticket #285094 (2023-07-27)
Symptom
When exporting HTML files from N4V for Webi, the generated file names are truncated due to special characters (accents, spaces) or uppercase letters in section field values. This causes navigation issues in the exported dashboard.
Environment
N4V for Webi extension, SAP BusinessObjects Web Intelligence, Tomcat or similar web server.
Resolution
- Edit the N4V configuration file (config.js) to disable name normalization:
- Set 'var normalize_name_HTML = false;' to preserve special characters.
- Set 'var lowercase_name_HTML = false;' to preserve uppercase letters.
- Restart N4V services (e.g., 'pm2 start all' in PowerShell) to apply changes.
- If keeping name protection is preferred, apply the same normalization logic in JavaScript when reconstructing target names for iframes using:
- FileNameHTML.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
- FileNameHTML.replace(/[^a-z0-9_\-\.]/gi, '_').toLowerCase();
Other resolution
Special characters and uppercase letters in section field values are replaced by default to avoid file system errors. Disabling normalization allows full field content in file names but may require additional handling for compatibility.