Skip to main content
1-Visitor
November 12, 2018
Question

Unable to set infotable from edge

  • November 12, 2018
  • 1 reply
  • 7235 views

I am setting an infotable from java sdk edge, but the value is updated only the first time.

For example the following code sets the infotable correctly in the first iteration of the while loop

 

while(true){

	this.setPropertyValue("SomePropertyName", new InfoTablePrimitive(myClass.returnsNewInfotable()));
	this.updateSubscribedProperties(1000);
	
}

 

In the second iteration , the value is not changed, i.e. even if the function returnsNewInfotable returns an infotable with different values, only the initial values are reflected in thingworx server.

1 reply

5-Regular Member
November 12, 2018

Hello,

 

We're going to need some more information to figure this out. Are there error messages in the logs on the Edge or on the Server?

 

And is the relevant property persisted on the platform?

 

Thanks,

 

-- Craig A.

manasvi1-VisitorAuthor
1-Visitor
November 13, 2018

Hi Craig,

There are no relevant logs both on edge and TW server. 

I have attached the screenshot of the aspects of the infotable property, I hope they are ok?

My observation is , as I posted earlier that , infotable once set by edge is not updated, when set again from edge, through the call 

this.setPropertyValue("SomePropertyName", new InfoTablePrimitive(myClass.returnsNewInfotable()));

I hope this is correct code for infotable, I face no problems when I do this for Integers, Strings etc.

 

Regards,

Manas

Support
November 14, 2018

Hi @manasvi.

 

What we really need are the trace logs from the edge side to determine what is being sent on the first attempt at updating the infotable.  That will help determine where the issue is--the Platform ignoring the first try or the edge not sending data (or sending incorrect data).

 

Regards.

 

--Sharon