You are currently reviewing an older revision of this page.

DRAFT SP-4562 CDT fails to save with "The following types cannot be used, because they do not have a definition in the Appian data source" error

Symptoms

Saving the parent of a nested CDT, which also points to a nested CDT,(a double nested CDT), similar to the example below, fails with the following error:

The following types cannot be used, because they do not have a definition in the Appian data source: [BottomCDT (id=<ID>)]

A similar error message is also found in the application server log:

ERROR com.appiancorp.type.config.xsd.EcoreModelPersister - Error detected by Ecore save preview.
java.lang.IllegalArgumentException: The type {urn:com:appian:types}BottomCDT is referenced, but is not defined in the XSD.

Cause

This issue has been reported to the Appian Product Team. The reference number for this issue is AN-128273.

Workaround

  1. Remove any fields referencing the CDT in the error message and save. (EX. Remove "BottomCDT" in "MiddleCDT" and save "MiddleCDT")
  2. Save the CDT that originally failed to save (EX. Save the top level CDT)
  3. Add back the removed fields referencing the not found CDT. (EX. Add back the "BottomCDT" field in "Middle CDT" and save "MiddleCDT").

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: June 2020