# How to resolve error generated by XBRL Company Accounts Validator

**URL:** <http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646>\
**Category:** Uncategorized\
**Created:** [December 20, 2021, 9:24am UTC](http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646 "2021-12-20T09:24:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![todmant](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@todmant](http://forum.companieshouse.gov.uk/u/todmant)\
**Post date:** [December 20, 2021, 9:24am UTC](http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646/1 "2021-12-20T09:24:11Z")

</div>

Have run a html file though the Companies House validation tool prior to submission and it has returned the following error.  
Bad Request XML  
Bad Request line 1263: not well-formed (invalid toaken)  
Ref: txid  
Error Code 1

I am trying to find what needs to be corrected within the file for it to pass validation.  
The contact centre say they are not able to help

Looking at the file in notepad - the file finishes on line 1257 and line 1263 does not exist.  
I also tried with a completely different file and got the same result (error on a line 6 lines after the last line of the file)  
Can anyone help please?  
Thanks

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [December 20, 2021, 9:52am UTC](http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646/2 "2021-12-20T09:52:33Z")

</div>

This forum is for the CompaniesHouse API service. The XML forum can be found [http://xmlforum.aws.chdev.org/](http://xmlforum.aws.chdev.org/)  
I have passed your details to our XML customer support manager.

---

<div class="post-metadata">

**Author:** ![todmant](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@todmant](http://forum.companieshouse.gov.uk/u/todmant)\
**Post date:** [December 20, 2021, 10:04am UTC](http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646/3 "2021-12-20T10:04:36Z")

</div>

Thank you and apologies.  
It was the contact centre who gave me the details of this forum as they said they had no phone support for the problem (despite the error page giving the contact centre phone number to ring for help!)

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [December 20, 2021, 11:43am UTC](http://forum.companieshouse.gov.uk/t/how-to-resolve-error-generated-by-xbrl-company-accounts-validator/4646/4 "2021-12-20T11:43:30Z")

</div>

No a problem.  
I have contacted customer care for XML and they have asked if you could please post your query to that forum.  
Thank you so much.
