Symptom
- You are trying to add a National ID for Mexico with the Card Type CURP (Clave Única de Registro de Población) for employees with a Non-Binary gender, and you receive a validation error.
- The error message states: "Please enter a valid CURP (Clave Única de Registro de Población). The format must be AAAAYYMMDDXXXXXXN".
- The ID you are entering is valid and official and already conforms to the correct display format mentioned in the error. The character "X" represents Non-Binary gender, but the system currently does not accept CURPs with "X", only accepting "M" or "H".
Environment
- SAP SuccessFactors HCM Suite
- SAP SuccessFactors Employee Central
Reproducing the Issue
- Attempt to add a CURP National ID for a Non-Binary employee from Mexico, setting the gender value in Personal Information as Unknown, Undeclared, or Other.
- The National ID includes the "X" character in the 11th digit, consistent with official CURP IDs for Non-Binary people.
- A validation error message is displayed: "Please enter a valid CURP (Clave Única de Registro de Población). The format must be AAAAYYMMDDXXXXXXN".
- Verify that the ID entered already conforms to this display format, which is also the Display Format set for CURP in the Manage Business Configuration under nationalIdCard_MEX.
Cause
- The instance was using an outdated regular expression for CURP validation that did not include support for the "X" character representing Non-Binary gender.
- The regular expression for CURP allows for a one-letter gender indicator as the 11th digit: H for male (hombre in Spanish), M for female (mujer in Spanish), or X for non-binary, as per Guide Validation Rules - Mexico | SAP Help Portal.
- The gender validation check first compares the gender indicator with the gender value in Global Information. If it does not exist, the gender validation check compares with the gender value in Personal Information. The gender value, Unknown, Undeclared, and Other in Personal Information is converted to Non-Binary for gender validations.
Resolution
To confirm the most recent Regular Expressions used in Employee Central, you can download the EC Master Data Model as outlined in KBA 3153500 - How to Download Data Models, Picklists and other configuration files for Employee Central - SAP SuccessFactors - SAP for Me. Then, check the Regular Expression maintained for the country in the EC-CSF-for-succession-DM file.
In this example, for CURP - Mexico, we have:
<display-format>AAAAYYMMDDAAAAAAXN</display-format>
<reg-ex>[A-Z]\{4\}[\d]\{6\}[MHX]\{1\}[A-Z]\{2\}[B-DF-HJ-NP-TV-Z]\{3\}[A-Z0-9]\{1\}[\d]\{1\}</reg-ex>
To resolve the issue, navigate to Manage Business Configuration and update the regular expression for CURP validation in the National ID element for Mexico (nationalIdCard_MEX) as follows:
- Change from: [A-Z]\{4\}[\d]\{6\}[MH]\{1\}[A-Z]\{2\}[B-DF-HJ-NP-TV-Z]\{3\}[A-Z0-9]\{1\}[\d]\{1\}
- To: [A-Z]\{4\}[\d]\{6\}[MHX]\{1\}[A-Z]\{2\}[B-DF-HJ-NP-TV-Z]\{3\}[A-Z0-9]\{1\}[\d]\{1\}
Save the changes and ensure the updated configuration is applied to all affected environments.
See Also
Keywords
national ID, Mexico, CURP, non-binary, gender, unknown, undeclared, other, X, validation, error, regular expression, valid, display format, format, Clave Única de Registro de Población , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , Problem
SAP Knowledge Base Article - Public