Annual trigger doesn't trigger unless a time is specified

C7 on 2.3.6.146

I have a rule set up to update a hub variable twice a year. Unfortunately, the variable didn't get updated as expected.

I created a mockup rule to test, with this trigger :

The rule looks like this :

The rule settings reveal there is no event subscription and no schedule set, so I am not sure how it could ever trigger.

If I specify a time (e.g. 00:00), then a job does get scheduled

So I am not sure if this is an RM bug and the trigger should work without specifying a time, or if it's a UI bug and my trigger should not have been accepted without specifying a time.

No, the asterisk means that this field ("At this time") is required (there's an aversion in RM to making the fields literally required, i.e., un-submit-able, but I don't know the exact reason besides making it more difficult to remove things you don't really need later). It has to happen at some time on that date, so filling in midnight if that's what you want is certainly fine.

Right. I admit I didn't see or pay attention to the asterisk - my bad.

I guess I was expecting the UI to tell me if I forgot something critical, or pre-fill the fields with something valid (like an "and stays" trigger, which sets zeroes by default)

It's a minor thing for sure.

I thought about this some more and decided to do things a bit differently. I need to ensure the rule runs at least once within a given period (and as soon as possible within that period), so having a trigger at a specific time and date seemed... brittle.

image

(I could have used the rule's private boolean to ensure it runs only once)

Perhaps I'm overdoing it and there is a simpler way to achieve the same result?

That general idea seems like it should work -- though I'm assuming you have more to make the whole thing work (since you'd need it).

1 Like

Right. What I ultimately want to do is

So I have another rule mirroring this one to reset the variable when outside of the time period.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.