KB-1170 Class Cast Exception


The following error is shown in the application server log:

ERROR com.appiancorp.suiteapi.common.ResultPageReturnConverter - java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Integer


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 task_status, this error can then occur with any report that uses the task_status() function or that is related to a task that uses the task_status() function.

Refer to Reserved Names for more information.


To correct the issue, perform the following:

  1. Find and delete the offending constant by following KB-1147
  2. Rename the constant, ensuring you do not use a Reserved Name
  3. Recreate Analytics by following KB-1157 (note: do not attempt this without advise from Appian Technical Support).

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: December 2017