You are currently reviewing an older revision of this page.

KB-1170 Class Cast Exception

Symptoms

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

Cause

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.

Action

To correct the issue, perform the following:

  1. Change the type of the constant to match the type of the built-in function.
  2. Delete the constant.
  3. Rename the constant.
  4. Recreate Analytics by following KB-1157 (note: do not attempt this without permission from Appian Technical Support).

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: March 2017