You need to sign in to do that
Don't have an account?
Maqsood Ahmad
duplicate value found: unknown duplicates value on record with id
duplicate value found: unknown duplicates value on record with id
I'm upserting an existing record by following https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm
and I'm getting error "duplicate value found: unknown duplicates value on record with id"
When I upsert new record it does create new record when I try to update same record through upsert I get above error.
Theoritaclly it should work as that's the purpse of upsert.
I need to use this upsert technique so that I can create/update multiple records through this technique.
Any help to resove this issue??
I'm upserting an existing record by following https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm
and I'm getting error "duplicate value found: unknown duplicates value on record with id"
When I upsert new record it does create new record when I try to update same record through upsert I get above error.
Theoritaclly it should work as that's the purpse of upsert.
I need to use this upsert technique so that I can create/update multiple records through this technique.
Any help to resove this issue??
Hi Ahmad,
Make sure your external id is unique and in the data you are getting the field which is mapped to external id does not have repeated values.
Please cross check again your records sheet.
Thanks,
Arvind Kumar
You should follow the below link for upserting records in the org. It will do help you.
https://douglascayers.com/2016/02/07/salesforce-power-of-upsert-and-external-ids-part-2/
Thanks,
Arvind Kumar
Thanks for your reply.
External id is already unique and the data I'm getting in doens't have any repeated values. In fact I'm upserting only one record and not more then one reocrds for my initial test. As I'm writing code in C# to upsert this record by following https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm
I'm stuck in this and not sure why I'm getting this exception.