You need to sign in to do that
Don't have an account?
jnegi
System.ListException: Duplicate id in list: with Database.upsert (list,externalid,false)
Hi Devs,
I am receiving "Duplicate id in list" error in the below line and I know "requests" has duplicate ids, isn't it supposed to store success or error in "upserRslt"?
Database.UpsertResult [] upserRslt = Database.upsert(requests, externalIdField, false);
Partial success is not working even with Database.upsert(false) parameter, I am using the above code in the Queueable class, has anyone faced this issue?
Thanks!
I am receiving "Duplicate id in list" error in the below line and I know "requests" has duplicate ids, isn't it supposed to store success or error in "upserRslt"?
Database.UpsertResult [] upserRslt = Database.upsert(requests, externalIdField, false);
Partial success is not working even with Database.upsert(false) parameter, I am using the above code in the Queueable class, has anyone faced this issue?
Thanks!
Check this for reference:
https://salesforce.stackexchange.com/questions/119322/how-to-solve-this-system-listexception-duplicate-id-in-list-in-trigger
Thanks!