Provide the seller city

Error BR-DE-3 XRechnung

The element "Seller city" (BT-37) 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 seller's postal address is missing a non-empty value in ram:CityName.

What the rule means

The city is a required part of the seller's postal address.

Affected fields BT-37
Please provide the seller's city

The seller's postal address is missing the city, or the field is empty. You can resolve this by adding the city to the address.

What to do
  1. Add the city using Party.City.
  2. Generate the invoice again and validate it again.
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 (SellerTradeParty: BT-37)
Technical details

The test requires ram:CityName to contain text that is non-empty after leading and trailing whitespace is removed.

Where the rule applies

The rule applies to the seller's ram:PostalTradeAddress.

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