Automatic export and publications

Configuring and maintaining the chain that produces a dashboard's HTML files (N4V 2026.4+): how the automatic export is set up in the Web Intelligence document, how the publications that run it are created, and what has to be redone over time.

This page is for platform administrators and for anyone putting a dashboard into production. It assumes the chain is already in place: extension deployed, N4V services running.

What the chain does

An N4V dashboard is not served by BO: it is a set of HTML files dropped into a folder of a Tomcat web application, which the N4V Dashboard Builder then reads to rebuild the dashboard. Three links:

  1. The section tabs, generated by the HTML export panel from the report's navigation axes. One tab per combination of axes, with the export options already set on every element.
  2. The automatic export, which writes one HTML file per element and per navigation value into the dashboard's folder.
  3. The SAP BI publications, which replay the tabs server-side — so those files are produced without anyone having to open the report — and which can be scheduled.

The first two are configured in the document, the third on the platform.

Configuring the automatic export

On the platform, once per environment

The target web application. A folder under <tomcat>/webapps, say n4v_dashboards, served from the next restart. Never drop dashboards into the BOE web application: a platform patch redeploys it and would wipe them.

The network share. A share on that folder, since this is how the N4V services (on the BO server) drop the exported files. The account running the N4V services must have read and write rights on it. This is the most frequent cause of an export that “succeeds” without producing a single file. Check with the service account itself, not with an administrator account.

The default export path. The export server carries a base path, which the panel offers as the Default path option. Setting it saves every user from typing a full UNC path, and lets the share be moved without going back over the documents. The exact values depend on how the installation was set up: refer to it before changing them.

The destination. Export Server goes through the N4V service on the BO side, Export FTP through an FTP drop. The choice depends on how the platform can write to the share; it is made per document, but it is best kept uniform across an environment.

In the document, for each dashboard

In the N4V - Section tabs automation panel, under Set up the generation:

Setting What it decides
Tab prefix The beginning of the generated tab names; it carries the __ separator, which is how they are recognised later
Export target Export Server or Export FTP
Default path Uses the path configured on the server, optionally completed with a sub-folder
Export folder The dashboard's folder in the web application — one folder per dashboard, never shared
Export one folder per group Partitions the data: one folder per value of the chosen dimension
Render all the html files Displays and scrolls every tab as it is created, so the files are produced right away

The generation itself sets, on every element copy, the name of the file produced (element#all.html outside sections, element#%SECTION%1%.html in one section, element#%SECTION%1%#%SECTION%2%.html in two), the navigation JS function on the navigation elements, and the automatic export to the folder given. So nothing has to be set by hand on the elements.

<note important>Publications run on the document stored in the repository, not on the screen: a tab that has been generated but not saved does not exist for them. The panel warns when the document has been changed since its last save, but the warning stops nothing — the document must be saved.</note>

Special case: one folder per group

When each division, fund or region must only see its own figures, the partitioning happens at export time, not at display time. The Export one folder per group switch reveals the choice of the splitting dimension, and then:

  • a technical section on that dimension is placed ahead of the others in every generated tab;
  • the export folder becomes folder_%SECTION%1%, hence one folder per value;
  • the file names shift accordingly (%SECTION%2%, %SECTION%3%…), so the group value lives in the path, never in the file name.

That interchangeability is what makes the whole thing work: the folders hold the same file names and the same layout, the Dashboard Builder scans only one of them, and the published dashboard then serves each user the folder of their own group. The folders are declared in the ACL, so only the authorised groups can read them.

Two deliberate refusals by the panel: the splitting dimension must not also be a navigation axis (its value would appear in the file names and the Builder would read it as one more filter), and its values must not contain a slash (the export would create a folder tree instead of sibling folders).

Folder names follow the engine's default naming: lower case, accents removed, anything else replaced by _. If that naming was changed on the server, the real names may differ — the generation summary says so.

Creating the publications

Server-side prerequisites

Creation goes through a JSP page shipped with the extension, because the platform's REST API exposes publications in read-only mode. The full procedure is in the README_publication_service.md file shipped next to the page; in short:

  1. n4v_publication_relay.jsp copied into <tomcat>/webapps/BOE/WEB-INF/ — it must be in WEB-INF, otherwise the Equinox bridge answers 404.
  2. The matching mapping declared in BOE's web.xml on /n4v/publication: an exact mapping takes precedence over the bridge's /*.
  3. The platform's SDK jars (BOE/WEB-INF/jars/lib) copied into <tomcat>/webapps/N4VCustomElements/WEB-INF/lib, without the container's own jars.
  4. Tomcat restarted.
  5. An existing MHTML publication on the platform, created in the CMC, used as the format template.

No password and no shared secret are involved: the service reuses the signed-in user's Enterprise session, and the publications it creates belong to that user, with that user's rights.

<note tip>If the service does not answer, the panel only shows the list of existing publications — it never displays a button it could not honour. That is the quickest way to tell whether the installation is in place.</note>

In the panel

N4V - Publications block, Publications of the generated tabs part:

  • the list of generated tabs is shown, boxes ticked — one publication per ticked tab;
  • the pencil renames a publication before it is created, since the generated names are long;
  • Create the publications creates them in the document's folder and starts them right away;
  • each run is followed until it ends (running, finished, failed), and the follow-up survives closing and reopening the panel;
  • the selection can be run again or deleted in one confirmed step.

The tab list combines what this workstation remembered at generation time and what the document actually holds: it therefore stays correct after reopening, from another workstation, and with an export per group.

Scheduling

Once created, the publications are scheduled from the CMC like any other publication: this is what keeps the dashboard alive without intervention. Set the rhythm by the data, not by how often the dashboard is read — every run replays the tabs and rewrites the folder's files.

Maintenance

After a platform patch or upgrade

A BOE patch redeploys the web application: the relay JSP and the web.xml change are gone, just like the extension's own folder. Redo steps 1, 2 and 4 of the server-side prerequisites. The SDK jars also have to be taken again if the platform version changed: they must match it.

What to check afterwards, in order: does the panel still show the creation block? does a test publication get created? does it produce its files in the expected folder?

After an extension update

The build deploys n4v_mhtml_publication.jsp at the root of N4VCustomElements; nothing to do on that side. The SDK jars copied into WEB-INF/lib, however, belong to the platform and not to the extension: check they are still there after the web application is redeployed. Clear the browser cache if a panel seems stuck on an old version.

After a change in the report

Two cases not to be confused:

  • The data changes: nothing to do, the scheduled publication refreshes the files.
  • The structure changes — a navigation axis added, one more N4V element, a revised layout: the tabs must be generated again, the document saved again, the publications run again (and new ones created for the new tabs), then the dashboard republished from the Builder. New files do not find their way into an already-built dashboard on their own.

Tabs already generated are found again even after reopening the document: they can be rendered again or removed in one go, without regenerating everything. A tab that already has the same name is emptied and rebuilt instead of being deleted and recreated, so its id is preserved and the publications targeting it keep working.

Day-to-day watch

Files are missing from the folder. In order of likelihood: a combination with no data — it does not exist, and its absence is normal; the document has not been saved since the last generation; the scrolling delay is too short, the N4V engine only producing an element's file when Webi draws it; the service account's rights on the share.

One group folder holds fewer files than another. That is legitimate: combinations with no data do not exist for that group. What should raise a flag is an empty folder, or a folder whose file names differ from the others'.

Behind a load balancer. With several BO nodes behind a load balancer, session affinity must be guaranteed: without it, every other call lands on a node that does not know the session and answers 404 in the middle of a tab generation. Have the infrastructure team check this before looking anywhere else.

Scheduled publications. Watch for failed instances in the CMC. A publication whose document has been renamed or moved still exists but no longer exports anything useful.

Housekeeping

  • Generated tabs that are no longer needed can be removed from the panel (Delete the generated tabs), which keeps them out of the list of publications to create.
  • Publications that have become useless are deleted through the selection, after confirmation.
  • Orphan group folders — a fund closed, a region merged — stay on the share: they do not bother the Builder, but they go stale. Remove them along with the matching ACL entry.
  • Exports are rewritten on every run: there is no pile of versions to purge, unless an export folder was renamed between two publications.

Quick troubleshooting

Symptom Most frequent cause
The publication creation block does not appear The service does not answer (relay missing, mapping missing, Tomcat not restarted), or no tab has been generated
404 on the service address The web.xml mapping is missing, or Tomcat has not been restarted
The JSP page's source comes back as is The address points at a place that serves files without executing them
Error 500 A JSP compile error, spelled out in <tomcat>/logs/; on BI 2025, the SDK jars are missing from the extension's web application
ready:false on the action=n4vprobe probe The page runs but found no session: sign in to the Launch Pad again in the same browser
Fewer publications created than there are tabs Tabs unticked in the list, or tabs not saved in the document
The publications run but the folder stays empty The service account's rights on the share, or no export folder set on the elements
The dashboard does not see the new elements The dashboard was not republished from the Builder after the structural change

The probe can be called directly: POST …/BOE/n4v/publication with the body action=n4vprobe returns {“build”:“…”,“ready”:true} when everything is in place, or {“relay”:“…”,“ticket”:“…”,“worker”:“…”} on a two-stage deployment — replay the same body with &ticket=… at that worker address to finish the check.


Values specific to an installation (paths, share names, service accounts) are to be taken from the installation file of the environment concerned.