All rules · tdd-ae · error

ibr-tdd-22

The reported document (tdg-02) is missing. It may only be left out when the TDD type code is F (failed transmission).

Draft — not yet reviewed

Why this rule exists

The reported document is the summary the authority actually records. A report of a sent invoice without it carries nothing to record.

Why it usually happens

How to fix it

Include pxs:ReportedDocument for every type code except F. For a failed transmission, set the header type code to F.

The official rule

The REPORTED DOCUMENT (tdg-02) MUST be present, except when the Tax Data Document type code (tdt-006) is 'F' (Failed transmission)

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

exists(pxs:ReportedDocument) or $isFailedTransmission

Applied to nodes matching /pxs:TaxData/pxs:ReportedTransaction

Rule-pack versions

This rule changed between versions. If your invoices passed under an older pack and now fail, this is why.
Rule-packLayerSeverityApplies to
tdd-ae-1.0.4tdd-aeerrortax-reporting/taxdata
tdd-ae-1.0.3tdd-aeerrortax-reporting/taxdata

Related rules

ibr-tdd-06 · ibr-tdd-23

Check your own invoice

Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.

Open the validator