<?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>Casting Issue on dataset</title><link>https://community.appian.com/discussions/f/user-interface/12422/casting-issue-on-dataset</link><description>Hi, 
 
 I am trying to pass one dataset in appyComponent() to another interface and trying to filter that database on some conditions. 
 
 But getting below error. 
 
 local!dataset: index(ri!fulldatasubset,wherecontains(ri!testName[ri!index],ri!fulldatasubset</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Casting Issue on dataset</title><link>https://community.appian.com/thread/55142?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 06:11:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d2dee5a-5b83-400d-9767-0b4f8045129d</guid><dc:creator>abishekk109</dc:creator><description>Hi Saurav,&lt;br /&gt;
&lt;br /&gt;
I believe the value ri!fulldatasubset.data.testName has null value , i.e there are no values in this ri! variable. Please do check on this. Hence using dot notation to index might return the above error.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Abishek&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Casting Issue on dataset</title><link>https://community.appian.com/thread/55141?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 04:47:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ad98aed-bfeb-4231-bbc8-a47d7fbeda9e</guid><dc:creator>ravalik</dc:creator><description>Hi sauravk,&lt;br /&gt;
&lt;br /&gt;
As per my understanding wherecontains() parameters must be of same type .It is not possible to search a different array with an agument of type integer.As text values are case-sensitive,this function is used in finding the items in a array which have thes= same value for a field.So in your case the same reflects i.e, index(ri!fulldatasubset,wherecontains((ri!testName[ri!index],tostring(ri!fulldatasubset.data.testName))).Try with that once.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Casting Issue on dataset</title><link>https://community.appian.com/thread/55139?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 04:05:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e10f1229-06ad-4de1-ab79-be6cbaf9c8fb</guid><dc:creator>Abhay Giri</dc:creator><description>wherecontains worked with only same data type and in your case first argument is text type while other is dataset type so use tostring() function to cast dataset into text type.&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
Abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Casting Issue on dataset</title><link>https://community.appian.com/thread/55128?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 16:59:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e09eb081-2e63-48e4-9349-d06c0eadec85</guid><dc:creator>lucasj</dc:creator><description>When using wherecontains(), you can only compare data of the same type.  My recommendation would be to cast the ri!fulldatasubset.data.testName into type Text using the tostring() function&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>