Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
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
My NPrinting Condition looks like this and I've verified that it's attached to the Task
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.
What concept am I missing ?
Any help is greatly appreciated
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.
As an initial test, reload your NPrinting connection and try again and let us know the result.
Kind regards...
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
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.
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...
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.
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