Can't submit employee separation - Project Name Must Be Unique error

Hi,

I am using the 15.55.0 for Frappe Hr with ErpNext v15.95.0. When submitting an Employee Separation for an employee, I am getting an error message “Project Name Must be Unique”. How do I know what project name is being created? I checked there is no separation project for the same employee, what else to check?

Thanks.

Why is this happening?

When you submit an Employee Separation, the system automatically creates a linked Project to track separation tasks. The code generates the project name using this format:
"Employee Separation : " + server_script.employee

Since Project names must be unique in ERPNext, if a project with this name already exists (from a past attempt or old record), the new creation fails.

Troubleshooting Steps

  1. Go to the Project List.
  2. Search for a project named “Employee Separation : [Employee Name]”.
  3. Once found, Rename it to something else (e.g., append “- OLD” or “- CANCELLED”).
    • Note: Renaming is safer than deleting if there are linked tasks.
  4. Go back to your Employee Separation document and click Submit.