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

Unable to insert data getting ENTITY_ALREADY_EXISTS

0 Kudos
3,144

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
tim_schulze-hartung
Product and Topic Expert
Product and Topic Expert

Hi Mujeeb,

thanks for providing context.

You most probably are using some 'unique' constraint in your DDL (e.g., `@assert.unique` in CDL) and there is an error connected with this – so some data affected by the constraint seems to be present already.

Unfortunately there is a known issue as to the original error message getting lost.

Hope these hints help you.

Regards,
Tim