Validation of postcodes in the United Kingdom prevents saving profile data

Fixed in

EPiServer.Profiles.Client 1.18.0


Apr 02, 2020


Dec 07, 2020


Closed, Fixed and tested


Using Profile Store REST API, create new profile or update existing profile using POST/PUT actions.
Include zip code in profile data in profile.Info.ZipCode and use valid postcodes in the United Kingdom, for example:

  • EC1A 1BB
  • W1A 0AX
  • M1 1AE
  • CR2 6XH
  • DN55 1PT

Expected: profile data is saved.

Observed: 400 Bad Request and error object with the message like
Invalid value.
Info.ZipCode: DN55 1PT

Note: some of postcodes are still accepted.