CompanyIncorporation-v3-8 - "Invalid CompaniesHousePersonalCode format" Error

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 the sandpit-staging URL.)
  • 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

  1. Is the dummy value the cause of the error?
    It appears the field now enforces stricter validation than the schema suggests.
  2. 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!

Michel,

Sorry, we became aware yesterday that this was an issue at our end, and as stated below, are working to resolve.

SDN

Hello Simon,

Any update on the resolution of this? I’m still receiving the same error Invalid CompaniesHousePersonalCode format. I’ve also tried other codes like these without success:

  • ABCDE123456 => 5 letters and 6 numbers
  • ABCDEF12345 => 6 letters and 5 numbers

Thank you

Hello,

Can you try the following code in test please?
CWMPS832223

SDN

Awesome, it works with that value in test.
Thank you!