Skip to main content
13-Aquamarine
October 16, 2024
Solved

ThingWorx SetRemotePropertyBinding Runtime?

  • October 16, 2024
  • 4 replies
  • 3635 views

Does anyone know the runtime for the SetRemotePropertyBinding service in ThingWorx and if calling it a lot of times in a single service to automatically bind many properties will cause slow runtime or timeout issues? My team is trying to bind between 1000-2000 properties for a machine in a single service call and the service takes incredibly long to run, sometimes will reach the 20-minute service timeout limit, and I am trying to rule out if this service could cause that issue if ran a lot. Thanks!

 

Version 9.3.17

Best answer by Constantine

Hello,

 

It must be the thing restart, which is slow. Try to export your thing as XML, "rebind" the properties in the file, and import it back -- this way you may avoid multiple costly restarts.

 

/ Constantine

4 replies

19-Tanzanite
October 17, 2024

Hi @JK_10744682 ,

The only way to approach this in order to know with certainty where the time is spent, is to time the execution of the service sections in the loop. You can create a big string or JSON where you log all the execution times of the different parts of the service, then analyze it after it finishes execution to find out what takes the most.

Please let us know the outcome of this analysis 🙂

13-Aquamarine
October 18, 2024

After some analysis, the SetRemotePropertyBinding service is what is taking so long. The average time for each service call to SetRemotePropertyBinding was 1707.69 MS. Which explains why my service is timing out. But is there any way to speed up this service so that I can call it 1000-2000 times and not time out? It is a built-in service so I don't know exactly what can be done to speed this up. 

16-Pearl
October 21, 2024

Have you tried AddPropertyDefinitions service? It can add multiple properties by one call.

13-Aquamarine
October 21, 2024

I haven't tried this but don't think it would work since I am just re-binding my existing properties that are on shapes on the thing but this service seems to create entire properties

18-Opal
October 22, 2024

Hello,

 

It must be the thing restart, which is slow. Try to export your thing as XML, "rebind" the properties in the file, and import it back -- this way you may avoid multiple costly restarts.

 

/ Constantine

18-Opal
October 23, 2024

I would suggest trying this manually once, and if you confirm that it works faster than before, then you can automate it quite easily with a combination of SourceControlFunctions and ContentLoader resources.

16-Pearl
March 25, 2025

Hi @vi1 


I wanted to follow up with you on your post to see if your question has been answered.
If so, please mark the appropriate reply as the Accepted Solution for the benefit of other members who may have the same question.
Of course, if you have more to share on your issue, please let the Community know so that we can continue to support.


Thanks,

Wenjing

16-Pearl
April 7, 2025

Hi @vi1 


I wanted to follow up with you on your post to see if your question has been answered.
If so, please mark the appropriate reply as the Accepted Solution for the benefit of other members who may have the same question.
Of course, if you have more to share on your issue, please let the Community know so that we can continue to support.


Thanks,

Wenjing