fatalEN 16931syntax binding ruleUBL
Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller
An element that EN 16931 allows at most once appears more than once: Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller
Keep the single correct occurrence and delete the rest. If you genuinely have several values, they belong in a repeatable group, not in repeated elements.
UBL — context cac:PayeeParty
(count(cac:PartyLegalEntity/cbc:CompanyID) <= 1) and ((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))