Skip to main content
Portugal e-Invoice Files: CIUS-PT XML, ATCUD and QR

Portugal e-Invoice Files error messages in Odoo: when they appear and what to do

The warnings in Portugal e-Invoice Files fall into four groups: issued invoices and series, SAF-T, the audit trail and data subject requests (DSAR). Almost all of them say in their own text what is missing or which route to take: correct via a credit or debit note, only issue drafts, type the AT validation code in the series, or archive before deleting. Here is each literal message, when it appears according to its text and what you can do.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 4 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
5 min

Issued invoices, series and SAF-T

Why can't I change or delete an invoice that has been issued?

The module blocks it with three messages: Invoice immutable; correct via credit/debit note, Invoice immutable; cannot modify {illegal_fields} and Cannot delete issued invoice; use credit/debit note for corrections. All three say the same thing: an issued invoice cannot be edited or deleted. If something needs correcting, the message itself gives you the route: a credit note or a debit note. In the second message, {illegal_fields} is the variable part of the text exactly as it is written in the module's code.

What does Only draft invoices can be issued mean?

This warning comes in two forms, Only draft invoices can be issued and Only draft invoices can be issued, and the text is direct: only draft invoices can be issued. If you see it, check the state of the invoice you are working on before trying again.

What do I do with the warnings about invoice series?

The one you will see most is The series %s has no AT validation code yet: type the code the AT gave for it in e-Fatura > Series.: the series named in the message does not have the validation code the AT gives yet. Type it in the series. If the code you typed does not have the form the AT asks for, you get The AT validation code has 8 or more letters and digits (Portaria 195/2020, art. 3.º n.º 1): %s, followed by the code you typed; correct it.

Series live in the Invoicing › e-Fatura › Configuration › Invoice Series list, with columns such as Company, Series Code, AT Validation Code and Active.

Invoice Series list in Odoo Invoicing with Company, Series Code, AT Validation Code and Active columns
The Invoice Series list, with no records yet: this is where the series code and the AT validation code are shown.

The module also adds the list for the eif.payment.terms model, with the columns Invoice, Payment Terms, Due Date, Early Payment and Discount.

List for the eif.payment.terms model with Invoice, Payment Terms, Due Date, Early Payment and Discount columns
The eif.payment.terms list, with no records yet.

Does it generate and send the SAF-T?

It generates it but does not send it. In Invoicing › e-Fatura › Reports › SAF-T Filings, the Generate SAF-T button creates the month's SAF-T (PT) file and, if the server has the Python package xmlschema, checks it against the AT's XSD 1.04_01; Download downloads it. You upload the file to the AT's e-Fatura portal yourself, and with Record portal upload you record the receipt the portal gives you. If you confirm it without a SAF-T filing selected, you get Select a SAF-T filing first.

The audit trail

What do the audit trail warnings mean?

There are three. Audit trail is immutable and cannot be modified and Audit trail is immutable and cannot be deleted say that audit records cannot be changed or deleted. The third, Audit trail tampering detected!, means the module has detected tampering with the trail. If it appears, do not try to rebuild the record by hand (the other two messages already say you cannot) and go through the Audit Trail list with whoever administers your Odoo.

Audit Trail list in Odoo Invoicing with Invoice, Timestamp (UTC), User, Action Type and Hash Signature columns
The Audit Trail list, with no records yet: invoice, UTC timestamp, user, action type and hash signature.

Data subject requests (DSAR)

Why does it ask me to verify, assess or respond first?

Data requests have steps and the module warns you when one is missing: DSAR must be verified first (it has not been verified), DSAR must be assessed first (it has not been assessed; this one appears in two places in the code) and DSAR must be responded first (it has not been responded to). If you try to verify one that already is, you get DSAR already verified. Carry out the step the message names and try again.

What do I do with Customer not found?

The full message is Customer not found for {record.identifier_type}={record.identifier_value}. The module cannot find a customer with the identifier type and value on the request. Check those two details on the request.

Why does the response come back as Not delivered?

There are two cases. Not delivered: this module only delivers the response by email and this request has no email address. Send the response to the data subject yourself. The module only delivers the response by email and the request has no email address, so you need to send the response to the data subject yourself. The other is Not delivered: the email to %(email)s could not be sent (%(reason)s)., which says the email could not be sent and includes the address and the reason; start with that reason.

Why can't I delete a request?

Because of Cannot delete active DSAR request; must be archived first: an active request cannot be deleted. Archive it first.

Sequence of Invoicing lists: Data Subject Requests, Electronic Invoices, eif.payment.terms and Audit Trail
The Data Subject Requests list with one test request in the Pending state, followed by the Electronic Invoices list (with columns such as ATCUD, SAF-T Filing Status and State), eif.payment.terms and Audit Trail, with no records.

How FlexigoTech can help

If you want to understand which menus the module adds before tackling the warnings, we cover it in how Portugal e-Invoice Files works under the bonnet. The module is on Odoo Apps for Odoo 17, 18, 19 and 20 at €9 per Odoo version, excluding VAT. If you buy it on flexigotech.com with the subscription, the module for new Odoo versions is included; on the Odoo App Store, each version is bought there. The subscription comes with a free trial, no card required. FlexigoTech also implements Odoo 17, 18, 19 and 20 and builds bespoke connectors and integrations, in case you need something the module does not cover yet.

Keep reading

How Portugal e-Invoice Files works in Odoo: menus, models and wizardsGlossary of Portugal e-Invoice Files in Odoo: the Invoicing › e-Fatura menu, its sections, the eif models and the AT, annulment and SAF-T wizards.How Peru SUNAT SIRE RVIE/RCE Reconciliation works inside OdooThe menus Peru SUNAT SIRE RVIE/RCE Reconciliation adds to Odoo, the scheduled actions it runs and the models the module defines, as Q&A.Peru SUNAT SIRE RVIE/RCE Reconciliation errors: what the listing doesn't tell youThe error messages in Peru SUNAT SIRE RVIE/RCE Reconciliation for Odoo, with their exact wording: what each one says and what to check before trying again.

More related guides

How Portugal SAF-T (PT) File Checks works in Odoo, from the insideFlexigo Hospitality Properties and Rooms error messages: what they mean and what to doShopify Connector errors in Odoo: what each message means and what to doLegal Tech AI Copilot error messages in Odoo: what they mean and what to doWhat the Generate Erasure Refusal (art.17) button in VeriFactu España doesAdvanced Shipping Carrier Integration errors in Odoo: what they mean and what to doEU CBAM Compliance Manager errors and warnings in Odoo: what they say and what to doUSA Digital Services Tax Compliance errors in Odoo: what each message means and what to do
Checked in the module's source code (version 20.0) and the linked sources

Sources