Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
rafalcqlik
Contributor III
Contributor III

Wrong data is being generated by NPrinting

Hi,

We are facing very weird issue. We have a dedicated Qlik Sense app just for NPrinting reports. There is that table with many columns but to simplify it's something like this:

DateAmountTerritorySales Rep
6/19/2020267AtlantaJohn
6/20/202014AtlantaJohn
6/19/202045AtlantaJohn
6/20/2020123AtlantaJohn
6/19/202053AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/19/202045New YorkMike
6/20/2020123New YorkMike
6/19/202054New YorkMike
6/20/2020123New YorkMike
6/19/202065New YorkMike
6/20/2020123New YorkMike
6/19/202076New YorkMike
6/20/202012New YorkMike
6/19/2020123New YorkMike
6/20/202065New YorkMike
6/19/202065New YorkMike
6/20/2020123New YorkMike
6/19/2020654New YorkMike

 

So I have some territory and only one sales rep for each territory and that's how I see it in Qlik Sense. Now what NPrinting generated was something like this:

DateAmountTerritorySales Rep
6/19/2020267AtlantaJohn
6/20/202014AtlantaJohn
6/19/202045AtlantaJohn
6/20/2020123AtlantaJohn
6/19/202053AtlantaJohn
6/20/2020123AtlantaMike
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/20/2020123AtlantaJohn
6/19/2020543AtlantaJohn
6/19/202045New YorkMike
6/20/2020123New YorkMike
6/19/202054New YorkMike
6/20/2020123New YorkMike
6/19/202065New YorkMike
6/20/2020123New YorkMike
6/19/202076New YorkMike
6/20/202012New YorkMike
6/19/2020123New YorkMike
6/20/202065New YorkMike
6/19/202065New YorkMike
6/20/2020123New YorkMike
6/19/2020654New YorkMike

 

So it's like NPrinting mixed up some data. I checked that in that exact table in Qlik Sense and the data is ok. John is always assigned to Atlanta and MIke is always assigned to New York. I'm not using additional filters in NPrinting - everything is calculated in set analysis. And the best part is that when I refresh that report again (without refreshing or changing anything on Qlik side) the data is generated correctly. 

We are using NPrinting February 2020 (I'm 99% sure that we had the same situation on November 2018 version once). During first report generation also other tasks in NPrinting were running (using the same QS app) so instead of ~8 minutes it took like 25 but I don't thing that's an issue. 

Any ideas what's causing that?

Labels (2)
8 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Cool sample - great for Qlik support to investigate. What do you think @Ruggero_Piccoli ?

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

The behaviour is very strange. I think there is an error somewhere in the development of the Qlik NPrinting solution. We need more information to investigate, for example the template (what kind of, how it is build, etc).

If you cannot share screenshots or other details here please open a support ticket as suggested by @Lech_Miszkiewicz 

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
rafalcqlik
Contributor III
Contributor III
Author

Sorry for delay in response...

The report is quite simple. Straight table with one measure (variable used), some static texts, some calculated fields and standard fields. Here it is in the Designer:

rafalcqlik_0-1592835133822.png

 

I'm also attaching excel template (some field names were changed). There is not much room to make a mistake in development. I'm hoping it is my error so I can quickly fix it but I just can't find it... And I think, even with some error, report should still be wrong in the same way after refreshing it again from the same app which hasn't been refreshed in the meantime.

Ruggero_Piccoli
Support
Support

Hi,

Tha table in the screenshot has 24 columns. The attached template has 28 columns. So I suppose you added some columns from different tables side-by-side in the template. That is not supported, so if you need all 28 columns side-by-side in the report add all of them in the original table. Remember to refresh the connection cache, close and reopen the template and update the object to reflect the changes.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
rafalcqlik
Contributor III
Contributor III
Author

Hi,

those are not additional columns from other objects. The requirement was to have for example 3 columns with static text saying 'N/A' or '(blank)'. Adding such columns in Qlik Sense is possible but NPrinting will not see them as 3 columns, just 1 because the content is exactly the same. So in the report, I'm just using the same column more than once, just with different header. I'm also doing that with measure - I have one measure in Qlik but the requirement was to have the same numbers in 2 columns in excel file, with different header. That's why you see more columns in template than in table definition but I think it's not something wrong. There is nothing joined, merged from other objects. Whole report is pulling data from one Qlik Sense object.

Example:

rafalcqlik_0-1593510479413.png

 

rafalcqlik
Contributor III
Contributor III
Author

Hi all,

just a follow up because issue happens from time to time. I've set NPrinting task to run twice a day with 2 hours interval (without refreshing Qlik app). First run gives mixed up data while the second one is ok. There are other tasks that run at the same time (as the first run) and those other tasks read data from the same app. Is that a problem?

We will create support ticket for that. Just wanted to let you know as this is very disturbing.

eucastillo1
Contributor II
Contributor II

Hello everybody, did you manage to solve the problem you reported? Can you share the solution with me? I have exactly the same problem
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @eucastillo1 - Old topic to discuss this, but... 

I would assume the issue was caused due to overlapping reloads. It seems like source app was not fully reloaded when nprinting kicked in causing part of data to come from old app and another part from freshly reloaded app.

Otherwise Open new conversation, provide all required and correct information regarding versions of NPrinting and Qlik you are using and describe your template and model as much as possible so we can replicate all your steps without seeing your setup..

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.