Child table primary key duplicate issue

frappe.exceptions.DuplicateEntryError: ('Employee Education', 'row 1', IntegrityError(1062, "Duplicate entry 'row 1' for key 'PRIMARY'"))

I am using Employee’s Child Doctype (Employee Education) in one of my custom doctype and with same configuration as Employee Education Field


But the problem is it is not generating random name when I create record from My custom Doctype, so it is giving me Duplicate primary key error

As you can see in above screenshot the row 1 and row 2 records are generated from my custom doctype.

Is there anything I am missing?

Anyone??

For now, I have set the naming rule to “Random Hash” in the Employee Education doctype via the Customize Form and exported it to my custom app.