pain.001 Validator

RfrdDocInf/Tp/CdOrPrtry/Cd must be a valid document type code (DocumentType5Code).

Why pain.001 files fail rule PAIN001-REM-002 (ERROR) and how to fix it: RfrdDocInf/Tp/CdOrPrtry/Cd must be a valid document type code (DocumentType5Code).

What this rule checks

RfrdDocInf/Tp/CdOrPrtry/Cd must be a valid document type code (DocumentType5Code).

Affected element: CdtTrfTxInf/RmtInf/Strd/RfrdDocInf/Tp/Cd.

Applies to pain.001.001.03. Severity: ERROR.

Why your file is rejected

Banks validate this rule server-side after the XSD schema check. When it fails, the whole file is typically rejected — even if every other transaction is correct — so a single violation blocks the entire batch.

How to fix it

Review CdtTrfTxInf/RmtInf/Strd/RfrdDocInf/Tp/Cd against the rule constraint and correct the value where it is violated.

Verify before you send

Upload your pain.001 file to the validator below to confirm this rule — and every other business rule and XSD constraint — passes before your bank sees it.

RfrdDocInf/Tp/CdOrPrtry/Cd must be a valid document type code (DocumentType5Code). — pain.001 PAIN001-REM-002 — Ifriqa