Rules / IBR-004
IBR-004 error
An Invoice must have an Invoice type code / A Credit note must have a Credit note Type…
An Invoice must have an Invoice type code (ibt-003) / A Credit note must have a Credit note Type code (ibt-003).
Fails when this is false
normalize-space(cbc:InvoiceTypeCode) !='' or normalize-space(cbc:CreditNoteTypeCode) !=''The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.