# Unable to get Dissolved companies in the name search from API

**URL:** <http://forum.companieshouse.gov.uk/t/unable-to-get-dissolved-companies-in-the-name-search-from-api/564>\
**Category:** Information\
**Created:** [April 22, 2016, 9:27am UTC](http://forum.companieshouse.gov.uk/t/unable-to-get-dissolved-companies-in-the-name-search-from-api/564 "2016-04-22T09:27:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_saraswat](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/51bf81/32.png) [@rahul\_saraswat](http://forum.companieshouse.gov.uk/u/rahul_saraswat)\
**Post date:** [April 22, 2016, 9:27am UTC](http://forum.companieshouse.gov.uk/t/unable-to-get-dissolved-companies-in-the-name-search-from-api/564/1 "2016-04-22T09:27:38Z")

</div>

Hi Everyone,

When I search the website of company house([https://beta.companieshouse.gov.uk](https://beta.companieshouse.gov.uk)) for a company which is dissolved, it appears in the search results however when I try to do the same thing using the API it does not give the Dissolved company in the list.

I am using company name search. Please find the below company details for example : TEST 365 LIMITED  
Address : 3 Derby Road, DE5 3EA

This company was dissolved on 5 May 2015 which is less than 12 months. So, it should appear when I pass LIVE in the Data Set however it does not get picked up from the API.

I tried using DISSOLVED in the Data Set as well but no luck.

Please find the below Request xml:

```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:local xmlns:ns2="uri"
    xmlns="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader">
    <EnvelopeVersion>1.0</EnvelopeVersion>
    <Header>
	    <MessageDetails>
		    <Class>NameSearch</Class>
		    <Qualifier>request</Qualifier>
		    <TransactionID>#######</TransactionID>
	    </MessageDetails>
	    <SenderDetails>
		    <IDAuthentication>
			    <SenderID>########</SenderID>
			    <Authentication>
				    <Method>MD5SIGN</Method>
				    <Value>#########</Value>
			    </Authentication>
		    </IDAuthentication>
	    </SenderDetails>
    </Header>
    <GovTalkDetails>
	    <Keys />
    </GovTalkDetails>
    <Body>
	    <NameSearchRequest>
		    <CompanyName>Test 365 Limited</CompanyName>
		    <DataSet>LIVE</DataSet>
		    <SameAs>true</SameAs>
	    	    <SearchRows>20</SearchRows>
	    </NameSearchRequest>
    </Body>
</ns2:local>

```

Please suggest what can be done? Thanks in advance for your help.

Thanks  
Rahul Saraswat

---

<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:** [April 26, 2016, 10:57am UTC](http://forum.companieshouse.gov.uk/t/unable-to-get-dissolved-companies-in-the-name-search-from-api/564/2 "2016-04-26T10:57:23Z")

</div>

Hello Rahul,  
this forum is for the API, not the XML gateway that you are using. All documentation for this service can be found at :-  
[http://xmlgw.companieshouse.gov.uk/](http://xmlgw.companieshouse.gov.uk/)  
But I can help you with this anyway.  
In your request XML you have set to true, so the service is checking name availability. Not what you want I suspect.  
your Request should set that to false and then you will get a list of live and recently dissolved company name matches.  
If there is anything else I can help you with, please feel free to contact me again.

---

<div class="post-metadata">

**Author:** ![rahul\_saraswat](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/51bf81/32.png) [@rahul\_saraswat](http://forum.companieshouse.gov.uk/u/rahul_saraswat)\
**Post date:** [April 29, 2016, 12:28pm UTC](http://forum.companieshouse.gov.uk/t/unable-to-get-dissolved-companies-in-the-name-search-from-api/564/3 "2016-04-29T12:28:08Z")

</div>

Hi Mark,

Thanks a lot for the help.  
I have made the changes and it is working fine.  
There is one more question. Will be glad if you could answer that as well. 😄

I am getting company details for a list of companies around 20 to 24. Sometimes I get an error :  
Error[raisedBy=CompanyDetails,number=502,type=fatal,text=[Authorisation Failure],location=[]]

Can you please suggest how can I look at the exact error message to find the cause or if you could suggest what this error signifies.

Thanks again for your Help.

Thanks  
Rahul Saraswat
