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: 
JustinDallas
Specialist III
Specialist III

Condition Not Preventing Distribution

TL;DR Condition variable evaluates to not distribute for a particular user, user however still receives a report

Hello Folks,

I have a Condition (variable based) attached to a Task that I'm expecting to be evaluated for every user.  In my script, my variable looks like this:

vSomethinEqualCondition.PNG

The DIST and NODIST are for Distribute and No Distribute.

When I look at the variable in the dashboard, I see the following which is expected

vSomethinEqualDashboard.PNG

 

My NPrinting Condition looks like this and I've verified that it's attached to the Task

vSomethingNPrintingConditions.PNG

ConditionAttached.PNG

However, when I run the task, the user still receives a report.  And I have the variable listed in the report which evaluates to NODIST.

vSomethingNPrintingEmailMessage.PNG

vSomethingNPrintingEmail.PNG

 

What concept am I missing ?

Any help is greatly appreciated

Labels (2)
1 Solution

Accepted Solutions
JustinDallas
Specialist III
Specialist III
Author

The problem was unfortunately simple.  I had to set the Condition on the REPORT of the task, and not the task itself.  I assume when a user doesn't have any reports evaluate as true, then no email is sent.

 

Sorry to waste time.

View solution in original post

6 Replies
Frank_S
Support
Support

Hi @JustinDallas

As an initial test, reload your NPrinting connection and try again and let us know the result.

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @JustinDallas 

When you put your variable in InputBox in Qlik Sense (Variable input extension object) what do you see? Do you see the result of calculation or formula?

If you see formula then the issue is as described here: https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/Troubleshooting/Variables-dont-expan...

thanks

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.
JustinDallas
Specialist III
Specialist III
Author

The problem was unfortunately simple.  I had to set the Condition on the REPORT of the task, and not the task itself.  I assume when a user doesn't have any reports evaluate as true, then no email is sent.

 

Sorry to waste time.

Frank_S
Support
Support

Thanks for sharing the solution!

This will be helpful to all who encounter similar behavior.

 

Your observations appear to be inline with the docs.

 

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Jacob_Poole
Contributor III
Contributor III

Great that it is working now for your setup. 

Just for others awareness there is an option in Settings>Task that could impact the email delivery depending on the number of reports in a task. 

____________________________________________________________________________________________

Email distribution errors

 If all reports fail, recipients will not receive an email.

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Good to know it works for you @JustinDallas 

I should have picked this up when you wrote that "Condition variable evaluates to not distribute for a particular user" and I should assume that this means additional filtering... hence report level condition...

 🙂

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.