# Authentication issues

**URL:** <https://xmlforum.companieshouse.gov.uk/t/authentication-issues/619>\
**Category:** Uncategorized\
**Created:** [March 2, 2021, 8:18am UTC](https://xmlforum.companieshouse.gov.uk/t/authentication-issues/619 "2021-03-02T08:18:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adel](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@adel](https://xmlforum.companieshouse.gov.uk/u/adel)\
**Post date:** [March 2, 2021, 8:18am UTC](https://xmlforum.companieshouse.gov.uk/t/authentication-issues/619/1 "2021-03-02T08:18:02Z")

</div>

Hello.

I’m developing an application for the first time using the XML Gateway and i have some issue with the authentication. I’ve searched the forum, but i couldn’t find any references to this.

I do a simple CompanyDataRequest, i’m posting the SenderID and Authentication accordingly to the documentation and some posts I’ve read here, but i’m getting the following errors:

- in test mode 502 - Invalid testmode selected. You must use a test efiling presenter account and set the test mode.
- in live mode 9999 - Authentication code expired

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![snicholas](https://xmlforum.companieshouse.gov.uk/user_avatar/xmlforum.companieshouse.gov.uk/snicholas/32/81_2.png) [@snicholas](https://xmlforum.companieshouse.gov.uk/u/snicholas)\
**Post date:** [March 2, 2021, 11:25am UTC](https://xmlforum.companieshouse.gov.uk/t/authentication-issues/619/2 "2021-03-02T11:25:12Z")

</div>

Can you send your full XML request data to [snicholas@companieshouse.gov.uk](mailto:snicholas@companieshouse.gov.uk) please.

SDN
