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 top level of 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: [TopCDT (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 from the application server log error and save the those CDTs. For exmaple, Remove "BottomCDT" in "MiddleCDT" and save "MiddleCDT".
  2. Save the CDT that originally failed to save. For example, save the "TopCDT".
  3. Add back the removed fields and save the CDTs. For example, 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