E-invoice rule XRechnung 3.x
BR-TMP-2: The external document location has to be a full
The external document location (BT-124, cbc:URI) has to be a full address including the scheme, for example https://example.com/attachment.pdf.
Original wording of the rule
[BR-TMP-2] BT-124 "External document location" muss eine absolute URL mit gültigem Schema enthalten.
Source of the quotation: XRechnung 3.x (itplr-kosit/xrechnung-schematron, Apache 2.0 licence)
How to fix it
- Open the XML file and find the element
cbc:URI. - Add or correct the element the way the wording of the rule above asks for.
- Save the file and check it again with our checker. It runs in your browser, the file is never uploaded.
A correct UBL 2.1 snippet
<cbc:URI
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">https://example.org/cennik</cbc:URI>
The snippet is only the part of the document the rule is about. Put it in the right place inside your invoice; the namespaces are written here only so that the snippet reads on its own.
When it is reported
Profile: XRechnung 3.x
How we rate it: error
UBL elements: cbc:URI
Where we point in the file: /Invoice/cac:AdditionalDocumentReference[2]/cac:Attachment/cac:ExternalReference/cbc:URI
Related rules
- BR-DEX-07 In the XRechnung extension, the schemeID of the electronic address
- BR-DEX-08 In the XRechnung extension, schemeID=
- BR-TMP-6 The date in cbc:IssueDate has to be written as YYYY-MM-DD, with no time
Our check is not complete: we do not check the XSD schema and we do not implement every rule, and a file that passes says nothing about whether the buyer or the Peppol network will accept it. Licences for the quoted wordings are listed in our sources.