Hi, I'm finally migrating my legacy nPrinting 16 reports over to May 2022. Using the Migration tool I have come across an issue that I've not found a solution to.
Each project I migrate creates it's own app and connection, however I have multiple projects that actually use the same qvw, just in old nprint we had them split under different nsq's. My issue is that I am unable to change the app+connection after import so I am left with multuple apps and connections for the exact same qvw, meaning it's caching the same qvw multiple times in the new environment.
I've even tried exporting and creating new to import and assign to the single app but it then says connection not valid as the import/export retains the migrated connection.
What are my options here, am I stuck with multple apps/connections for same qvw if i use the migration tool?
My thanks in advance for any help
Hi,
You can create many connections to the same QVW and I agree with you that, instead, minimizing the number of connections by avoiding duplicates is a good optimization practice. In that way you reduce the size of the Repository by avoiding "duplicate" rows in the table that contains the connection caches.
Every time you use the migration tool also if you import an already imported QlikView NPrinting 16 project (an .nsq file) all entities will be re-created as new.
What you could try is to import the second project, manually export every report template from Qlik NPrinting May 2022 and import it by selecting the first app. If in the first app there already is a connection, with a cache correctly generated, to the same QVW used in the imported template you should see it in the dropdown menu. Select the connection and finish the import. All objects in the imported report will point to the first connection.
If you do not see the connection while importing the template be sure that it has the cache generated and all objects used by the imported template.
Best Regards,
Ruggero
Thank you Lech
I have tried the re-import by exporting and importing the report. It asks me what App to assign so I'm able to select my 'generic' app, however when i proceed the connection fails with message attached. It looks like in the export, the export retains details of the connection behind the app and that connection is named differently (has a date stamp etc). I've even changed the connection name to match the other, but it must be using an id as it's still not allowing me to import to the other app.
Any guidance on what I'm doing wrong would be appeciated
Thanks
Derek
Hi @DerekAJones
The message indicates that objects used in the report are not present in the connection you are trying to connect to. That can be missing field, some old legacy references to objects which no longer exists in the app. NPrinting 16 did not validate such errors but current versions are having more "checks" and differences in data models will cause it.
I suggest you edit such report, check "Validate entities" in NPrinting designer, remove all unused and not necessary objects and try generating preview. If it all works only then try to export/import report again.
thanks
Lech
Hi,
Thats it
cheers
Hi,
You can create many connections to the same QVW and I agree with you that, instead, minimizing the number of connections by avoiding duplicates is a good optimization practice. In that way you reduce the size of the Repository by avoiding "duplicate" rows in the table that contains the connection caches.
Every time you use the migration tool also if you import an already imported QlikView NPrinting 16 project (an .nsq file) all entities will be re-created as new.
What you could try is to import the second project, manually export every report template from Qlik NPrinting May 2022 and import it by selecting the first app. If in the first app there already is a connection, with a cache correctly generated, to the same QVW used in the imported template you should see it in the dropdown menu. Select the connection and finish the import. All objects in the imported report will point to the first connection.
If you do not see the connection while importing the template be sure that it has the cache generated and all objects used by the imported template.
Best Regards,
Ruggero
Thank you Lech
I have tried the re-import by exporting and importing the report. It asks me what App to assign so I'm able to select my 'generic' app, however when i proceed the connection fails with message attached. It looks like in the export, the export retains details of the connection behind the app and that connection is named differently (has a date stamp etc). I've even changed the connection name to match the other, but it must be using an id as it's still not allowing me to import to the other app.
Any guidance on what I'm doing wrong would be appeciated
Thanks
Derek
Thanks Ruggero
I have tried export/import with no success results I have shared on Lech's comments if you can view there?
Quick update for all...
So I tried a seperate app, importing project, exporting report and then re-importing and it allowed me to select the connection on inmport, so that error is osolated to this project. There is something in the report preventing the connection being changed. Have you come across anything taht would block the connection change?
Hi @DerekAJones
The message indicates that objects used in the report are not present in the connection you are trying to connect to. That can be missing field, some old legacy references to objects which no longer exists in the app. NPrinting 16 did not validate such errors but current versions are having more "checks" and differences in data models will cause it.
I suggest you edit such report, check "Validate entities" in NPrinting designer, remove all unused and not necessary objects and try generating preview. If it all works only then try to export/import report again.
thanks
Lech
Thanks Lech
That was exactly it. A single filter value was missing in the app i.e the field still existed but the value didn't, which is odd, you'd think it would accept a value that didn't exist, just if the field was missing that would cause an issue. But anyhow, chaging the filter value and importing project again then exporting worked. Unlucky for me my first app I tried had this issue, subsequent apps went through OK.
Thanks for your help