Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [duplicate-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 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
70 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
45 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
31 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
147 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
132 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
386 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
3k 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
723 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
52 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
  • 343
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
438 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
44 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
69 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
210 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
684 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
113 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
  • 105
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
2 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
  • 105
0 votes
1 answer
456 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
515 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
262 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
338 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
93 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
10k 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
151 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
40 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
278 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
982 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
3k 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
711 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
546 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
  • 350
0 votes
0 answers
39 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
359 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,440
1 vote
2 answers
349 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
819 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
7k 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
972 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,855
0 votes
1 answer
585 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) { ...
user avatar
4 votes
1 answer
677 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 ...
itsmebasti's user avatar
  • 6,457
0 votes
1 answer
1k 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 ...
Niveth Kumar's user avatar