Unable to get Dissolved companies in the name search from API

Hi Everyone,

When I search the website of company house(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

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/
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.

1 Like

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. :smile:

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