Trigger Not Working

Hello,

Per the older v2 tutorial I have configured a trigger, the trigger runs every minute which executes a rule -> action. However this does not seem to work. I set the trigger to display a message so every minute a message should appear but it does not. I also tried the add line to text file instead of message but the same result.

Here is my trigger:

Here is my rule:

And finally my action:

Triggers do not work if your inside a ticket they only work if no ticket is open. What are you trying to do with the trigger?

@Jesse - Every hour (not minute, just set to minute for testing) I want to write custom report tag results to an email.

As kendash said they wont trigger while a ticket is open.
My triggers on PMS integration are set via rule mapping to only trigger the event on the headless server which is not used other than for Db and scripting.

Hello,

Do this mean the rule won’t apply when a ticket is open on screen or by the user or?

I have a server which also runs sambapos 5. It does have display screens so the tickets are there but the server is never used for anything other than a DB. I just tried mapping my rule to the terminal - server but still it does not seem to work.

You can do this but like I said triggers will not fire if a ticket is open. So you could miss several emails or even all of them if a ticket happens to be open on the hour.[quote=“Luis_Varsan, post:5, topic:10612”]
Do this mean the rule won’t apply when a ticket is open on screen or by the user or?
[/quote]

It means the trigger will not execute so the rule event will never happen because the trigger never happened.

Is there a way around this to launch a tigger regardless? I have a server which is only used as a DB and has sambapos 5.

You can try what JTRTech suggested or you can find a different rule event to suit your needs and not use triggers at all.

Understood, JTRTech says he does this by mapping the rule to a headless server. On said server is sambapos running? If it is then wouldn’t tickets be open there too since it’s all the same system?

I have a server with sambapos 5 running, it’s logged into the POS system but has not opened any tickets itself, despite that it is unable to get triggers to work still.

On my server SambaPOS is running but not logged in, just on login screen.
Mapping the rule to the server only was to ensure the resulting script was only run once by the server avoiding chance of double running on other terminal (if that is possible or not am not sure but wanted to be safe).
As I understand it trigger is a global event so would trigger the rule on every machine open to triggers at that time.

Thanks to you both, that works, mapped it to server and made sure it’s logged out.

1 Like