XV-MY-14

The name of the supplier and of the buyer (cac:PartyLegalEntity/cbc:RegistrationName) is mandatory, up to 300 characters; the …'s is missing or longer.

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.

Context
/*/cac:AccountingSupplierParty/cac:Party | /*/cac:AccountingCustomerParty/cac:Party
Test
normalize-space(cac:PartyLegalEntity/cbc:RegistrationName) ne '' and string-length(normalize-space(cac:PartyLegalEntity/cbc:RegistrationName)) le 300

Checked with MyInvois e-Invoice