InvoiceGlass

Document type code and reference scheme do not match · UBL-SR-43

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

The check accepts document type code 130 on an additional document reference and also accepts 50 on a credit note. In other cases it expects both the document type code and the scheme identifier on the reference to be absent.

As of

Who can correct it?

The invoicing software provider can correct the export.

How to fix it

  1. Check cbc:DocumentTypeCode and cbc:ID/@schemeID together in cac:AdditionalDocumentReference.
  2. Choose the mapping based on what the reference actually identifies. See UBL-CR-665, which expects code 130 for a reference with a scheme identifier.

Rule text and source

Paraphrase · The test accepts cbc:DocumentTypeCode 130, or 50 on a credit note. Otherwise both cbc:DocumentTypeCode and cbc:ID/@schemeID must be absent.

Message to the sender

Hello,

rule UBL-SR-43 was triggered when checking electronic invoice {invoiceNumber}. The validator flagged the document type and scheme combination on an additional document reference. Could you check the export and send us a corrected file?

Kind regards

Example

An ordinary supporting-document reference gives its identifier a schemeID and omits the document type code. The corrected export supplies the identifier without the schemeID.

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file