FatturaPA (Italy / SdI)
00300
IdFiscaleIVA del CedentePrestatore non valido
What it means
The supplier's VAT identifier (CedentePrestatore/DatiAnagrafici/IdFiscaleIVA) is not well-formed. For an Italian supplier IdPaese must be 'IT' and IdCodice must be exactly 11 digits.
How to fix it
Set IdPaese to a valid ISO 3166-1 alpha-2 country code; for IT, make IdCodice the 11-digit partita IVA (no spaces, no 'IT' prefix inside IdCodice).
Example
<IdFiscaleIVA><IdPaese>IT</IdPaese><IdCodice>01234567890</IdCodice></IdFiscaleIVA>
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 }}