Provide the buyer’s city

Error BR-DE-8 XRechnung

The element "Buyer city" (BT-52) shall be transmitted.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The buyer’s postal address is missing ram:CityName, or the element contains no non-empty value. The city information BT-52 is therefore missing.

What the rule means

BT-52 identifies the city in the buyer’s postal address. It is part of the address and locates the buyer for postal purposes.

Affected fields BT-52
Please add the city to the buyer’s address

No city is provided in the buyer’s postal address. Add the city so that the address is provided completely.

What to do
  1. Add the city to the buyer’s postal address.
  2. Check the value for Party.City.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress>
  <ram:CityName/>
</ram:PostalTradeAddress>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CityName>Berlin</ram:CityName>
</ram:PostalTradeAddress>
Check in FactoorSharp
  • Party.City (BuyerTradeParty: BT-52)
Technical details

The test requires a ram:CityName element whose whitespace-normalized content evaluates to true.

Where the rule applies

The buyer’s postal address in ram:PostalTradeAddress.

Original message from the Schematron
Das Element "Buyer city" (BT-52) muss übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerTradeParty/ram:PostalTradeAddress
Test expression (assert/@test)
ram:CityName[boolean(normalize-space(.))]