<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to set infotable from edge in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584489#M32809</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/290541"&gt;@manasvi&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We noticed that in your original post you indicated you were using &lt;STRONG&gt;setPropertyValue&lt;/STRONG&gt; but in your post regarding the solution, you indicated you were able to get writeProperty vs. &lt;STRONG&gt;setProperty&lt;/STRONG&gt; to work.&amp;nbsp; Can you please confirm which services you were using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can provide more of your code (or all of it, if possible), it will help to provide some context around the issue you were initially experiencing and help us in recreating the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 20:15:11 GMT</pubDate>
    <dc:creator>slangley</dc:creator>
    <dc:date>2018-12-10T20:15:11Z</dc:date>
    <item>
      <title>Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580685#M32238</link>
      <description>&lt;P&gt;I am setting an infotable from java sdk edge, but the value is updated only the first time.&lt;/P&gt;
&lt;P&gt;For example the following code sets the infotable correctly in the first iteration of the while loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;while(true){

	this.setPropertyValue("SomePropertyName", new InfoTablePrimitive(myClass.returnsNewInfotable()));
	this.updateSubscribedProperties(1000);
	
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 10:58:59 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580685#M32238</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-11-12T10:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580762#M32248</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And is the relevant property persisted on the platform?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Craig A.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 21:31:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580762#M32248</guid>
      <dc:creator>CRArko</dc:creator>
      <dc:date>2018-11-12T21:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580782#M32252</link>
      <description>&lt;P&gt;Hi Craig,&lt;/P&gt;
&lt;P&gt;There are no relevant logs both on edge and TW server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the screenshot of the aspects of the infotable property, I hope they are ok?&lt;/P&gt;
&lt;P&gt;My observation is , as I posted earlier that , infotable once set by edge is not updated, when set again from edge, through the call&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this.setPropertyValue("SomePropertyName", new InfoTablePrimitive(myClass.returnsNewInfotable()));&lt;/PRE&gt;
&lt;P&gt;I hope this is correct code for infotable, I face no problems when I do this for Integers, Strings etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Manas&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 05:29:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/580782#M32252</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-11-13T05:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/581085#M32334</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/290541"&gt;@manasvi&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp; That will help determine where the issue is--the Platform ignoring the first try or the edge not sending data (or sending incorrect data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 17:59:53 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/581085#M32334</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2018-11-14T17:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/582403#M32513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Sharon,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please find the attached log file, edge side (LogsForPTCForum.txt)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please have look around the line numbers 6505,7300&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Logs of the tomcat server are attached as (serverSideLog.txt)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have also attached the relevant piece of code as code.txt&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if there are anything else I can have a look at.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Manasvi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 11:36:46 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/582403#M32513</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-11-26T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/582490#M32521</link>
      <description>&lt;P&gt;I Just noticed that instead of setproperty method, writeproperty works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:59:04 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/582490#M32521</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-11-27T05:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584252#M32792</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/290541"&gt;@manasvi&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are going to do further testing on this to validate.&amp;nbsp; We were expecting the setproperty method to work, as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 15:54:30 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584252#M32792</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2018-12-07T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584489#M32809</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/290541"&gt;@manasvi&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We noticed that in your original post you indicated you were using &lt;STRONG&gt;setPropertyValue&lt;/STRONG&gt; but in your post regarding the solution, you indicated you were able to get writeProperty vs. &lt;STRONG&gt;setProperty&lt;/STRONG&gt; to work.&amp;nbsp; Can you please confirm which services you were using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can provide more of your code (or all of it, if possible), it will help to provide some context around the issue you were initially experiencing and help us in recreating the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 20:15:11 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584489#M32809</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2018-12-10T20:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584545#M32821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/183931"&gt;@slangley&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I am not 100% sure&amp;nbsp;how I used &lt;STRONG&gt;setPropertyValues&lt;/STRONG&gt; initially as I tried lots of different methods to solve it, however for &lt;STRONG&gt;setProperty&lt;/STRONG&gt; I am sure that it does &lt;EM&gt;not&lt;/EM&gt; work as expected, &lt;STRONG&gt;i.e.&lt;/STRONG&gt; I&amp;nbsp; could only send values once&lt;STRONG&gt;,&lt;/STRONG&gt;inside the process scan request loop. On the next iteration of the loop, when the values of the Infotables on edge had changed, I was unable to see the Infotable change on the TW server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached relevant piece of code with some comments for clarity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you need more information, or was I supposed to use &lt;STRONG&gt;setPropertyValues&lt;/STRONG&gt; differently for Infotables.&lt;/P&gt;
&lt;P&gt;Also, are you able to reproduce the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:39:19 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/584545#M32821</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-12-11T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/586823#M33198</link>
      <description>&lt;P&gt;Hi Sharon,&lt;/P&gt;
&lt;P&gt;Were you able to replicate the issue? In case you need more information, I would be glad to provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Manas&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 07:05:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/586823#M33198</guid>
      <dc:creator>manasvi</dc:creator>
      <dc:date>2018-12-28T07:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set infotable from edge</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/587169#M33262</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/290541"&gt;@manasvi&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are still working on it.&amp;nbsp; As soon as we have more information, I will post an update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:58:22 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-set-infotable-from-edge/m-p/587169#M33262</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-01-02T15:58:22Z</dc:date>
    </item>
  </channel>
</rss>

