Skip to main content

Questions tagged [duplicate-value]

Filter by
Sorted by
Tagged with
-1 votes
2 answers
33 views

restrict from adding a similar record

I have three objects - Apartment, Subject, Vote. When creating a new vote, I must enter the vote name, the apartment that voted, the subject of the vote and the vote itself (For it of Against it). I ...
Daniel Bena's user avatar
0 votes
0 answers
24 views

Flow Error: DUPLICATE_VALUE in Case After-Save Flow When Creating CaseTeamMember Records

I am encountering an issue with a Flow in Salesforce, specifically an autolaunched "Case After-Save Flow." The flow is designed to add CaseTeamMember records to a Case based on certain ...
user155621's user avatar
0 votes
1 answer
32 views

How to re-import IERs into Salesforce - getting duplicate errors on et4ae5__MergeId__c field

We purged IER records (IndividualEmailResults, which is data from Marketing Cloud about emails sent there to contacts from SF) from Salesforce about nine months ago due to the large amount of data ...
hgolov's user avatar
  • 773
0 votes
2 answers
51 views

Duplicate Error Message in Test Class not outputting ID - <unknown>

I in my Apex Class I have a catch in my update. If there is a Duplicate error I am searching the Error Message for the Id so that I can run an alternate process. This works fine when running against ...
Jeff Callahan's user avatar
0 votes
0 answers
187 views

Find duplicate records in lwc

Perform duplicate detection in lwc. Here trying to find the duplicate record by comparing the existing records. Is there any other way to detect the duplication using lwc component? js: // detect ...
blackFire's user avatar
0 votes
0 answers
48 views

Several updates on Case record withing short period of time causing "duplicate value found: <unknown>"

I have pretty complex process starting with scheduled Batch Apex, calling my Mulesoft endpoint to retrieve some data and save it on Case record: Batch apex request from Salesforce to Mule is ...
Michal Piatek's user avatar
0 votes
0 answers
33 views

Removing Duplicate Contacts from Tracking Extracts

We had a new member of our team accidentally map the wrong SubscriberKey which ended up creating ~500k duplicate contacts. We work with another vendor who ingests the tracking extracts for future ...
Lisa M's user avatar
  • 11
2 votes
0 answers
204 views

Flow triggered from Apex Test throwing error: DUPLICATE_VALUE: duplicate value found: <unknown> duplicates value on record with id: <unknown>

What happened: I have a test method calls a method in a class that ultimately inserts a new record for ContactRelation__c object. Background: The ContactRelation__c object has a field called "...
dale's user avatar
  • 121
0 votes
1 answer
197 views

Prevent the merge of Contacts from different accounts

I have created a validation rule to prevent the merge of Contacts from different Accounts, but I get this error: AND( NOT(ISBLANK(PRIORVALUE(AccountId))), NOT(ISBLANK(AccountId)), PRIORVALUE(AccountId)...
Mónica's user avatar
  • 17
0 votes
1 answer
492 views

Duplicate/Match Rules - Exact Match on Custom Text Field Showing Inaccurate Error Results

Scope: We needed a way to alert a user of a duplicate when creating a new record and when editing an existing record to meet values where we would consider it a duplicate. Field Types we want to ...
Alexis Frisch's user avatar
1 vote
3 answers
4k views

Getting this error on updating multipicklist field using flow:- INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: bad value for restricted picklist field

I am trying to update a multipicklist field on Accounts using the multipicklist field on Opportunity, which is also using the same global picklist value set. But I am facing two problems with this:- ...
nitesh kumar's user avatar
0 votes
2 answers
1k views

Existing Account flagged as Duplicate not being added to a duplicate record set

I am trying to achieve what I thought was a simple task: create a report displaying all Account records that have been flagged as duplicates. I created a duplicate rule, a matching rule, made sure ...
markwilland's user avatar
0 votes
1 answer
812 views

How to handle and get duplicate values after receiving the duplicate value error message

I'm working on a batch that inserts members to a campaign, the insertion is done with a csv file. Now i have been trying to handle any duplicate values as well, to avoid errors but mostly i would like ...
Toris's user avatar
  • 17
0 votes
0 answers
53 views

How to automatically delete duplicate subscribers in SFMC via an automation [duplicate]

Use-case: Currently, we are migrating subscriberkey to a uniqueID for all subscribers SFMC is being used as independent platform (NO SFDC is connected or involved). Concern: Considering, we have some ...
kl2's user avatar
  • 353
0 votes
1 answer
40 views

Duplicate object : Apex class fail to deploy

This code worked for me for the creation of a new template as well as a section, but when I added the creation of a new question. I found a problem in the deployment, I will put all the code in order ...
salesforcedev's user avatar
0 votes
1 answer
509 views

Getting Duplicate Opportunities Created in a Flow

Hello Salesforce StackExchange Community, Background: Our company just implemented a new Flow that was created from a 3rd party company which we no longer have access to. Our company makes an app and ...
NoviceAdmin80's user avatar
0 votes
1 answer
51 views

Duplicate object with field

With this code , I successfully duplicate the object Template__c by creating a new one : => Apex : @AuraEnabled public static void getFormTemplateName(Id ,TemplateId, string sapValue){ ...
salesforcedev's user avatar
0 votes
0 answers
72 views

Clone value using lightning dual Listbox

I need some help please . What I want from this code is that once the button is clicked Clone, we clone the name of the template, and generate Template Name Id which is concatination between the name ...
Salesforce Junior Dev's user avatar
0 votes
1 answer
4k views

Clone Record with lightning web component

I want to clone the template, and I want its name to be a concatination between the name of the template that I cloned with the id of the sales that I selected, as a result I want to have a template ...
Salesforce Junior Dev's user avatar
0 votes
1 answer
216 views

Insert JournalType DUPLICATE_VALUE exception in Loyalty cloud test class

We are working with Salesforce Loyalty cloud. In one of our test classes, we are setting up data, where we try to insert some records of the JournalType standard object coming with Loyalty cloud. ...
Gabriel Serrano Salas's user avatar
-3 votes
1 answer
1k views

Apex remove duplicate related records from list [closed]

Before inserting a list of new tasks into Task object , I need to make sure only one task for each WhatID is inserted. Here's the sample structure. Task-1 and Task-2 have the same WhatID, then I ...
Tom's user avatar
  • 11
1 vote
0 answers
710 views

How to fix System Error : Duplicate Id in list in Batch Apex

I have an error Duplicate Id in list when executing my batch. I looked at different answers on the community but even when trying to implement them, I still can't fix my error. To try to fix the error,...
Elliott Alderson's user avatar
1 vote
1 answer
133 views

Remove items from map [closed]

I have a map which contains some information about opportunities and sales. AccId Revenue Amount Sales 1 5000 10000 500 2 500 250 250 5 7 10 10 9 25 How can I remove the item 5, because the ...
Rag21's user avatar
  • 115
0 votes
1 answer
1k views

Comparing two Long Text Fields

Good morning, Relatively new to Salesforce, so learning as I go at the moment. We have an issue where the text from one (long text) field is being duplicated on another long text field in some records ...
CompassCourse's user avatar
3 votes
4 answers
11k views

How can I remove duplicate records in the flow of a collection variable?

My flow below collect all due items of a custom object and I want to send an email to the owners concerned. The flow below works fine, but if the owner has more than one item, the owner will receive ...
Rag21's user avatar
  • 115
0 votes
1 answer
490 views

Should I assign a formula field to text field in flow before the record is saved or after the record is saved?

I need to add Checkbox and Date field to matching rules - but Salesforce don't support such functionality - but I can add a text field to Matching rules So I want to create a flow which will take a ...
NonameJavaNoob's user avatar
0 votes
0 answers
562 views

Error while trying to activate matching rule

I've been struggling with activating a matching rule but I keep getting this error I can't get rid of: I have attached my matching rule with requested criteria + duplicate rule as per the ...
Simona C.'s user avatar
2 votes
1 answer
279 views

A topic with the name,XXX already exists. How to mass rename a Topic to an already existing one?

I have a problem / question. There are a large number of topics in salesforce with the wrong format. Example: Topic_1= TEST_123, Topic_2=TEST 123 - I have many such examples. I do not want topics with ...
Sebastian's user avatar
0 votes
1 answer
1k views

how to show two error message for multiple duplicates record in apex trigger

My requirement In contact object I have two fields Apple__c and orange__c, if I create contact with the duplicate values of existing values in Apple__c and orange__c fields need to throw an error for ...
user avatar
-4 votes
2 answers
1k views

JSON array into map with duplicate values [closed]

Final result when i tried the below code.
starboy The's user avatar
0 votes
1 answer
360 views

Need a duplicate values in the Map

I have a list of the string contains duplicate values and I want to retain the duplicate value also in the Map and my code is below my list contains only 2 values while iterating in for loop I want ...
starboy The's user avatar
0 votes
1 answer
94 views

SObject row does not allow errors when checking for duplicate lookup field value

I am trying to check duplicate lookup field values in a custom object named ABC__c. The lookup field is named RelatedUser__c and references the standard User object in Salesforce. Aside from this, ...
theBeginner's user avatar
0 votes
1 answer
11k views

Single query for all records without duplicate in field

I am doubting this is possible in SOQL given the requirements and limitations of the language, but wanted to sanity check to make sure I am not overlooking any possible solutions before I throw in the ...
Frank Evers's user avatar
0 votes
0 answers
171 views

DmlExecutionException: Update failed.first error: DUPLICATE_VALUE, duplicate value found

I understand DUPLICATE_VALUE DML Exception on insert of a record which is already existing However, I am observing this issue for an update on the existing record. When I find an existing contact ...
Smitha's user avatar
  • 1
2 votes
0 answers
42 views

How can Product2.StockKeepingUnit already exist in a test? [duplicate]

I'm trying to create some Apex tests. Of course I am NOT using SeeAllData=true. When I try to insert some instances of Product2, even though I've inserted none before, I get: System.DmlException: ...
Brian Kessler's user avatar
1 vote
0 answers
287 views

Using Standard Duplication Rules with REST API

I am using the below code to find the duplicate contact using the duplicate rules setup in the org : Need Suggestion, as to how to find the relation between the payload and matched contacts array. ...
Riya23's user avatar
  • 21
0 votes
1 answer
1k 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 ...
Helcyon's user avatar
0 votes
1 answer
1k 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 ...
Chris's user avatar
  • 11
2 votes
2 answers
4k 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:--" ...
TestMcTesterson's user avatar
3 votes
1 answer
727 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 ...
Apelsinova's user avatar
0 votes
1 answer
53 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 ...
Apelsinova's user avatar
4 votes
2 answers
551 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>: ...
ondrakr's user avatar
  • 360
0 votes
0 answers
40 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 ...
Daniel's user avatar
  • 1
0 votes
0 answers
383 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. ...
thinker's user avatar
  • 1,462
1 vote
2 answers
355 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 ...
Chandu's user avatar
  • 11
1 vote
1 answer
846 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 ...
Martin Ho's user avatar
  • 107
5 votes
1 answer
2k 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 ...
A stacked cube's user avatar
1 vote
1 answer
8k 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 <...
Studentha's user avatar
0 votes
2 answers
992 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 ...
Cheryl's user avatar
  • 41
3 votes
1 answer
3k 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 ...
SEuser's user avatar
  • 1,847