<?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-1170 Class Cast Exception</title><link>https://community.appian.com/support/w/kb/387/kb-1170-class-cast-exception</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1170 Class Cast Exception</title><link>https://community.appian.com/support/w/kb/387/kb-1170-class-cast-exception</link><pubDate>Mon, 18 Dec 2017 17:58:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61aa8b78-b0e9-463d-81a9-884ffdb3f2ee</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/387/kb-1170-class-cast-exception#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 12/18/2017 5:58:04 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following error is shown in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR com.appiancorp.suiteapi.common.ResultPageReturnConverter - java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Integer
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This may happen if you create a constant that has the same name as an existing function. For example, if you create a constant called &lt;strong&gt;task_status&lt;/strong&gt;, this error can then occur with any report that uses the &lt;code&gt;task_status()&lt;/code&gt; function or that is related to a task that uses the &lt;code&gt;task_status()&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="https://docs.appian.com/suite/help/latest/Constants.html#Reserved_Names"&gt;Reserved Names&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To correct the issue, perform the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Find&amp;nbsp;and delete the offending constant by following&amp;nbsp;&lt;a class="external-link" href="/support/w/kb/366/kb-1147-fatal-errors-related-to-importing-system-zip-during-loading-system-objects-stage-of-jboss-startup" rel="nofollow"&gt;KB-1147&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Rename the constant, ensuring you do not use a&amp;nbsp;&lt;a class="external-link" href="https://docs.appian.com/suite/help/latest/Constants.html#Reserved_Names" rel="nofollow"&gt;Reserved Name&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Recreate Analytics by following &lt;a href="https://docs.appian.com/suite/help/latest/kb/kb-1157.html"&gt;KB-1157&lt;/a&gt; (&lt;strong&gt;note:&lt;/strong&gt; do not attempt this without advise from Appian Technical Support).&lt;/li&gt;
&lt;/ol&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: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application design&lt;/div&gt;
</description></item><item><title>KB-1170 Class Cast Exception</title><link>https://community.appian.com/support/w/kb/387/kb-1170-class-cast-exception/revision/1</link><pubDate>Mon, 06 Mar 2017 15:16:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61aa8b78-b0e9-463d-81a9-884ffdb3f2ee</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/387/kb-1170-class-cast-exception#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 3:16:32 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following error is shown in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR com.appiancorp.suiteapi.common.ResultPageReturnConverter - java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Integer
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This may happen if you create a constant that has the same name as an existing function. For example, if you create a constant called &lt;strong&gt;task_status&lt;/strong&gt;, this error can then occur with any report that uses the &lt;code&gt;task_status()&lt;/code&gt; function or that is related to a task that uses the &lt;code&gt;task_status()&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="https://docs.appian.com/suite/help/latest/Constants.html#Reserved_Names"&gt;Reserved Names&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To correct the issue, perform the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Change the type of the constant to match the type of the built-in function.&lt;/li&gt;
&lt;li&gt;Delete the constant.&lt;/li&gt;
&lt;li&gt;Rename the constant.&lt;/li&gt;
&lt;li&gt;Recreate Analytics by following &lt;a href="https://docs.appian.com/suite/help/latest/kb/kb-1157.html"&gt;KB-1157&lt;/a&gt; (&lt;strong&gt;note:&lt;/strong&gt; do not attempt this without permission from Appian Technical Support).&lt;/li&gt;
&lt;/ol&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: application design&lt;/div&gt;
</description></item></channel></rss>