Background
Lumos can automatically assign email addresses to new hires in onboarding workflows, using your organization’s naming conventions and generation rules. When email generation fails, it can block the rest of the onboarding sequence and leave employees without access to critical systems on their first day. This guide shows you how to identify the root cause of email generation failures and get onboardings back on track.When to Use This Guide
Use this troubleshooting guide when:- Onboarding workflows are stuck with email generation errors
- Error Tasks appear in the Task Center related to email creation
- HR reports that email addresses weren’t created as expected
- New employees report they haven’t received access to their accounts
Common Email Generation Failure Scenarios
Email generation typically fails for one of these reasons:- Email collisions - The generated email already exists and is used by another user
- Invalid characters - Special characters in names that can’t be used in email addresses
- Generation rule misconfigurations - Incorrect expressions or formatting rules
Troubleshooting Steps
1. Identify the Email Generation Error
Start by locating the specific error that’s preventing email generation. You can do so by visiting the Onboarding page and selecting “Open” on the user that has encountered an error.- Navigate to Workflows > Onboarding
- Look for workflows with an in progress or error status (red indicators)
- Select Open on the affected user to see the onboarding details
- Find the email generation step, typically labeled “Generate Email Address”, and expand it to read the error

- Read the complete error message
- Note any specific email addresses mentioned in the error
- Look for error codes or technical details that indicate the root cause
2. Check for Email Address Collisions
The most common cause of email generation failure is attempting to create an email that already exists elsewhere. Verify whether this is the issue by performing the following steps: Search for existing email addresses:- Review your email generation rules, and determine the email that should be generated for the employee
- Go to Identities page
- Search for the email address that failed to generate
-
If you find an existing identity with that email:
- Compare the employee details (name, employee ID, start date)
- Determine if it’s the same person or a different employee
firstname.lastname@domain.com.
Resolution
- Fallback Rules. You can add fallback email generation rules to your workflow. When multiple email generation rules are defined, Lumos will attempt to generate an email using each of the rules in order. If there is a collision, Lumos falls back to the next rule (e.g. first try
firstname.lastname@domain.com, then tryfirstname.lastname.employeenumber@domain.com) - Auto-Increment Emails. If you enable the “Auto-increment” flag in the Generate Email step, Lumos will attempt to automatically resolve email conflicts. If there is another user with the same email, Lumos will add a number to the end of the new user’s email until there is no longer a conflict (e.g.
nathan.scott1@domain.com->nathan.scott2@domain.com)
michelle.williams@domain.com and left the company, and then another Michelle Williams joins the company.
Resolution
- Fallback Rules. You can add fallback email generation rules to your workflow. When multiple email generation rules are defined, Lumos will attempt to generate an email using each of the rules in order. If there is a collision, Lumos falls back to the next rule (e.g. first try
firstname.lastname@domain.com, then tryfirstname.lastname.employeenumber@domain.com) - Auto-Increment Emails. If you enable the “Auto-increment” flag in the Generate Email step, Lumos will attempt to automatically resolve email conflicts. If there is another user with the same email, Lumos will add a number to the end of the new user’s email until there is no longer a conflict (e.g.
michelle.williams1@domain.com->michelle.williams2@domain.com)
-
Employee starts in 2021, and is sourced from your HRIS as
steve.mcqueen@domain.comwith employee ID1234, then leaves in 2022 -
Later, that employee rejoins in 2023, but with a new employee number
2345
- Treat as a new Identity. You can choose to treat this scenario exactly the same as a normal name conflict, by auto-incrementing the user’s email, or specifying a fallback rule.
- Modify your HRIS patterns. Instead of treating re-hires as new employees in your HRIS system, keep the user’s employee number/ID the same after a re-hire event if you can. Lumos then treats them as the same Identity and doesn’t raise an email conflict.
- Correlate the old -> new Identity. If you have an attribute that reliably correlates a re-hired employee’s new HRIS record to their old one, you can configure a Matching Rule on the HRIS application. The rule matches the new account to the old account. Lumos then treats them as the same Identity and doesn’t raise an email conflict.
3. Check for Invalid Email Characters
Emails must follow a strict standard for the types of characters that can be included. Lumos automatically validates that generated email addresses meet these standards, before considering the step completed. This validation can lead to failures during onboarding workflows that need to be resolved manually. Identify which attributes are used in email generation:- Go to Employee Lifecycle > Onboarding > Settings
- Review your email generation rules. In particular, identify which employee attributes are used in the rules
-
Common attributes include
- Given Name
- Family Name
- Preferred Name
- Employee Number
- Go to the Apps page.
- Select your HRIS provider.
- Search for the employee. Their attributes appear as columns on this page.
-
For each of the attributes used to generate an email address, look for the following scenarios
- Apostrophes (O’Connor, D’Angelo)
- Accented characters (José, François, Müller)
- Hyphens in compound names (Mary-Jane, Smith-Jones)
- Special symbols or punctuation
- Non-Latin characters (Arabic, Chinese, Cyrillic, etc.)
strip_punc, strip_chars, and transliterate in more detail.
Restart Onboarding
Once you’ve updated your rules, you can restart an individual user’s onboarding. On the Identities page, click Onboard on the user, then Run Onboarding. This starts a new onboarding with the updated rules. It doesn’t stop the old one, so cancel that from the Onboarding page if it’s still running.
Restarting doesn’t skip apps the first run already provisioned. The new onboarding opens a new access request for every app its access policies grant, so expect repeat requests and tasks for apps the user already has, and close those out. Open the new workflow from the Onboarding page and check that the Generate Email Address step no longer shows an error.
FAQs
What happens to the employee while email generation is being fixed? The onboarding workflow will be paused until the email issue is resolved. The employee won’t receive their email address or subsequent access provisioning. It’s important to resolve email generation issues quickly, ideally within a few hours of detection. Can I manually assign an email address instead of using automatic generation? It is not possible to manually assign an email address in the Lumos platform today. Can email generation rules be different for different employee types? Yes, Lumos supports conditional logic in email generation rules. You can create different formats based on department, employee type, location, or other attributes. However, maintain consistency where possible to avoid confusion. See Using the Lumos Expression Language in Workflows for more details on how to handle conditional logic using expressions. What if I need to change an employee’s email address after it’s already been generated? Email address changes after initial generation can be complex since the email might already be provisioned in multiple systems. Contact Lumos support for guidance on post-generation email address modifications.Still Need Help?
If you’ve followed these troubleshooting steps and still can’t resolve the email generation issue, contact Lumos support at support@lumos.com with:- Employee details: Full name (including any special characters), preferred name, department
- Error messages: Complete error text from the failed workflow step
- Screenshots: Images of the error task and any relevant identity information
- Expected email: What email address should have been generated
- Steps attempted: Specific troubleshooting actions you’ve already tried