SAP Knowledge Base Article - Public

3423305 - Data Validation: "The User Name you provided is not valid. Please use the following character types: ['a' to 'z', 'A' to 'Z', '0' to '9', '-', '_', '.', '@']." - Onboarding

Symptom

  • When the Onboarding process is initiated via Recruiting, the candidate is not visible in the Onboarding Dashboard.
  • In the To-Do panel > Business Process, it gives the error:

    Create External User (1)
    Data Validation.
    [Error Code: 7]The User Name you provided is not valid. Please use the following character types: [’a’ to ‘z’, ‘A’ to ‘Z’, ‘0’ to ‘9‘, ‘-‘, ‘_‘, ‘.‘, ‘@’].

Environment

SAP SuccessFactors Onboarding

Reproducing the Issue

  1. Log in to the instance
  2. Navigate to the To-Do panel > Business Process
  3. View user validation errors for [NEW HIRE] (EMAIL) for Onboarding process trigger [PROCESS ID]
  4. Create External User (1)
    Data Validation.
    [Error Code: 7]The User Name you provided is not valid. Please use the following character types: [’a’ to ‘z’, ‘A’ to ‘Z’, ‘0’ to ‘9‘, ‘-‘, ‘_‘, ‘.‘, ‘@’].

Cause

A special character exists in the candidate's primary email address in Recruiting.

Resolution

(Note: Username in Onboarding is from "primaryEmail" value in Recruiting, which is not editable in UI; only "contactEmail" is editable in Recruiting.)


Solution 1:

  1. Correct primaryEmail in Recruiting:
    • Create support ticket to component LOD-SF-OBX and request a script to correct the email address in Recruiting.
    • (For product support) Check internal memo for script to correct the email address.
      
  2. Restart the associated Business Process error.


Solution 2: 

  1. Apply the fix proposed in Check Tool. - Process object exists for the new hire with a valid status. (ONB2CheckProcessObjectExistsWithValidStatus) 
  2. Change the "Process Initiation Status" of the candidate from "Started" to "Cancelled" in Manage Data > Process Trigger: [Process Initiation ID]
  3. Correct primaryEmail in Recruiting (see above Solution 1)
  4. Re-run the checks and apply the quick fix from ONB2CheckProcessTriggerObjectExists check to enable the "Initiate Onboarding" option for the candidate.

See Also

3237676 - How to update candidate's email displayed in onboarding dashboard - Onboarding - SAP for Me

Keywords

Onboarding, Onboarding 2.0, LOD-SF-OBX, OBX, Recruiting, Email Address, Data Validation, Validation Error, The User Name you provided is not valid. Please use the following character types: [’a’ to ‘z’, ‘A’ to ‘Z’, ‘0’ to ‘9‘, ‘-‘, ‘_‘, ‘.‘, ‘@’]., Candidate not visible, Onboarding Dashboard , KBA , LOD-SF-OBX-RCM , Initiate onboarding from RCM , How To

Product

SAP SuccessFactors Onboarding all versions