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