You need to sign in to do that
Don't have an account?

two identically equal elements
Hi Team,
In debug i found it's inserting duplicate values how to avoid duplicate values using apex class.
Error:
Before Insert or Upsert list must not have two identically equal elements
Thanks
KMK
In debug i found it's inserting duplicate values how to avoid duplicate values using apex class.
Error:
Before Insert or Upsert list must not have two identically equal elements
Thanks
KMK
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Add the records to Map and while inserting or updating insert the map.values .
Please find the below stack exchange as your reference.
https://salesforce.stackexchange.com/questions/141345/update-records-using-map-values
If this question helps, Mark it as best answer. If you have any doubts please feel free to post the comment.
Thanks,
Can you share the code so we can check where exact the issue is occuring from.
Thanks,
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh