<?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-1182 "Expression evaluation error at function 'reduce' [line #]" error thrown when using reduce() function with nested lists</title><link>https://community.appian.com/support/w/kb/399/kb-1182-expression-evaluation-error-at-function-reduce-line-error-thrown-when-using-reduce-function-with-nested-lists</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1182 "Expression evaluation error at function 'reduce' [line #]" error thrown when using reduce() function with nested lists</title><link>https://community.appian.com/support/w/kb/399/kb-1182-expression-evaluation-error-at-function-reduce-line-error-thrown-when-using-reduce-function-with-nested-lists</link><pubDate>Mon, 06 Mar 2017 19:19:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8b4b20b-d415-4e4d-b397-6ebac14477df</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/399/kb-1182-expression-evaluation-error-at-function-reduce-line-error-thrown-when-using-reduce-function-with-nested-lists#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 7:19:16 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using the &lt;code&gt;reduce()&lt;/code&gt; function and the &amp;quot;function&amp;quot; parameter is set to a function whose result is an array (i.e. &lt;code&gt;apply()&lt;/code&gt;) the following error is observed:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488827889006v1.png"&gt;&lt;img src="/resized-image/__size/1200x55555/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488827889006v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error at function &amp;lsquo;reduce&amp;rsquo; [line #]: 
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&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-70271&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Do not use looping functions within a &lt;code&gt;reduce()&lt;/code&gt; function.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 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></channel></rss>