Skip to main content
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Setting the “Postal Code” field gives an error: “Field Postal Code must contain a valid postcode”

    • Product: Rosetta
    • Product Version: 5.2

    Out of the box Rosetta supports postal codes that contains only numeric characters.

    If your country postal code also includes alphabetical characters you should edit the "postal_code_regex” general parameter to validate your alpha numeric postal code.

    The "postal_code_regex” general parameter is available at “Administration > General > General Parameters” under the “general” module.

    Change the parameter to a general expression that matches your postal code.

    For example: ^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$ matches the Canadian postal code.

    • Article last edited: 04-Apr-2017