<?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/"><channel><title>KB-1365 Cannot use empty array in difference()</title><link>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1365 Cannot use empty array in difference()</title><link>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference</link><pubDate>Mon, 23 Jul 2018 14:28:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:414ff321-71a5-4ce9-ba3f-e00308dbb185</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference#comments</comments><description>Current Revision posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 2:28:01 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When applying the&amp;nbsp;&lt;code&gt;difference()&lt;/code&gt;&amp;nbsp;function on an empty array, such as the following:&lt;/p&gt;
&lt;pre class="code-java"&gt;=difference ({1,2,3,{},4},{})&lt;/pre&gt;
&lt;p&gt;the following error occurs:&lt;/p&gt;
&lt;pre class="code-java"&gt;Expression evaluation error at function &amp;#39;difference&amp;#39;: Invalid types, can only act on data of the same type (&lt;span class="code-object"&gt;Number&lt;/span&gt; (&lt;span class="code-object"&gt;Integer&lt;/span&gt;), Any Type)&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is &lt;strong&gt;AN-69761&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround, place a check prior to the &lt;code&gt;difference()&lt;/code&gt; function in order to avoid&amp;nbsp;evaluating empty arrays.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, application design, open issues&lt;/div&gt;
</description></item><item><title>KB-1365 Cannot use empty array in difference()</title><link>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference/revision/2</link><pubDate>Fri, 26 May 2017 12:36:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:414ff321-71a5-4ce9-ba3f-e00308dbb185</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 5/26/2017 12:36:25 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When applying the&amp;nbsp;&lt;code&gt;difference()&lt;/code&gt;&amp;nbsp;function on an empty array, such as the following:&lt;/p&gt;
&lt;pre class="code-java"&gt;=difference ({1,2,3,{},4},{})&lt;/pre&gt;
&lt;p&gt;the following error occurs:&lt;/p&gt;
&lt;pre class="code-java"&gt;Expression evaluation error at function &amp;#39;difference&amp;#39;: Invalid types, can only act on data of the same type (&lt;span class="code-object"&gt;Number&lt;/span&gt; (&lt;span class="code-object"&gt;Integer&lt;/span&gt;), Any Type)&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is &lt;strong&gt;AN-69761&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround, place a check prior to the &lt;code&gt;difference()&lt;/code&gt; function in order to avoid&amp;nbsp;evaluating empty arrays.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, open issues&lt;/div&gt;
</description></item><item><title>KBXXXX Cannot use empty array in difference()</title><link>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference/revision/1</link><pubDate>Thu, 25 May 2017 18:53:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:414ff321-71a5-4ce9-ba3f-e00308dbb185</guid><dc:creator>Jenn Pridemore</dc:creator><comments>https://community.appian.com/support/w/kb/602/kb-1365-cannot-use-empty-array-in-difference#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Jenn Pridemore on 5/25/2017 6:53:58 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When applying the&amp;nbsp;&lt;code&gt;difference()&amp;nbsp;&lt;/code&gt;function on an empty array, such as the following:&lt;/p&gt;
&lt;pre class="code-java"&gt;=difference ({1,2,3,{},4},{})&lt;/pre&gt;
&lt;p&gt;the following error occurs:&lt;/p&gt;
&lt;pre class="code-java"&gt;Expression evaluation error at function &amp;#39;difference&amp;#39;: Invalid types, can only act on data of the same type (&lt;span class="code-object"&gt;Number&lt;/span&gt; (&lt;span class="code-object"&gt;Integer&lt;/span&gt;), Any Type)&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is AN-69761.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround, place a check prior to the &lt;code&gt;difference()&lt;/code&gt; function in order to avoid&amp;nbsp;evaluating empty arrays.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 7.8 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, open issues&lt;/div&gt;
</description></item></channel></rss>