InvoiceGlass

Extra UBL field “Document type code / Contract reference” · UBL-CR-098

  • Severity · Warning
  • Applies to · UBL
  • Editorial review pending

The CEN check flags the XML element cbc:DocumentTypeCode in UBL invoices and credit notes. It checks for document type code under “contract reference”.

As of

Who can correct it?

The invoicing software provider can correct the export.

How to fix it

  1. Find the entry in the UBL export at cac:ContractDocumentReference/cbc:DocumentTypeCode.
  2. Adjust the export to omit cbc:DocumentTypeCode at this location. If you need the information, first check where the selected profile expects it.

Rule text and source

Paraphrase · The test reports a finding as soon as cac:ContractDocumentReference/cbc:DocumentTypeCode returns at least one match.

Message to the sender

Hello,

rule UBL-CR-098 was triggered when checking electronic invoice {invoiceNumber}. The validator flagged document type code under “contract reference”. Could you check the export and send us a corrected file?

Kind regards

Example

The rule flags cbc:DocumentTypeCode under “contract reference”. The corrected export omits that element from the affected section.

UBL

cac:ContractDocumentReference/cbc:DocumentTypeCode

Fails the rule
<cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>

Corrected
<!-- optional element omitted -->

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file