Questions tagged [duplicate-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
51 views

Fuzzy not working for lead company name

I created a matching rule and duplicate rule regarding lead company name and i tested by creating records with company name as test and test data The record is saving without showing any duplicates ...
0
votes
1answer
39 views

Apex Trigger Creating Duplicate Records

I wrote an Apex Trigger that would create a new record on a custom object whenever the Results__c picklist is set to 3 specific values. Everything seems to functional, but it always creates 2 records ...
0
votes
0answers
12 views

Show duplicate accounts on case page

Is there a way to show duplicate accounts on Case page? Based on the value in 2 fields (1 custom field Brand, and the account Email field) So if a case is open on one account, and in the system there ...
0
votes
0answers
39 views

Trigger after update create a Duplication records

I have two custom Objects Projects and weeks so i have created a trigger on Projects that populated weeks based on start date and end date, but when i updated start date or end date it create a ...
2
votes
2answers
115 views

DUPLICATE_VALUE:duplicate value found error on field that ISN'T marked is Unique?

I am trying to insert records via informatica, I am getting this error: "","false","false","DUPLICATE_VALUE:duplicate value found: customfield__C duplicates value on record with id: xxxxxxxxxxxx:--" ...
3
votes
1answer
80 views

How do I avoid a Duplicate-value during update in Trigger?

I'm changing the Clients__c value in Mopping__c if the StartDate__c, Status__c or Opportunity__c have changed in the needed Rent__c. Structure: if Mopping 1 is related to Rent 1 which is related to ...
0
votes
1answer
41 views

Duplicate id in list: broken script

I have a script: List<Apartment__c> apartmentsToUpd = new List<Apartment__c>(); List<House__c> houses = [SELECT Id, Tenants__c, EntryDate__c, DepartureDate__c, Opportunity__c FROM ...
4
votes
2answers
244 views

Scratch Org: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: []

I and my whole team encounter this error while inserting some data into a new Scratch Org. DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: ...
0
votes
0answers
20 views

Mass Finding Duplicate Leads in Salesforce

Sales Rep has Uploaded leads into salesforce by adding them as campaign members. The leads under campaign members have many duplicates, can anyone suggest a method or a process to find out Mass ...
0
votes
0answers
32 views

BIZARRE Product 1 is added to lineitem twice product 2 is not

Having an odd problem. Has anyone else had unusual behavior with products and process builder? In this scenario I created a product called Repeat Customer and then added it to a Process Builder. ...
1
vote
2answers
96 views

How to restrict duplicate emails entering into loop?

Could anyone help on this issue. In the below apex class I have method called getWrapAccounts().In this method for loop allows duplicate values.I have a Login__c field,It is emailID based on thid id ...
1
vote
1answer
158 views

De-duplicate value from string with delimiter using ampscript

I have an issue with a string variable which unfortunately contains several values(Phone numbers) with ; as the delimiter. When the string contains several unique numbers it will list them ...
0
votes
1answer
255 views

Removing duplicate values from a picklist in flows

I'm trying to create a flow that allows the user to log multiple calls for multiple different contacts. The ideal scenario would go like this: User initiates flow from a button on the Account object. ...
4
votes
1answer
174 views

Apex Class Deployment: duplicate value found: <unknown> duplicates value on record with id: <unknown>

As many others have already done, I am providing yet another cautionary tale of the elusive, misleading, and downright frustrating, magical error: duplicate value found: <unknown> duplicates ...
0
votes
1answer
701 views

Process Builder fail when creating new records due to duplicate value not allowed in a field

I'm getting the error below: We can't save this record because the “Legal Contract: Updates - New Records” process failed. Give your Salesforce admin these details. This error occurred when the ...
0
votes
1answer
241 views

Method does not exist or incorrect signature: void put(String, String) from the type Map<String,Map<String,String>>

Below code throws this error: Method does not exist or incorrect signature: void put(String, String) from the type Map<String,Map<String,String>> Code: //I have this map Map <...
0
votes
2answers
285 views

Trigger to prevent duplicate combination of 3 fields on insert and update

We have 3 picklist fields Dom1, Dom2, and Dom3. We want to write a trigger before insert and update to prevent duplicate records with the same combination of these 3 fields. For Example: Dom1 ...
2
votes
1answer
1k views

Duplicate Rule Details - How to get in Apex exception

I am getting a duplicate rule issue with apex first error: DUPLICATES_DETECTED, Use one of these records?: [] Now I want this rule to run, however, I need to get the details of the record that is ...
0
votes
1answer
133 views

i m trying to avoid duplicate product code in opportuinity line item but its not updating

trigger duplicatecode on OpportunityLineItem (before insert) { { Set<String> setProductCode= new Set<String>(); For(OpportunityLineItem nam : trigger.new) { ...
1
vote
1answer
191 views

Converting Set to List creates duplicates of my Sobjects

I am adding manipulated Accounts to a Set multiple times and update it. It fails due to a Duplicate id in list exception. What should be impossible, because the values are coming from a set. After ...
0
votes
1answer
88 views

Can a Random String Generator create duplicate values, if so how to stop it?

I want to know whether this code can create multiple instances of the same random number by any chance? Can i make this specific field to not have same values within salesforce it self? trigger token ...
2
votes
2answers
839 views

Updating Map values returns list exception (row with duplicate Id at index: X)

I have a list of tasks that need to be updated. To avoid duplicates, it first gets converted into a Map<Id, Task> whose values are updated as follows: Map<Id, Task> mapIdTasksToUpdate = ...
0
votes
2answers
101 views

How to build a testdatafactory without error : DUPLICATE_VALUE, duplicate value found: duplicates value on record with id: : []

I an trying to create a testdatafactory which i can use to call in my tesclasses. What I want to achieve is small buildingblocks with which I call another method if a lookupfield needs to be filled. I ...
4
votes
3answers
449 views

Duplicate class objects in a set

I am having 2 instances of a wrapper class holding the same values. Then I add both instances to a Set of that wrapper class and both instances are present in the set. Say this is my code: public ...