KB-1040 "The type [datatype] is referenced, but not defined in the XSD... Type reference [datatype] is unresolved" error thrown when importing a CDT from an XSD
Symptoms
When importing a CDT from an XSD, users come across the following error:
Cause: The type {your:namespace}DATATYPE is referenced, but not defined in the XSD...
XSD Parsing Message: XSD: Type reference '{your:namespace}DATATYPE' is unresolved (APNX-2-4047-000)
Cause
This error occurs because the XSD is missing import or include statements that allow the parent CDT to have the child CDT as a field. Note that import is used for CDTs that are outside the namespace of the parent while include is used for CDTs that are inside the namespace of the parent.
Action
Check the following items to ensure namespace integrity:
- Any
importandincludestatements that are pointing to the correct CDTs to be referenced. xmlnsprefixes must be set to point to the right namespaces.- Prefixes defined in the
xmlnselements must correspond to thetype=element when defining a child CDT field in the parent.
Affected Versions
This article applies to all versions of Appian.
Last Reviewed: February 2017
