Tax Letters Independent · not HMRC , home Check your letter
Menu

App coming soon

5001Unrecognised namespace in an RTI submission

In short

In HMRC's RTI validation rules, message code 5001 means the namespace must match the schema being used, and its error message is: Your submission contains an unrecognised namespace.

Source

“message code: 5001 … The namespace must match the schema being used … Your submission contains an unrecognised namespace.”

On this page

Where HMRC lists it

The rule behind error 5001 sits on the IRenvelope namespace, which the rules say should include the namespace specific to the message being submitted.

Source

“IRenvelope/@xmlns … Should include the namespace specific to the message being submitted.”

Related codes and rules

For error 5001, the rules add that only the target namespace is required within this element, and that superfluous namespaces should not be included.

Source

“Note that only the target namespace is required within this element. You should not include superfluous namespaces here.”

On the schema in error 5001's rule: HMRC's page 'Real Time Information internet submissions: 2026 to 2027 technical specifications' includes a list of changes between 2025 to 2026 and 2026 to 2027.

Source

“Real Time Information internet submissions: 2026 to 2027 technical specifications … Changes between 2025 to 2026 and 2026 to 2027 RIM v1.0”

Where to check

If error 5001 comes up in payroll software you have bought, GOV.UK says HMRC cannot recommend one software product or service over another and is not responsible for any problems you have with software that you've bought.

Source

“HMRC cannot recommend one software product or service over another and is not responsible for any problems you have with software that you’ve bought.”

HMRC help for online services

GOV.UK's employers' helpline page does not list codes such as error 5001; it says to call HMRC to get help if you're an employer, on 0300 200 3200, and lists an online check of whether you can fix your problems with running payroll.

Source

“Check if you can fix your problems with running payroll … Call HMRC to get help if you’re an employer. … Telephone: 0300 200 3200”

Free help first

These routes are described by GOV.UK, TaxAid and Citizens Advice themselves.