Getting UniqueValidationError in bench migrate

Hi everyone,

I’m getting this error while migrating the site, don’t know what caused the problem.

can you please look at:
frappe.exceptions.UniqueValidationError: ('Web Form', 'job-application', IntegrityError(1062, "Duplicate entry 'job_application' for key 'route'"))

Fun fact: Currently I’m not able to use the system. its saying updating the system.

Hi,

It may help to say the operating environment, version of Frappe and any apps, and if this is happening the first time a bench migrate has been attempted or if migrations have been successful previously. Have there been any changes or customization to doctypes?

Hi @smino,
Thank you for the reply.

bench migrations were returned with no error previously. But today I installed Frappe Insights and tried to migrate, but it returned with this mentioned error.

edit:
stack:
frappe 15.23.0 version-15
erpnext 15.20.6 version-15
hrms 15.19.0 version-15

Was Insights installed using these instructions?

yes, I have installed Insights by following these instructions

Is Insights installed to an existing site or a new site? The errors suggest there might be a conflict of some sort?

Installed on existing site.

Yes, the error suggests that there is a web form named “job-application”. so, I tried by deleting the document by using “frappe.delete_doc” in console, it returned None and deleted the document.

But when I tried to migrate again, the document got restored and error appeared again.

don’t know why this is happening.

I’m not expert with API but a db.commit may be advised in this context.