KB-1404 queryEntity fails when an XSD has a field marked as @Transient


When running SAIL code with queryEntity against a CDT with a field marked as @Transient, the query will fail with the the error: "An error occurred while retrieving the data"


The root cause investigation is being tracked via AN-62219. This occurs due to the @Transient field being present in the CDT.


As a workaround, if the use case requires the queryEntity be used, use the "selection" parameter to only specify the required, non @Transient columns from the CDT. An alternate workaround is to use a Query Rule which which is currently able to handle @Transient annotated fields correctly. 

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: September 2017