Skip to main content

The schema check before sending

BlueShell checks every electronic invoice against the official FatturaPA 1.2.3 schema before exporting or sending it: what the error message means and how to fix the document.

Before downloading, viewing or sending an electronic invoice, BlueShell checks the XML against the official FatturaPA schema version 1.2.3 (ordinary invoices and invoices to public administration). This way you catch in advance the errors the SdI would reject.

What you see if something is wrong

A red message when you download, view or send the document:

“The electronic invoice XML of … does not match the schema the SdI requires, so it was not exported: …”

followed by at most three reasons, for example:

  • “…: the value … is not one this field can carry (unsupported characters, or too long).”

  • “…: a required part of the document is missing or out of place.”

On the invoice page, in the sending panel (Aruba or Agyo), the same problem appears for as long as the document is waiting to be sent, with the Go and fix it button.

How to fix it

The message names the XML field that is wrong. The most common causes:

Cause

Example

What to do

a character that is not allowed

a symbol the schema does not accept

rewrite the text in the description or in the customer record

a text that is too long

a description or a name over the limit

shorten it

too many decimals

a price with many digits after the decimal point

round it

a required piece of data is missing

a customer's address or VAT number

complete the customer record

Fix it and try again: the check runs every time.

Good to know

  • The check covers the structure of the document; the SdI's business rules (the rejections with code 004xx) are not verified.

  • Saving the invoice is not blocked: export and sending are.

  • Received invoices are checked too when you import them (against versions 1.2.3, 1.2.2, 1.2.1 and 1.2, and against the simplified invoice schema).

  • The code lists are aligned with the official schema: for example the regime RF20 (cross-border VAT exemption regime) and the document type TD29 are available.


Did this answer your question?