What's covered in this guide?:
Step-by-Step: Troubleshoot XML Errors in FPS Submissions
When submitting a Full Payment Submission (FPS) to HMRC, errors can occur if the XML structure or data doesn’t meet required standards. HMRC returns a response file containing detailed messages to help pinpoint and fix these issues.
Download the XML Response
To download the XML response:
Go to Payroll > RTI > FPS
Click ‘View Details’ next to the submission showing errors
Click ‘Response XML’ to download the error response file.
1. Identify the Error <Location>
To quickly find the error location in the XML:
Press Cmd + F (Mac) or Ctrl + F (Windows)
Search for <Location> in the XML file
Example:
This means the issue lies in the <TaxCode>
element within the <Payment>
section of the first employee in the submission (fps:Employee[1]
).
Another Example:
This refers to the <AORef>
element, which is your HMRC Accounts Office Reference. The Accounts Office Reference you entered doesn't follow HMRC’s required format. It should look something like 123PA00012345
— all uppercase, no spaces or special characters.
You can find and update this in Payroll > Payroll Settings > Company Setup.
2. Identify the Employee in the Request XML
To cross-check this in the original submission, download the Request XML:
To locate the employee referenced in the error:
Download the Request XML file.
Press Cmd + F (Mac) or Ctrl + F (Windows).
Search for
<Employee>
.If the
<Location>
tag in the Response XML error saysfps:Employee[1]
, this means the first<Employee>
element in the file is the one related to the error.So if it’s
fps:Employee[1]
, go to the first<Employee>
result.
If it’s
fps:Employee[3]
, go to the third<Employee>
element, and so on:
Important: If the <Location>
tag refers to fps:Employee[1]
, the first <Employee>
element you find in the file is the one related to the error.
This allows you to match the XML structure directly to the employee’s record and confirm which data field needs updating.
3. Understand the Error Message in the <Text> Field
In the Response XML file which displays all FPS errors, there will be a <Text>
field above each <Location>
tag that describes what went wrong:
Common error types:
Missing or Empty Value:
<Text>Value '' doesn't have the correct format</Text>
This means the field is empty or not formatted correctly (e.g., missing a tax code).
Incorrect Format:
<Text>Element 'TaxCode' must only have valid text as its content</Text>
This indicates the value provided is invalid (e.g., incorrect characters or format).
Missing or Empty Value:
<Text>Invalid content found at element 'NINO' </Text>
This means that the National Insurance Number is invalid or has incorrect format.
4. Fix the Error
If the Value Is Missing or Empty:
Ensure that the affected field (like TaxCode
) is filled in correctly.
Correct:
1257L
Incorrect: blank,
!!!
,null
If no value is required, remove the element or use a default where appropriate.
If the Format Is Incorrect:
Check that the value matches the expected format. Avoid invalid characters, empty spaces, or incorrect codes.
5. Validate and Resubmit the XML
After correcting the error:
Review the XML structure to ensure all errors have been addressed.
Re-submit the corrected FPS file to HMRC via the + Submit New FPS Request button in Payroll > RTI > FPS.
Need Help?
If you need assistance troubleshooting XML errors in FPS:
Contact the Support Team support@workforce.com