DataChange Event using Store and Forward executes Subscription/Service with Duplicate Value
Hi all,
I'm testing the Store and Forward feature in KepserverEx. The idea was to test whether it is possible if the data stored in local disk whenever the connection between KepserverEx and Thingworx is down, can trigger a DataChange Event on Thingworx to execute a service once the connection is restored. The service is to process the raw data from Kepware and store it to our DB. To test the accuracy of the data, we also logged it using Value Stream in Thingworx.
According to this article, this scheme should work. Based on our test, we found that the value stream worked properly and the DataChange event triggered the execution of the service. But, for the data that was forwarded from the storage (it was stored due to disconnection between Thingworx and Kepware), rather than executing the service for each value that triggers the DataChange event, we saw duplicate results in our DB. It seems like the event was triggered multiple times based on the DataChange from Kepware but the service execution is done using 1 value only.
My questions are:
- Does it have anything to do with the forward method? I’m not sure how the data is forwarded from Kepware to Thingworx using Store and Forward
- What is the best way to achieve this other than processing the data directly from the value stream?
Note: We use Active Mode for Store and Forward, KepserverEX V6, and Thingworx 9

