Questions tagged [duplicate-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
49 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
23 views

When I call PackageLicense SOQL query using rest API, I am getting duplicate records with same "NamespacePrefix" value in the API response

SOQL query - SELECT AllowedLicenses, CreatedDate, ExpirationDate, Id, IsProvisioned, LastModifiedDate, NamespacePrefix, Status, SystemModstamp, UsedLicenses FROM PackageLicense When I call the above ...
0
votes
0answers
19 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 ...
2
votes
1answer
44 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 ...
0
votes
1answer
302 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 ...
-4
votes
2answers
254 views

JSON array into map with duplicate values [closed]

Final result when i tried the below code.
0
votes
1answer
50 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 ...
0
votes
1answer
40 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, ...
0
votes
0answers
27 views

Insert EventRelation failed due to DUPLICATE_VALUE error

I trying to insert a EventRelation record as following: // Suppose that I already had a Contact cont. // Create an event Event newEvent = new Event(); newEvent.WhatId = null; // Actually null newEvent....
0
votes
1answer
396 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
34 views

Duplicate Contact Role when I do Insert on Opportunity?

Can someone help find what's wrong with my code? when I create an Opportunity off of Contact inside the opportunity I get two records inserted in Contact Role I've added debug logs and I don't see any ...
2
votes
0answers
35 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: ...
1
vote
0answers
130 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. ...
0
votes
1answer
333 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
234 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
40 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
725 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
128 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
43 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
366 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
22 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
122 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
167 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
372 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 ...
5
votes
1answer
529 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
1k 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
2k 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
504 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 ...
3
votes
1answer
2k 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
258 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) { ...
2
votes
1answer
336 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
313 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
1k 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
152 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
761 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 ...