Skip to main content
1-Visitor
June 16, 2022
Question

"Error Executing Event Handler" on subscription

  • June 16, 2022
  • 1 reply
  • 2500 views

Hello Everyone,

I have a subscription in my environment which is triggered when a DataChange event occurs. After subscription is triggered we are observing below error related to Event Handler in Application logs.

"Error Executing Event Handler <SubscriptionName> for event Type.Thing:Entity.<ThingName>:Event.DataChange:Property.<PropertyName>".

Referring to article https://www.ptc.com/en/support/article/CS336296, I have tried executing the below services from the thing's services, but service EnableSubscription is giving error in execution :

  • EnableThing
  • RestartThing
  • EnableAllAlerts
  • EnableSubscription

Can anyone help with this?

1 reply

22-Sapphire I
June 17, 2022

Are you sure this is not an error in the code that the subscription runs?

If you ran the code in a regular service do you get any errors?

KritikaS1-VisitorAuthor
1-Visitor
June 27, 2022

Hello @PaiChung thank you for your response.

I tried executing the code in a service and actually the UpdateDataTableEntries was giving error in execution for some values.

Now the issue is resolved for me.

12-Amethyst
December 19, 2022

Hello @KritikaS Could you please share more details regarding the resolution as you mentioned earlier error.
I'm also facing the same error currently; I hope you will assist me to resolve the error.

Thank you,
Rushikesh Shrimal