VizAlerts
VizAlerts copied to clipboard
Email Action values that don't resolve to 0 / 1 result in a failure
Email Action is set up to return a 0 or 1 by default, which isn't ideal, because Tableau likes to create this as a Measure, which really isn't what it's for. We should switch this to true / false in the future and update the code to match.
Because of the measure-izing of that field, Tableau likes to SUM it by default. But it looks like any value that doesn't match a 0 or a 1 will be handled badly by the VizAlerts code right now, resulting in an unhelpful error email. Those values should either result in a more helpful error email, or just be ignored outright, since we're looking for a 1 value to trigger the email. Gotta think a bit more about that...
Agreed, making it a Boolean data type is logical.