function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Auler CordobaAuler Cordoba 

duplicate value found

User-added imageI have this error message: "duplicate value found: <unknown> duplicates value on record with id: <unknown>" in the line 0, as you can see in the picture. 

I really doesn't understand why ... 
Best Answer chosen by Auler Cordoba
mukesh guptamukesh gupta
Hi Alur

Could you please confirm whether the apex class or trigger already exist in your dev org? If you're on the developer console press Ctrl + O and search for contactPointsTrigger They might be already existing.

Sometimes it happens due to the network connectivity issues.

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

CharuDuttCharuDutt
Hii Auler 
There Already A Trigger Named 'contactPointsTrigger' Please Change The Name To SomeThing Else
Please Mark it As Best Answer If It Helps Thank You!
SwethaSwetha (Salesforce Developers) 
HI Auler,
There could be multiple causes for this error. What operation are you performing - DML or deployment? If DML, this error is caused by unique field constraint on the object.

Came across this post https://salesforce.stackexchange.com/a/79800/80089 which has elaborate details on debugging this error. The post also has other users' experiences of what worked for them and that should help you.

If this information helps, please mark the answer as best. Thank you
mukesh guptamukesh gupta
Hi Alur

Could you please confirm whether the apex class or trigger already exist in your dev org? If you're on the developer console press Ctrl + O and search for contactPointsTrigger They might be already existing.

Sometimes it happens due to the network connectivity issues.

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 
This was selected as the best answer
mukesh guptamukesh gupta
Hi Alur,


Kindly mark my solution as the best answer if it helps you.

Regards
Mukesh