warningEN 16931syntax binding ruleCII
Only one buyer identifier should be present (either the ID or the Global ID)
The buyer identifier (BT-46) is given twice over: once as a plain identifier and once as a scheme identifier (GlobalID). These are two ways of writing the same thing, so only one may appear — a receiver reading both has no way to know which one is authoritative if they disagree.
Keep whichever you can stand behind and delete the other. Use the scheme identifier (GlobalID) when the value comes from a registered scheme such as GLN or DUNS, and give its scheme code in the schemeID attribute; use the plain ID when it is your own internal reference.
CII — context /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement
(not(ram:BuyerTradeParty/ram:ID) and ram:BuyerTradeParty/ram:GlobalID) or (ram:BuyerTradeParty/ram:ID and not(ram:BuyerTradeParty/ram:GlobalID)) or (not(ram:BuyerTradeParty/ram:ID) and not(ram:BuyerTradeParty/ram:GlobalID))
Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.