Questions tagged [duplicate-management]

For questions regarding duplicate management in your Salesforce Organization.

Filter by
Sorted by
Tagged with
0
votes
1answer
79 views

Use SOQL for cross-field duplicate detection

Is it possible to use SOQL to compare two different fields for duplicate values across records? For example, I need to check them on 2 different records. They would be "duplicates" if Phone from ...
3
votes
1answer
612 views

DuplicateRuleHeader.AllowSave = True not working?

I've currently enabled duplicate rules for the Contact object and specified the "Action on Create" and "Action on Edit" to "Block" incoming duplicate Contact records. When testing with the example ...
2
votes
1answer
95 views

How to access potential duplicate for a record?

I have set up some duplicate rules on account object. These rules have identified potential duplicate accounts. I need to retrieve these potential duplicate accounts in code. Is there a way to do this?...
0
votes
0answers
158 views

Prevent duplicate records declaratively

Am trying to prevent users from creating duplicate records based on Date and Hour combination from Date/Time field.Since we cannot refer date/time field in Matching rule,so I had move this (Date+Hour)...
0
votes
2answers
573 views

Avoid Duplicate Email in Account on Update : Apex

In my Salesforce they are multiple accounts which currently have null value in their Email field. I am trying to figure out a way so that duplicate Email-ids are not entered. My current code is ...
1
vote
1answer
189 views

When merging Master Object, how to make ensure child objects are merged as well? (if possible)

In our Org, we are using Person Accounts; so Joe Smith can have preferences, for example he only wants red cars when renting. There's a duplicate Person, Joseph Smith, who of course only wants red ...
0
votes
1answer
953 views

Avoid Duplicate Id in a List

i have developed one visualforce page and it has multiple Group with Product and Bundle so, once user insert multiple Group with the Same product and same bundle then it's giving me an error as ...
0
votes
2answers
53 views

Can any one please tell me which one is the optimized code for preventing duplicate accounts to be inserted or updated

Which one of the following triggers are optimized for preventing duplicate accounts? trigger AccountDuplicateTrigger on Account (before insert,before update) { List<Account> ...
0
votes
0answers
32 views

Can we merge Lead using Mobile phone and other custom fields

In my org we have lots of duplicate Leads, few of them have same Email others have same MobilePhone and some have same value in custom field. Now when i tried to Find these duplicate Leads; it only ...
1
vote
1answer
139 views

Compile Error: line 5:20 no viable alternative at character '"' at line 5 column 20

I've written the below trigger but get this error: Compile Error: line 5:20 no viable alternative at character '"' at line 5 column 20 What's wrong with my code? How can I fix it? trigger ...
1
vote
1answer
530 views

question about duplicate management and record types

I'm trying around with the new duplicate management functionality and am coming across something that seems counter-intuitive. We have two record types for contact and I set up a duplicate rule so ...
1
vote
3answers
653 views

Merge Accounts based on Account Number

I'm trying to help my users find Duplicates Accounts in Salesforce.. I've Created a nice URL Hack Button that direct the user to the merge Accounts page from the account page it self so I can add to ...
1
vote
1answer
491 views

Duplicate related list records and put it in another related list. Both having same parents

I have a requirement where a related list records needs to be duplicated and put in another related list where both are related to the same parent. Has anyone built it?
1
vote
1answer
70 views

Exception NO_ACTIVE_DUPLICATE_RULE in findDuplicates() call - SOAP API

I'm trying out following code to find duplicate leads based on email ID: SObject[] inputSObjectArray = new SObject[1]; // Instantiate an empty Java SObject SObject searchCriteria = new ...
0
votes
1answer
97 views

Importing using Datloader without creating duplicates [closed]

Is there a way to import into Salesforce without creating Duplicate Accounts or Contacts?
0
votes
1answer
109 views

Config Flow to Create a Record A Using Record B Data and Reevaluate B Records to Associate Record A to Other B Records and Avoid Duplicating Record A

I have configured a complex flow for a data sync using an ingest file and mostly fast elements to update and create records. For context, I am working with a child object, contact role, to drive ...
0
votes
1answer
302 views

Want to restrict the duplicate account

Want to restrict the duplicate account. I tried with the below code. It is working fine on insert and not working on update. When I edit any account record it is giving error as duplicate. Can any ...
4
votes
1answer
287 views

How to keep track of duplicate records across trigger chunks

Let's say I want to check records for duplicates before allowing insertion, updates or undeletes. Records are considered duplicates if they satisfy some equality comparison which involves multiple ...
1
vote
0answers
240 views

SOQL / Apex To Find Duplicates On A Junction Object ( OpportunityContactRole )

I have a rogue trigger that inserts duplicate OpportunityContactRoles when it shouldn't. I can't find the error in my code, but it's not a high-volume problem. It is, however, a daily low-volume ...
2
votes
2answers
580 views

Query Only Duplicated Records

One of my sales reps accidentally uploaded Lead records list twice into the Salesforce prod environment. How can I delete duplicated records? I've already used a query to find all records. The ...
6
votes
2answers
825 views

Why isn't the DuplicateRecordItem trigger bulkified when triggered by the Automated Process user?

The DuplicateRecordItem trigger doesn't seem to be bulkified when triggered by the Automated Process user, and I'm wondering if anybody here has experienced this or might know why. This could be a ...
0
votes
2answers
1k views

Duplicate Management Error in Process Builder?

I have a problem concerning the process builder. When the message "Duplicate Detected" is being displayed, and you press "Save, ignore warning", the users now get the error, that no flow could be ...
1
vote
1answer
615 views

Duplicate error test class

I can't test some rows in my code with duplicates, I try to make duplicate error in different ways but nothing helps. Could you assist? Apex Class: public class AccountExtensionController { public ...
0
votes
0answers
591 views

System.DmlException: Insert failed. DUPLICATES_DETECTED Automatic email help

Apex Class global class EmailToLeadCanford implements Messaging.InboundEmailHandler { /** * Handling Inbound Email * @param Messaging.InboundEmail Email object * @param ...
0
votes
1answer
461 views

Record Insert Delay - a Salesforce “queue” - avoiding Duplicate Leads/Contacts

I have been researching this, and am coming up with very little. I'm coming here before I attempt talking to Salesforce. General I've noticed in the past 2+ months that when inserting a new record, ...
1
vote
0answers
48 views

How to Notify current lead owner when duplicate lead is created

Using Data.com Duplicate Management: Matching and Duplicate rules, I want that when a duplicate lead is triggered: The duplicate lead will NOT be created in SF The original lead will get updated and ...
1
vote
1answer
146 views

Handling duplicates in VisualForce page: standard code does not work

I want to handle duplicates in my custom VF page, by detecting an error after an insert action, presenting the duplicates, and having the user choose one of these or create a duplicate. Salesforce ...
0
votes
2answers
43 views

Eliminate Duplicates

We need to start a data cleansing exercise in our Salesforce org. We have a large number of leads (approx 15 000) and some of those leads already have a contact in Salesforce. I would like to clean ...
1
vote
2answers
100 views

Duplicate Leads from License Management App

We have an App on the AppExchange and for some reason, we get Leads with the same email address and name as duplicate with that Lead Source. Does anybody know why this is, and/or how to prevent this? ...
3
votes
1answer
393 views

Lead Conversion- sometimes merges with existing contact and sometimes doesn't..why?

Sometimes when my users are converting leads, after they click "Convert", it will bring up another screen asking if we want to merge the lead with an existing contact. This is not consistent and ...
1
vote
1answer
263 views

Cannot capture debug logs for Duplicate Management trigger

Does anyone know how to capture debug logs for trigger execution on the new Duplicate Management object DuplicateRecordItem? I've set debug logs for myself, and the execution of the ...
2
votes
1answer
422 views

Triggers on DuplicateRecordSet and DuplicateRecordItem

I'm trying to write an after insert trigger on DuplicateRecordSet and DuplicateRecordItem but the triggers never fire. Does anyone know if it is supported and how it can be done?
1
vote
1answer
221 views

AllorNone inside Before insert Trigger - Duplicate Checking

Can someone explain to me in very simple how the AllorNone works in a before insert trigger? I was under the assumption that AllorNone is default false. I have a before insert trigger that checks for ...
1
vote
3answers
48 views

Custom Object — duplicate record

I have a custom object and we have a lot of records of same name under it, how do i make a list with no duplicate values in list
0
votes
1answer
2k views

Duplicate Rule is preventing update on possible duplicate record(s) even with Allow setting

I have a duplicate rule (via Duplicate Management) on account. If an account looks like a duplicate, I have it set to Alert and Report but Allow the record to be inserted/updated. For some reason, ...
0
votes
1answer
46 views

Triggered send duplication query?

I have setup an EnhancedFTP triggered automation. In the automation studio it looks like this as I'm using 4 filter's to send 4 different variations of an email. My problem is: I only want to ...
2
votes
1answer
959 views

External Id in salesforce

I have an external system that needs to update a record in my org. This system only knows the external id, but the problem is that this external id is not unique, e.g. multiple records might have the ...
1
vote
1answer
150 views

Updating existing record creating new account in salesforce

I have created a Event Staging object and a trigger which creates Events/Event Relations after insert of an Event Staging record. There is a field meetingUID on EventStaging.It is not set set to ...
1
vote
1answer
152 views

On what criteria Merge Accounts auto select the Master Record

Note: From my observation it doesnt check Master Record based on the most number of fields populated. And also not because of the oldest Account record in merge.
-1
votes
2answers
115 views

System.LimitException: Too many DML rows: 10001 because of Duplicate Records [closed]

I have Limitations error. Found out that i am adding Duplicate values to the List. How do i verify that i am not adding Duplicates. public void financialAccountforContactAndAccounts(List<...
0
votes
1answer
798 views

In Apex Trigger distinguish between contact created by lead conversion and new contact

Note: I am a fairly new apex developer so I apologize if this is a basic question. I'm working on an apex trigger which will prevent a contact from being created when there is an existing lead with ...
1
vote
1answer
92 views

Prevent insert of one record while another is inserted

I am currently having a VF page where when a customer pushes a button, a new custom object PRL__c is created for a certain contact and cardType. Before it is inserted, I perform a check: List<...
-1
votes
3answers
556 views

What is the best/easiest way of finding and removing duplicate products?

We have over 350k products on our SalesForce and I have been tasked with identifying and removing duplicates. I'm just looking for some pointers from the Pro's to make this task a bit easier if ...
2
votes
0answers
61 views

Build Duplicate matching rule for long text fields using a custom hashCode

To find duplicates of a custom object I planned using Salesforce.com's native Duplicate Management functionality. I was a bit disappointed to see that matching rules are not able to compare Long text ...
0
votes
0answers
1k views

Can I remove duplicate lines from a report?

Our marketing division wants a report of everyone involved in our conferences. I am able to get this with a report that looks at contacts, opportunities (tied to conferences in a given year), and ...
2
votes
1answer
111 views

Where can I view untruncated Duplicate Error Logs

Duplicate Error Logs as rendered through Data.com Administration > Duplicate Management > Duplicate Error Logs are truncated around 250 characters. Is there anywhere else to view these completely? I ...
1
vote
0answers
89 views

Duplicate Management on existing Duplicate Contact Records

I'm trying to implement Duplicate Management in my Org Salesforce. Everything seems clear but one thing really bothering me. While creating a new duplicate Rule, in the Actions section, "Action on ...
3
votes
2answers
838 views

How to show all the duplicates Account Names?

While running the following query it returns only one duplicate account name but not all the accounts that has the same name.How to get other matching duplicate names? acc = [SELECT Name,count(id),...
1
vote
1answer
239 views

Accepting duplicating records and notifying user about duplicate record

We are using Professional licence for our org and the salesforce system is integrated with a marketing automation tool so that leads will enter to salesforce through the Marketing tool. A single ...