Skip to main content
16-Pearl
February 20, 2025
Solved

How to update scan rate at a time to few properties industrial thing using service in Thingworx 9

  • February 20, 2025
  • 1 reply
  • 625 views

Hi,

How to update scan rate for few properties to Kepware industrial thing at a time using service instead of updating one by one  property in Thingworx 9.5.

I am trying to update scanrate to few properties using service but SQL transaction log size is increasing. Because , updating scan rate one by one property using below service. Is there way update scan rate at a time ?

I am using below code.

for(let i = 0; i < propertynamelist.length; i++) {
 
 ...........
 .................
 
 Things[remotething].SetRemotePropertyBinding({
propertyName: propertyName /* STRING */ ,
aspects: 
        {
          scanRate: 480000  // Update only the scan rate aspect
        }
});
 
}
 
Thanks&Regards,
Latha
Best answer by wcui

Hi @vi1 

This is a known issue when calling SetRemotePropertyBinding frequently because the service execution changes Thing definition so it adds a new record to Thing Change History which writes a new row to ThingWorx persisten database.

 

You can export the xml file of the Industrial thing and manually updated scanrate settings(aspect.scanRate="1000") then import xml file.

This will add only one new record to Thing Change history.

I am afraid currrently there is no other workarounds for this issue.

 

 

1 reply

wcui16-PearlAnswer
16-Pearl
February 24, 2025

Hi @vi1 

This is a known issue when calling SetRemotePropertyBinding frequently because the service execution changes Thing definition so it adds a new record to Thing Change History which writes a new row to ThingWorx persisten database.

 

You can export the xml file of the Industrial thing and manually updated scanrate settings(aspect.scanRate="1000") then import xml file.

This will add only one new record to Thing Change history.

I am afraid currrently there is no other workarounds for this issue.

 

 

vi116-PearlAuthor
16-Pearl
February 25, 2025

Thank you for reply. Is there automated service, Instead of Manual Export and Import for updating scan rate? Can we use wait after updating scan rate first property?