All error codes › DE-R-T02
DE-R-T02 – If both supplier and customer are located in Germany, BT-124 "External document…
What the rule says
If both supplier and customer are located in Germany, BT-124 "External document location" must contain an absolute URL with valid scheme.
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
This is a warning, not an error: it does not normally cause a rejection, but it is worth cleaning up.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: (/ubl-invoice:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference | /ubl-creditnote:CreditNote/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference)[$supplierCountryIsDE and $customerCountryIsDE]
Test (XPath):
matches(cbc:URI, $XR-URL-REGEX)