Export of images and PDF generation fails for N4V elements in Web Intelligence
Anonymised summary of support ticket #140421 (2024-09-19)
Symptom
PDF generation and image export for Need4Viz (N4V) elements in SAP BusinessObjects Web Intelligence (Webi) fail. PDFs display a placeholder (puzzle icon) instead of charts, and no images are generated in the working directory. Puppeteer does not appear to generate images during the process.
Environment
SAP BusinessObjects Web Intelligence 4.3 SP4 Patch 6, Need4Viz (N4V) versions from 2024.1.0 to 2024.2.0, Oracle Linux, Node.js v12.8.1, Puppeteer module.
Resolution
Enable debug mode in N4V by setting `LogDebug` to `true` in the configuration file (e.g., `config.js`).
Clear existing N4V log files (e.g., `n4v_xxx_out.log`, `n4v_xxx_err.log`).
Restart N4V services using `pm2 start all`.
Attempt to generate a PDF or PNG export (e.g., timeline chart) and check the logs for errors.
Verify Puppeteer installation and version by running `npm version` or inspecting `package.json` in the Puppeteer module directory.
If Puppeteer is missing or outdated, update it to a compatible version (e.g., 13.0.1 or newer) by following the provided instructions or downloading the updated modules.
After updating, restart N4V services and retest the export functionality.
Disable debug mode by setting `LogDebug` back to `false` and restart services once confirmed working.
Other resolution
Puppeteer must be properly installed and accessible to N4V for image generation. Temporary working directories are now created per export request to avoid conflicts.