XV-FI-10

The IBAN '…' is not valid: its check digits do not match, or a Finnish IBAN is not 18 characters (Finvoice 3.0 guidelines, 13).

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
/Finvoice/EpiDetails/EpiPartyDetails/EpiBeneficiaryPartyDetails/EpiAccountID[@IdentificationSchemeName = 'IBAN']
Test
matches($iban, '^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$') and fi:iso7064($iban) and (not(starts-with($iban, 'FI')) or string-length($iban) = 18)

Checked with Finvoice 3.0