XV-IT-02

The rule sets below word this rule differently; each wording is shown with its rule set.

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.

Message

The seller's partita IVA 1.2.1.1.2 <IdCodice> is not eleven digits with a valid check digit; the SdI rejects it with 00301.

Context
/p:FatturaElettronica/FatturaElettronicaHeader/CedentePrestatore/DatiAnagrafici/IdFiscaleIVA[IdPaese = 'IT']
Test
it:piva(IdCodice)

Checked with FatturaPA 1.2.3

Message

The seller's partita IVA 1.2.1.2 <IdCodice> is not eleven digits with a valid check digit; the SdI rejects it with 00301.

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CedentePrestatore/IdFiscaleIVA[IdPaese = 'IT']
Test
it:piva(IdCodice)

Checked with FatturaPA simplified 1.0.2