<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Script task holding onto old property.</title><link>https://community.appian.com/discussions/f/process/17957/script-task-holding-onto-old-property</link><description>Getting this error on a script task 
 An error occurred while evaluating expression: submission.statusId:AC!submission.statusId (Invalid index: Cannot index property &amp;#39;statusId&amp;#39; of type Text into type MR_ARES_submission) (Data Outputs) 
 Thing is statusId</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Script task holding onto old property.</title><link>https://community.appian.com/thread/70725?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 08:38:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae40ae94-6e2d-4477-9fe4-a39021c9a9ea</guid><dc:creator>sayalip</dc:creator><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;Do you have any lower or higher Appian environments to try this on except the one you are currently facing this issue?&lt;/p&gt;
&lt;p&gt;I have faced weird issues with Process Modeler on one of my Appian environments where the process model would not maintain the links between nodes if I directly dragged a node over an existing link. But it would maintain connections if I connected the nodes traditionally; one by one. So i&amp;nbsp;used to re-connect all my affected nodes every single time. But the same process model would work fine on other environments.&lt;/p&gt;
&lt;p&gt;The point is see if you run into&amp;nbsp;the same issue on other Appian environments as well. If not, then your environment is at fault here.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Script task holding onto old property.</title><link>https://community.appian.com/thread/70721?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:22:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc6c0aab-589b-4944-8043-bc3798ac1914</guid><dc:creator>DaveMC</dc:creator><description>&lt;p&gt;I&amp;#39;ve also discovered that adding a new field to a CDT and then publishing it is not an issue for the script task. It&amp;#39;s only when a field is deleted&amp;nbsp;from a CDT that this issue arises. The script task appears to be caching the list of fields and updating it with new fields added to the CDT but is unable to update it&amp;#39;s cache by removing fields no longer in the CDT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Script task holding onto old property.</title><link>https://community.appian.com/thread/70711?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 13:48:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:523f6a70-32a9-4d3c-a3bd-20e91e4b4392</guid><dc:creator>DaveMC</dc:creator><description>&lt;p&gt;Hi Mohan,&lt;/p&gt;
&lt;p&gt;The script task recognizes the new cdt because it presents me with the status object (CDT) instead of the statusId when I click on the submission CDT. Its just that when its executed it appears to be looking for the original submission cdt with the statusId property.&lt;/p&gt;
&lt;p&gt;If I create a new script task and add the submission cdt there, then everything will work just fine. Since the new script task never knew about the earlier version of the submission cdt it doesn&amp;#39;t look for it at runtime. The annoying thing here is that I also have to set all the properties again on the input node.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve run into this before, just getting tired of having to do over an entire script task because I modified a property on one of the CDT&amp;#39;s.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Script task holding onto old property.</title><link>https://community.appian.com/thread/70699?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 21:38:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a81cdf0b-1445-40e6-8988-a5bc926d4d65</guid><dc:creator>mohanp309</dc:creator><description>&lt;p&gt;Hi Dave, if you reference the CDT is input tab of the script task. I am wondering if that&amp;#39;s not updated with your newer version of the CDT. If that input points to the current CDT this error should be removed. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>