FX-SCH-A-000170

Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery
Test
(ram:ShipToTradeParty/ram:PostalTradeAddress and ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID!='') or not (ram:ShipToTradeParty/ram:PostalTradeAddress)

Checked with Factur-X / ZUGFeRD BASIC