Work Around Process to Update/Reload/Refresh NPrinting 17 connections
Article Number: 000019322 | Last Modified: 2018/06/12
This is a workaround to the issue in the Initial Release of NP 17, the NPrinting services had to be restarted manually after a metadata reload of an NPrinting connection. This allowed for new objects added or removed from the QVW for that connection to be updated and used accordingly in the NP 17 template editor.
New QlikView objects added to (or removed from) the connection QVW would not appear in the available object list within the template editor until the steps above had been taken.
NPrinting 17 fails to correctly reload all metadata QV objects. Manual intervention with restarting NPrinting services needed to capture new QV objects and meta data.
With NPrinting 17 SR1 some important optimizations have been introduced.
These optimizations resulted in a workaround for reloading a connection without restarting the NPrinting services.
1) For an existing "Generated" connection which needs to update the source QV document (add or remove objects or data) in the Connection path, simply make the changes to the QVW as needed, save and close.
2) Next, edit the related NPrinting connection changing the document path to an invalid path (e.g. "NP Demo.qvw" -> "NP Demo1.qvw").
3) Save the connection.
4) Wait until the connection status changes into "No engines are working" and the cache status to "Error: The request was purged due to connection errors".
5) Edit the NPrinting connection again, adjusting the document path (e.g. "NP Demo1.qvw" -> "NP Demo.qvw").
6) Save the connection.
This will reload the connection and make it possible to obtain new objects and data into NPrinting without restarting the services.
On the first attempt, there may still be a connection error. If so, simply manually run a "reload metadata" once again.
This should correctly update the metadata cache and the new objects should appear as expected.
Update: From NPrinting 17.3 simply reloading the metadata would result in the new objects and data being available in the Connection.