FatturaPA (Italy / SdI)

00417

CessionarioCommittente senza IdFiscaleIVA né CodiceFiscale

What it means

The buyer block must identify the buyer with at least one of IdFiscaleIVA (VAT number) or CodiceFiscale (tax code). SdI rule 00417: both were omitted.

How to fix it

Add the buyer's partita IVA in IdFiscaleIVA (IdPaese + IdCodice) for a business, or the codice fiscale in CodiceFiscale for an individual / entity without VAT. For a foreign buyer without an Italian id, use IdFiscaleIVA with the foreign country code.

Catch this before it reaches the SdI:

# CLI
npx @eleata/validate-einvoice validate invoice.xml --format fatturapa

# GitHub Action — fail the build on any invalid invoice
- uses: hernaninverso/validate-einvoice-action@v1
  with:
    files: invoices/**/*.xml
    api-key: ${{ secrets.EINVOICE_API_KEY }}

Other FatturaPA (Italy / SdI) error codes

All error codes →