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.”
HMRC: Real Time Information (RTI) Non-form validation rules, version 1.2 (on GOV.UK) · checked 27 October 2026
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.”
HMRC: Real Time Information (RTI) Non-form validation rules, version 1.2 (on GOV.UK) · checked 27 October 2026
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.”
HMRC: Real Time Information (RTI) Non-form validation rules, version 1.2 (on GOV.UK) · checked 27 October 2026
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”
GOV.UK: Real Time Information internet submissions: 2026 to 2027 technical specifications · checked 27 October 2026
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.”
GOV.UK: Find payroll software · checked 27 October 2026
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”
GOV.UK: Employers: general enquiries · checked 27 October 2026
Free help first
These routes are described by GOV.UK, TaxAid and Citizens Advice themselves.
- HMRC's extra supportHMRC offers extra support if your health condition or personal circumstances make it difficult to contact HMRC, for example a mental health condition, financial hardship or being treated in hospital.
- Someone to deal with HMRC for youYou can authorise a friend, relative or voluntary organisation to talk to HMRC for you and help you fill in forms.
- TaxAidTaxAid helps people with tax problems who cannot pay for advice. Tax Help for Older People merged with TaxAid in July 2025.
- Citizens AdviceCitizens Advice gives confidential advice online, over the phone and in person, for free.
- HMRC: Real Time Information (RTI) Non-form validation rules, version 1.2 (on GOV.UK) (checked 27 Oct 2026)
- GOV.UK: Real Time Information internet submissions: 2026 to 2027 technical specifications (checked 27 Oct 2026)
- GOV.UK: Find payroll software (checked 27 Oct 2026)
- GOV.UK: Employers: general enquiries (checked 27 Oct 2026)
- GOV.UK: Get help from HMRC if you need extra support (checked 7 Oct 2026)
- GOV.UK: Appoint someone to deal with HMRC on your behalf (checked 7 Oct 2026)
- TaxAid: About us (checked 8 Oct 2026)
- Citizens Advice: About us (checked 7 Oct 2026)
Information, not advice: this page reports what HMRC, GOV.UK and the bodies named publish about 5001.
Last reviewed 27 October 2026 · How Tax Letters checks its facts