Hello,
I’m testing company incorporation using the new CompanyIncorporation-v3-8 schema, but I’m encountering the following error related to the Director Identity Verification Code: :
<Error>
<RaisedBy>CompanyIncorporation</RaisedBy>
<Number>9999</Number>
<Type>fatal</Type>
<Text>Invalid CompaniesHousePersonalCode format</Text>
<Location></Location>
</Error>
Test setup :
- Endpoint:
https://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway(Since we are past 18 November, I assume we no longer need to use thesandpit-stagingURL.) - xml message used in the filing:
<VerificationDetails>
<CompaniesHousePersonalCode>ee123456789</CompaniesHousePersonalCode>
<VerificationStatements>
<VerificationStatementForIndividual>INDIVIDUAL_VERIFIED</VerificationStatementForIndividual>
</VerificationStatements>
</VerificationDetails>
The CompaniesHousePersonalCode above is a dummy value used for testing.
Questions
- Is the dummy value the cause of the error?
It appears the field now enforces stricter validation than the schema suggests. - Is there a test value we can use that will always pass validation in the test environment?
The schema (baseTypes-v3-7.xsd) only states a min/max length of 11 characters:
<xs:element name="CompaniesHousePersonalCode">
<xs:simpleType>
<xs:annotation>
<xs:documentation>The Personal Verification Code of The Individual</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="11" />
<xs:maxLength value="11" />
<xs:whiteSpace value="collapse" />
</xs:restriction>
</xs:simpleType>
</xs:element>
Any clarification on the expected test format—or whether the gateway requires actual valid CH-issued personal codes even in test—would be greatly appreciated.
Thank you!