Skip to main content
16-Pearl
Feb 20, 2025 1:10 PM UTC
Solved

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

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
wcuiAnswer
16-Pearl
Feb 24, 2025 2:16 AM UTC

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.

 

 

3 replies

wcui16-PearlAnswer
16-Pearl
Feb 24, 2025 2:16 AM UTC

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.

 

 

Translate
vi116-PearlAuthor
16-Pearl
Feb 25, 2025 11:35 AM UTC

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?

Translate