SDI-00445

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

error: the document is invalid

Why it fails

  • The invoicing software still writes the codes in use before 2021.

How to fix it

Replace N2 with N2.1 or N2.2, N3 with N3.1 to N3.6 and N6 with N6.1 to N6.9, as the transaction requires, on the lines and in the summaries.

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

Non è più ammesso il valore generico N2, N3 o N6 come codice natura dell'operazione

Context
/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee
Test
not(Natura = ('N2', 'N3', 'N6'))

Checked with FatturaPA 1.2.3

Message

Non è più ammesso il valore generico N2, N3 o N6 come codice natura dell'operazione

Context
/p:FatturaElettronica/FatturaElettronicaBody/DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale
Test
not(Natura = ('N2', 'N3', 'N6'))

Checked with FatturaPA 1.2.3

Message

Non è più ammesso il valore generico N2, N3 o N6 come codice natura dell'operazione

Context
/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DatiRiepilogo
Test
not(Natura = ('N2', 'N3', 'N6'))

Checked with FatturaPA 1.2.3

Message

Non è più ammesso il valore generico N2 o N3 come codice natura dell'operazione

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody/DatiBeniServizi
Test
not(Natura = ('N2', 'N3'))

Checked with FatturaPA simplified 1.0.2