# XV-IT-02

Source: https://xmlvalid.com/rules/XV-IT-02

> 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.

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaHeader/CedentePrestatore/DatiAnagrafici/IdFiscaleIVA[IdPaese = 'IT']`
- Test: `it:piva(IdCodice)`

> 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.

- Level: error
- Rule sets: SdI checks (FatturaPA simplified invoice) Specifiche tecniche 1.9.1
- Context: `/s:FatturaElettronicaSemplificata/FatturaElettronicaHeader/CedentePrestatore/IdFiscaleIVA[IdPaese = 'IT']`
- Test: `it:piva(IdCodice)`

Validate a document against these rules: https://xmlvalid.com/validate
