Skip to main content
Portugal SAF-T (PT) File Checks

Portugal SAF-T (PT) File Checks errors: when each message appears and what to do

The messages in Portugal SAF-T (PT) File Checks nearly always say what went wrong and, often, the next step: generate before validating, fix the period dates or check the NIF and the email. Below is a selection of them word for word in English (if your Odoo is in another language, you will see them translated on screen), when each one appears according to its own text and what to do, without assuming anything the message does not say.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 14 November 2026

Key facts

Versions
Odoo 17, 18, 19 and 20
Checked
in the module's source code, version 20.0 · against the sources linked at the end
Reading time
4 min

How to read a Portugal SAF-T (PT) File Checks message

Every message carries a text, and many carry %s. That gap is where the module inserts the specific data: the failure detail or the value you have saved. When you see a colon followed by some text, that part tells you what happened in your case.

In the table below the messages appear exactly as the module writes them, with %s in place. On your screen you will see the real data instead of those placeholders.

Error table: message, when it appears and what to do

MessageWhen it appearsWhat to do
No SAF-T file generated. Run generation first.There is no SAF-T file generated yet.Generate the file first, as the message asks.
SAF-T file must be an XML fileThe SAF-T file is not an XML file.Use an XML file.
Period start must be before period endThe period start is not before the period end.Fix the dates so the start comes before the end.
XML export failed: %sExporting to XML fails.Read the detail after the colon.
CSV export failed: %sExporting to CSV fails.Read the detail after the colon.
Annual statistics generation failed: %sGenerating annual statistics fails.Read the detail after the colon.
NIF must be exactly 9 digits. Current value: %sThe NIF does not have exactly 9 digits.The message shows the current value: leave it with exactly 9 digits.
No submissions found for this companyThere are no deliveries recorded for that company.Check it is the company you meant to look at.
No email configured for companyThe company has no email configured.Configure the company email.
Email test failed: %sThe email test fails.Read the detail after the colon.
Several contacts match "%s": enter the email or the tax ID of the data subject.Several contacts match what you entered.Enter the email or the tax ID of the data subject.
DSAR processing failed: %sDSAR processing fails.Read the detail after the colon.

NIF and email: the data messages

One group of messages concerns data you fill in yourself. The NIF one is the most direct: it asks for exactly 9 digits and shows what is saved (Current value: %s), so you can see at a glance what is extra or missing.

As for email, No email configured for company means the company has no email, and Email test failed: %s appears when the email test does not go through, with the detail at the end.

SAF-T Error Logs list with five records and columns for date, error type, severity, message and resolved
Invoicing › SAF-T Error Logs: five records with date, type, severity and message, and the resolved flag unticked.

Generate and validate: the order the messages set

Some messages tell you which order to work in. No SAF-T file generated. Run generation first. makes it clear that the SAF-T file has to be generated first. And Period start must be before period end requires the period start to come before its end.

If the problem is the file itself, look at SAF-T file must be an XML file and at the export messages (XML export failed: %s, CSV export failed: %s), which carry the detail at the end. For the settings and states each record goes through, see setting up the module, and for menus and scheduled tasks, how it works under the bonnet.

Generate SAF-T Files list with six records showing company, period and state
Invoicing › SAF-T Accounting › Generate SAF-T Files: six records in Draft, Generated, Validated, Validation Failed and Submitted, with file size and transactions at zero.
Walkthrough of the SAF-T annual statistics, SAF-T Error Logs and Generate SAF-T Files lists
From the annual statistics (company, year, total documents, total value and state Draft or Exported) to the error log list and the list of generated SAF-T files.

How FlexigoTech can help

If a message leaves you stuck or you want your configuration reviewed before generating the first file, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds bespoke connectors and integrations. The module costs €9 per Odoo version on Odoo Apps, excluding VAT, for 17, 18, 19 and 20 (Odoo Apps listing); the FlexigoTech Cloud local service is €29/month or €290/year excluding VAT. The subscription comes with a free trial, no card required. You will find all the details on the module page.

Keep reading

How Portugal SAF-T (PT) File Checks works in Odoo, from the insideThe menus Portugal SAF-T (PT) File Checks adds to Invoicing, the models behind them, the states you see in its lists and which part uses an external service.Setting up Portugal SAF-T (PT) File Checks in Odoo, told through a worked caseSetting up Portugal SAF-T (PT) File Checks in Odoo with an invented case: SAF-T settings, key fields, states and what to check in the first week.

More related guides

VeriFactu error 4112: the certificate you connect with cannot submit those invoicesVeriFactu error 2001: your customer's tax ID is not in the AEAT censusDutch Informatieplicht errors in Odoo: when each message appears and what to doVeriFactu errors in Odoo: how to read what the AEAT says and what your own system stops firstVeriFactu technical errors: when the problem is in the AEAT systemsVeriFactu error 2004: your record's timestamp is ahead of the AEAT clockWhistleblower Channel errors in Odoo: when each message appears and what to doEPR & PPWR Compliance errors in Odoo: when each message appears and what to doDunning and RMA Recovery errors in Odoo: when each message appears and what to do
Checked in the module's source code (version 20.0) and the linked sources

Sources