[ https://issues.apache.org/jira/browse/OFBIZ-7099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294853#comment-15294853 ]
Amardeep Singh Jhajj commented on OFBIZ-7099: --------------------------------------------- Please find attached patch for Release 14.12, 15.12 and trunk. Thanks. > Service entity auto not having duplicate record check when we pass single > primary key > ------------------------------------------------------------------------------------- > > Key: OFBIZ-7099 > URL: https://issues.apache.org/jira/browse/OFBIZ-7099 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release Branch 14.12, Trunk, Release Branch 15.12 > Reporter: Amardeep Singh Jhajj > Assignee: Amardeep Singh Jhajj > Attachments: OFBIZ-7099-Releases.patch, OFBIZ-7099-Screenshot.png, > OFBIZ-7099-trunk.patch > > > Service entity auto not having duplicate record check when we pass single > primary key. > I was working on adding Humanres/ Skill types. On adding skill type Id, I got > duplicate key error as i tried to use already present skill type Id. Please > find attached screenshot. > Then I thought why "already present Id error" not returned. > Error cause: On doing some research, i found issue in EntityAutoEngines's > invokeCreate method where duplicate record check was missing for single > primary key creation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)