warningEN 16931syntax binding ruleUBL
A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme TaxTypeCode
The element 'AccountingCustomerParty Party PartyTaxScheme TaxScheme TaxTypeCode' is present, but it carries no meaning in the EN 16931 semantic model, so a receiver is free to ignore or reject it.
Remove 'AccountingCustomerParty Party PartyTaxScheme TaxScheme TaxTypeCode' from the document. Look for cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:TaxTypeCode — that is the exact location. Nothing in EN 16931 maps to it - it is almost always left over from a generic UBL template. Reported as a warning.
UBL — context /ubl:Invoice | /cn:CreditNote
not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:TaxTypeCode)
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.