Delivery address city is missing

Error BR-DE-10 XRechnung

The element "Deliver to city" (BT-77) shall be transmitted if the group "DELIVER TO ADDRESS" (BG-15) is transmitted.

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

The delivery address (BG-15) does not contain a populated ram:CityName. The delivery city BT-77 is therefore missing.

What the rule means

The delivery city is part of the delivery address. When group BG-15 is provided, the city of the delivery address must also be supplied.

Affected fields BT-77 BG-15
Please provide the delivery address city

No city is entered in the delivery address. Add the missing city so the address is complete.

What to do
  1. Add the city in the delivery address element ram:CityName.
  2. Check the value set through Party.City.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress/>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CityName>Berlin</ram:CityName>
</ram:PostalTradeAddress>
Check in FactoorSharp
  • Party.City (ShipToTradeParty: BT-77)
Technical details

The test requires a ram:CityName within the rule context whose normalized content is not empty.

Where the rule applies

The rule applies to ram:PostalTradeAddress of the delivery party ram:ShipToTradeParty.

Original message from the Schematron
Das Element "Deliver to city" (BT-77) muss übermittelt werden, wenn die Gruppe "DELIVER TO ADDRESS" (BG-15) übermittelt wird.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ShipToTradeParty/ram:PostalTradeAddress
Test expression (assert/@test)
ram:CityName[boolean(normalize-space(.))]