<?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>index invalid</title><link>https://community.appian.com/discussions/f/new-to-appian/24545/index-invalid</link><description>Hi when am trying to click on any button it is giving this error 
 even am able to print the data correctly 
 
 here is the code</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: index invalid</title><link>https://community.appian.com/thread/94842?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:31:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:668d506e-992e-46a8-9d47-6c0fa0074e99</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I agree with the above reply(s) that you should try to access the property of the local variable dictionary more safely than dot notation.&amp;nbsp; Though I still suggest, since you&amp;#39;re not accessing an index (meaning a numbered position in an array) and rather accessing a (dot) property, i.e. dictionary/CDT field, that &lt;em&gt;at least&lt;/em&gt; for code clarity you use the proper named function, which is &lt;strong&gt;&lt;em&gt;property()&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;, rather than &lt;em&gt;index()&lt;/em&gt;, despite the fact that they are both aliases for identical back-end behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: index invalid</title><link>https://community.appian.com/thread/94813?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:57:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2db339b0-8964-4e7e-a09b-94e329549357</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;I would suggest you to use the index() function for getting the values from your data structure and not direct dot notation when you are not sure about what your data type is returning.&lt;/p&gt;
&lt;p&gt;index(local!crModuleStatusHistoryForLastCC_cdt, &amp;quot;addedBy_txt&amp;quot;, null)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: index invalid</title><link>https://community.appian.com/thread/94812?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:07:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83b16ee1-ad31-4b73-8c84-1b6867a856b3</guid><dc:creator>Ravi Roshan</dc:creator><description>&lt;p&gt;Please check the local variable&amp;nbsp;local!crModuleStatusHistoryForLastCC_cdt by adding a debug field. It must be empty (without any fields). That is why below code is breaking.&lt;/p&gt;
&lt;p&gt;a!save(&lt;br /&gt; ri!nextAssignee_txt,&lt;br /&gt; local!crModuleStatusHistoryForLastCC_cdt.addedBy_txt&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;If you use .(dot) operator, make sure your CDT is not empty.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>