Document Recognition Errors
![*](bullet.gif)
To determine the document type to use for an XML document,
Trading Networks looks at all enabled XML document types. To determine the document type to use for a flat file document,
Trading Networks looks at all enabled flat file document types. Each document that passes through your system should match exactly one document type. If a document does not match any document type, or matches more than one document type,
Trading Networks considers it an
unknown document type. When
Trading Networks encounters an unknown document type, it:
![*](bullet.gif)
Cannot extract any attribute information from the document, since document types identify the attribute information to extract.
![*](bullet.gif)
Tries to process the document using a processing rule that acts on unknown document types, if you define one.
![*](bullet.gif)
For documents that match more than one document type,
Trading Networks logs a message that identifies those document types to the
Trading Networks activity log.
Trading Networks flags the following during document recognition:
![*](bullet.gif)
A sender or receiver error if the external ID of the sender or receiver in the document does not match the value of the external ID in any partner profile.
![*](bullet.gif)
An attribute error if
Trading Networks cannot extract an attribute that is marked as required in the document type.
![*](bullet.gif)
For an XML document, a sender or receiver error if the XQL query in the document type cannot find the SenderID or ReceiverID system attribute in the document.
![*](bullet.gif)
For an XML document, a general error if an XQL query in the document type fails. For example, a general error occurs when the document is identified as an XML document but contains invalid XML or is actually another format, such as plain text or EDI.