COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Event Studio => Topic started by: tethysnz on 10 Jun 2013 12:17:29 AM

Title: Event fires again on same condition in scheduled agent
Post by: tethysnz on 10 Jun 2013 12:17:29 AM
I am new to Event Studio. My event checks for orders that require approval and sends an email to the manager responsible.
The event ran on Friday and sent an email for a particular order, then it ran again today (Monday) and sent an email for the same order.
There has been no change in the underlying data - all the values in the event condition are the same.
My scheduled job runs the agent every four hours between 10 am and 6 pm.
Has anyone else had this issue?

Thanks
Title: Re: Event fires again on same condition in scheduled agent
Post by: MFGF on 10 Jun 2013 03:52:30 AM
Hi,

How have you defined your task execution rules in the agent? My guess is that you have set the email task to run for both new and ongoing events. If you find this is the case, simply uncheck the "ongoing events" checkbox for the email.

Cheers!

MF.
Title: Re: Event fires again on same condition in scheduled agent
Post by: tethysnz on 10 Jun 2013 03:55:53 PM
Hi - Thanks for the response but actually the email event fires only when the event is New.
I am puzzled because the event ran several times in between the two times when the duplicate event occurred.
In the in-between runs, no duplicate occurred.
I am going to try to capture the event log for each run so I can more clearly see what's happening.
Cheers, Tethysnz
Title: Re: Event fires again on same condition in scheduled agent
Post by: MFGF on 11 Jun 2013 03:33:02 AM
Is it possible the agent detected a "Ceased" event over the weekend (ie a false condition)? If it did, then the next time it ran it would trigger a "New" event again if the result was a true condition.

The event log should tell you what is going on, plus you could also temporarily set the agent to email you when it detects ongoing, ceased or no condition (with the condition result) so you can see from your inbox what the states detected are.

Good luck!

MF.