# SDI-00445

Source: https://xmlvalid.com/rules/SDI-00445

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

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee`
- Test: `not(Natura = ('N2', 'N3', 'N6'))`

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

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaBody/DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale`
- Test: `not(Natura = ('N2', 'N3', 'N6'))`

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

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DatiRiepilogo`
- Test: `not(Natura = ('N2', 'N3', 'N6'))`

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

- Level: error
- Rule sets: SdI checks (FatturaPA simplified invoice) Specifiche tecniche 1.9.1
- Context: `/s:FatturaElettronicaSemplificata/FatturaElettronicaBody/DatiBeniServizi`
- Test: `not(Natura = ('N2', 'N3'))`

In English: The general Natura codes N2, N3 and N6 (N2 and N3 in a simplified invoice) are no longer allowed since 1 January 2021: use a detailed code.

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

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