All rules · tdd-ae · error

ibr-tdd-08

The reporter's role (tdt-010) must be 01 or 02.

Draft — not yet reviewed

Why this rule exists

The role is a two-digit code. The authority uses it to tell which side of the transaction is reporting.

Why it usually happens

How to fix it

Store and emit the role as a two-character string.

Wrong
<pxs:ReporterRole>1</pxs:ReporterRole>
Right
<pxs:ReporterRole>01</pxs:ReporterRole>

The official rule

The Reporters role (tdt-010) () MUST be coded according to the code list

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

Schematron test

not(contains($rr, ' ')) and contains($cl_rr, concat(' ', $rr, ' '))

Applied to nodes matching /pxs:TaxData

Rule-pack versions

Rule-packLayerSeverityApplies to
tdd-ae-1.0.4tdd-aeerrortax-reporting/taxdata
tdd-ae-1.0.3tdd-aeerrortax-reporting/taxdata

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