Questions tagged [duplicate-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
77 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
0 votes
0 answers
22 views

Dupliacte Appointment Numbers while testing

I have a problem with duplicated Service Appointment numbers. Context: I have a function which return time slots for service appointment: public static Set<Date> getSlotsForAppointment(String ...
zgooner's user avatar
0 votes
0 answers
68 views

How to record and append a text field of "related contact IDs" from a duplicate check flow?

I am building a "Check for duplicates" flow and want to capture the contact IDs of the contacts that are identified as duplicates in a text field on the contact object. I am having trouble ...
republicofrad's user avatar
1 vote
3 answers
1k 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
0 answers
25 views

Deduplicate a concatened field in SQL activity in Marketing Cloud

I would like to deduplicate the rows in my data extension with the same records on the concatenated field named "JobIDConcat" so I used the following code on an SQL activity : Select S....
Lamia Hafid's user avatar
0 votes
2 answers
634 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
503 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
43 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 ...
kuml2's user avatar
  • 303
0 votes
1 answer
37 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
245 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
33 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
53 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
3k 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
160 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
813 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
170 views

Create Batch Apex to update data with no duplicate phone and account

Iam still new at salesforce, I am creating a batch for the requirement in which if contact has duplicates based on account and mobile phone than field named Eksternal ID should not set the value. but ...
Mustika Farma's user avatar
1 vote
0 answers
546 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
97 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
877 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
8k 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
359 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
321 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
210 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
861 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
257 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
89 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
7k 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
102 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
39 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
253 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
864 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
0 votes
0 answers
43 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 ...
Akouayri Hamza's user avatar
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
645 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
525 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
32 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
303 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,392
1 vote
2 answers
341 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
730 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
0 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
6k 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
873 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,805
0 votes
1 answer
564 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
561 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,349
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