cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to insert data getting ENTITY_ALREADY_EXISTS

0 Kudos
3,145

1. I am trying to bulk insert records using the following query:

DAO.INSERT.into(entity).entries(toInsert)

2. But I end up with the following error:

{"code":400,"message":"ENTITY_ALREADY_EXISTS","numericSeverity":4}

even though there are no duplicates in the table

View Entire Topic
0 Kudos

Hi Tim,

Thank you for the help. This hint helped me understand the root cause.

The issue was that the array which I was sent to be uploaded had a duplicate record within in. I was not aware of that and was checking on all other places as it sent ENTITY_ALREADY_EXISTS error which put me off track.