Hi I’m trying to upload/ammend my accounts to Companies House I get the following error And I am confused. FormIdentifier does not match content in Form element.
Also is there a test server I can use for development.
Many Thanks
Jonathan Lee
send the following data.
<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnvelopeVersion>2.0</EnvelopeVersion>
<Header>
<MessageDetails>
<Class>AnnualReturn</Class>
<Qualifier>request</Qualifier>
<Function>submit</Function>
<CorrelationID/>
<Transformation>XML</Transformation>
<GatewayTest>0</GatewayTest>
<TransactionID>1774788252873</TransactionID></MessageDetails>
<SenderDetails>
<IDAuthentication>
<SenderID>....</SenderID>
<Authentication>
<Method>clear</Method>
<Role>Principal</Role>
<Value>....</Value>
</Authentication>
</IDAuthentication>
</SenderDetails>
</Header>
<GovTalkDetails>
<Keys>
<Key Type="UTR">...</Key>
</Keys>
<TargetDetails>
<Organisation>HMRC</Organisation>
</TargetDetails>
<ChannelRouting>
<Channel>
<URI>0000</URI>
<Product>Harmony Accounts</Product>
<Version>0.0.1</Version>
</Channel>
</ChannelRouting>
</GovTalkDetails>
<Body><FormSubmission>
<FormIdentifier>Accounts</FormIdentifier>
<FormHeader>
<CompanyNumber>....</CompanyNumber>
<CompanyType>0</CompanyType>
<CompanyName>EXAMLPLE LTD</CompanyName>
<CompanyAuthenticationCode>AAAAAA</CompanyAuthenticationCode>
<PackageReference>EXAMPLE PACKAGE</PackageReference>
</FormHeader>
<DateSigned>2025-09-22</DateSigned>
<Document>
<Data>...</Data>
<Filename>EXAMPLEaccounts20250731.xhtml</Filename>
<ContentType>application/xhtml+xml</ContentType>
<Category>ACCOUNTS</Category>
</Document>
</FormSubmission></Body>
</GovTalkMessage>
And got the following response.’
<GovTalkMessage xsi:schemaLocation="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader http://xmlgw.companieshouse.gov.uk/v1-0/schema/Egov_ch.xsd" xmlns="http://www.govtalk.gov.uk/CM/envelope" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:gt="http://www.govtalk.gov.uk/schemas/govtalk/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<EnvelopeVersion>1.0</EnvelopeVersion>
<Header>
<MessageDetails>
<Class>AnnualReturn</Class>
<Qualifier>error</Qualifier>
<TransactionID>1774788252873</TransactionID>
<GatewayTimestamp>2026-03-29T13:45:19-00:00</GatewayTimestamp>
</MessageDetails>
<SenderDetails>
<IDAuthentication>
<SenderID>7ff8cb8cfb96604c5fe49ca3cc90387b</SenderID>
<Authentication>
<Method>CHMD5</Method>
<Value>0c7e611efbfdbbba4b9dbc9251b57029</Value>
</Authentication>
</IDAuthentication>
</SenderDetails>
</Header>
<GovTalkDetails>
<Keys/>
<GovTalkErrors>
<Error>
<RaisedBy>AnnualReturn</RaisedBy>
<Number>9999</Number>
<Type>fatal</Type>
<Text>FormIdentifier does not match content in Form element</Text>
<Location></Location>
</Error>
</GovTalkErrors>
</GovTalkDetails>
<Body>
</Body>
</GovTalkMessage>