Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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 :
Can anyone help with this?
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?
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.
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
Hello, @S_Rushikesh I observed this error because my subscription code was giving an error on a particular input set.
I created a regular service from the subscription code. While executing the service for different set of inputs, I observed that the UpdateDataTableEntries service used internally in my code was not updating the data table and was throwing an error on execution.