Questions tagged [duplicate-value]
The duplicate-value tag has no usage guidance.
45
questions
0
votes
1
answer
20
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){
...
0
votes
0
answers
17
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 ...
0
votes
1
answer
89
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 ...
0
votes
0
answers
34
views
Restrict duplicate entry in Journey Builder when there is a multiple order updates in trigger
We have scenario that, we are using Trigger Data extension in journey builder as entry source. Was planned to avoid duplicates. further we came to know that there multiple orders so using journey ...
0
votes
1
answer
49
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.
...
-3
votes
1
answer
50
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 ...
1
vote
0
answers
42
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 ...
1
vote
0
answers
171
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,...
1
vote
1
answer
55
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 ...
0
votes
1
answer
261
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 ...
1
vote
4
answers
2k
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
1
answer
95
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
0
answers
25
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
0
answers
52
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
1
answer
92
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
1
answer
637
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
2
answers
368
views
JSON array into map with duplicate values [closed]
Final result when i tried the below code.
0
votes
1
answer
71
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
1
answer
53
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
1
answer
2k
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
0
answers
30
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 ...
2
votes
0
answers
36
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
0
answers
187
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
1
answer
478
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
1
answer
667
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
0
answers
42
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
2
answers
1k
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
1
answer
209
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
1
answer
51
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
2
answers
420
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
0
answers
25
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
0
answers
166
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
2
answers
220
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
1
answer
519
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
1
answer
1k
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
1
answer
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 ...
1
vote
1
answer
3k
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
2
answers
645
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
1
answer
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
1
answer
377
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)
{
...
4
votes
1
answer
412
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
1
answer
504
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
2
answers
2k
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
2
answers
182
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
3
answers
903
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 ...