cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Alerts not firing subscriptions

Tomellache2B
14-Alexandrite

Alerts not firing subscriptions

Good day community,

 

I have some alerts with limit values on the template level

Should the user need to change these limits there is a service that dynamically changes the alert limits for a particular thing.

Therefore the alert values on a thing level are overwriting the template values (which is fine). These alerts do get fired. However after getting fired they are mean to execute subscriptions, which is not happening. The alerts are not executing the subscriptions that listen to the alert property. 

 

Has anyone come across this issue before? Do you know why the subscriptions are getting ignored?

 

Regards, 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:Tomellache2B)

It's potentially possible that your dynamic treatment of the alerts is breaking the link to the subscription.

Could test that out by setting a static alert into a subscription and see if that functions normally.

If so, this probably was an unanticipated use case and I would at least file a support ticket.

The only way then I think to make this work, might be to create a 'Dynamic Subscription' however these do not persist, 

they are only in memory and can't be seen in Composer, only through services.

The perhaps more 'standard' route, might be to have DataChange into a Subscription which then triggers the Alert which then triggers the Alert subscription

Or DataChange into Subscription triggering the actions you would do on Alert.

View solution in original post

4 REPLIES 4
PaiChung
22-Sapphire I
(To:Tomellache2B)

It's potentially possible that your dynamic treatment of the alerts is breaking the link to the subscription.

Could test that out by setting a static alert into a subscription and see if that functions normally.

If so, this probably was an unanticipated use case and I would at least file a support ticket.

The only way then I think to make this work, might be to create a 'Dynamic Subscription' however these do not persist, 

they are only in memory and can't be seen in Composer, only through services.

The perhaps more 'standard' route, might be to have DataChange into a Subscription which then triggers the Alert which then triggers the Alert subscription

Or DataChange into Subscription triggering the actions you would do on Alert.

Tomellache2B
14-Alexandrite
(To:PaiChung)

hi @Pai.  I tested the subscription on data change like you suggested and it did work.

I also realized that my subscriptions were getting executed by adding info loggers. I needed to configure my monitoring script log to show info level loggers. Next I identified an error within the service that the subscription was calling. This error is what prevented the system from displaying the desired output. 

After fixing the error within the service that gets called when the subscription is executed, I was able to see some output.

 

Thank you for all the suggestions, they did help to debug.

Regards,

nmutter
14-Alexandrite
(To:Tomellache2B)

Just to rule it out as it may have happened to me already: Is the subscription enabled? I've heard of people who create subscriptions and wonder why they are not triggered - but they did not check the "enabled"-box when creating it

Tomellache2B
14-Alexandrite
(To:nmutter)

hi @nmutter yes my subscriptions are enabled. 

I appreciate  the suggestion.

Regards,

Top Tags