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
| Message | When it appears | What 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 file | The SAF-T file is not an XML file. | Use an XML file. |
Period start must be before period end | The period start is not before the period end. | Fix the dates so the start comes before the end. |
XML export failed: %s | Exporting to XML fails. | Read the detail after the colon. |
CSV export failed: %s | Exporting to CSV fails. | Read the detail after the colon. |
Annual statistics generation failed: %s | Generating annual statistics fails. | Read the detail after the colon. |
NIF must be exactly 9 digits. Current value: %s | The NIF does not have exactly 9 digits. | The message shows the current value: leave it with exactly 9 digits. |
No submissions found for this company | There are no deliveries recorded for that company. | Check it is the company you meant to look at. |
No email configured for company | The company has no email configured. | Configure the company email. |
Email test failed: %s | The 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: %s | DSAR 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.

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.

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.
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
More related guides
Checked in the module's source code (version 20.0) and the linked sources
Sources
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_annual_statistics.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_config.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_dsar_request.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_exporter.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_submission.py
- apps.odoo.com/apps/modules/20.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/17.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/18.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/19.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- flexigotech.com/en/services.html
- flexigotech.com/precios.html
