Marty Zigman

Conversations with Marty Zigman

Certified Administrator • ERP • SuiteCloud

Find Duplicate Records Using NetSuite Saved Searches

NetSuite Reporting Technical

Tags: , , ,

I don’t like duplicate records; nor should you.  Yet it is a common challenge in all ERP and CRM systems.  CRM systems, including NetSuite, are notoriously plagued with duplicate records because lead data is often imported from third party sources.

Here is an example of how you may inadvertently create duplicate records. Suppose you are an exhibitor at a trade show and you pickup names electronically as show participants visit your booth.  It is convenient for you to gather those names electronically so you don’t have to enter them into your marketing database manually one-by-one.  To prepare for post-show follow up calls, you upload your visitor list to NetSuite using CSV Import.  Sure enough, some of those participants were previously in NetSuite — you now have a new concern: duplicates!

This brief article will help you learn how to use NetSuite’s Saved Search technology to find which records are duplicates.  A future article will discuss how to get rid of them.

Saved Search to Find Duplicates

The key to using saved search to find any duplicates is the Saved Search Summary capacities.  Here is the general approach:

  1. Start a new Saved Search on the record type in question.
  2. Determine which Result columns you want to organize on to distinguish elements that make you have duplicated records.   Select those columns in the result set and set the Summary Type to “Group”.  For example, you may have a record where the date and location of a record should be unique; but you have two records that have both the same date and location — one record is wrong and it represents a duplicate.
  3. Select the InternalID column (which is always unique) and set the Summary Type to “Count”.
  4. Go to the Criteria tab and select the Summary Type.  Use the type “Count” on the field “InternalID”.   Look for any records where the result is greater than 1.
  5. Optionally, go to the Criteria Standard filter and remove any records that you know are not a concern.
  6. Run the result.  The list of records you see represent duplicates that need to be cleaned up.   You can drill down on the list to inspect further.
See the following screen shot (click to enlarge) to see how to configure a NetSuite Saved Search to find duplicates:

Leave me a comment if you have specific questions on how to find your duplicates.

 

Marty Zigman LinkedIn

Marty Zigman

Holding three official certifications, Marty is widely recognized as a top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc. A former Deloitte & Touche CPA and technology executive with CTO roles, he brings over 35 years of leadership in ERP, CRM, and eCommerce business systems. Contact Marty to engage directly.

BiographyYouTubeLinkedInX (Twitter)

25 thoughts on “Find Duplicate Records Using NetSuite Saved Searches

  1. I am looking for a formula similar to this but with a twist.

    We have what are called billing elements. The billing element contains a requisition #, Date Open and Date Closed. I am trying to find all requisitions with the same requisition number but where the Date Open and Date Closed are different. So, if there are two requisitions with the same # 1234 but one has a Date Open of 1/1/14 and the other has a Date Open of 1/31/14, then I want it in the saved search. Otherwise leave it off the report. I was doing a count of the Date Closed but my issue is sometimes the Date Closed is Null because one of the records has not been updated with the date. Any assistance would be appreciated.

    Reply
  2. I have the Netsuite Search that looks for leads coming in and groups them by email. It then counts “ID” and “Date Created”.

    This tells me if I have a duplicate in the system if either number is greater than 1.

    My problem is I can’t seem to find a way to limit my results to only those who have a “Count of ID/Date” greater than 1.”

    My end goal is to have the search email when a new record is created where the count is at least 2. Thus alerting me that duplicates are being created in the system.

    Reply
  3. I’ve been going through our dups, and the “Not a duplicate” box doesn’t seem effective. When I merge a group of duplicates, the ones marked not a duplicate, continue to appear on the report. Is there a way to make clicking that box effective so that those customer records don’t continue to appear on the report?

    Reply
  4. Hi
    I have actually found the duplicate records by grouping it and making count >1.But I want to show all the duplicates of the group in one report .I don’t want to drill down .Is this possible ?.Thanks

    Priyabrata

    Reply
  5. Hi Marty

    While working on Netsuite I wanted to remove duplicate columns .Is there any idea to do that .Thanks

    Reply
  6. Hi Marty

    Very interesting article thanks!
    I’m having an issue with duplicate record matching. We recently moved from Infusionsoft and transferred all leads through a csv import.
    Now when an “old” lead completes an enquiry form on our website, Netsuite adds ONLINE 3 to the company name. (this number increases after each enquiry – currently on ONLINE 37).
    I realise this isn’t a help desk but I’ve exhausted every avenue I can find, and came across your post which I thought was the solution!

    Reply
  7. I have a saved search but problem is it is returning duplicate record, I want only unique records and also I can’t apply summary on it because I am fetching it using third party integration.

    If I apply summary on search in that case third party connector did not able to fetch the saved search. Please Help!!!

    Thanks.

    Reply
  8. Hello Marty,
    I’m trying to build a search that will identify duplicates in Item Name Records, The system don’t allow us to create actual duplicates but there are many item records in my system that say
    Brightway Vs. Brighway, or Item 24DS Vs Item 24 DS

    So I need something that would identify similar characters in a row? I’m not sure what script or algorithm to build in.

    Reply
  9. 10 years later- this post finds its way in Google and saved me hours of work. At least the third time I’ve stumbled on your great blog in the last month.
    Thank you. You rock.

    Reply
  10. Hi Marty, I too came across this and it saved me hours. However, I have one use case that I can’t seem to get this to work for.
    I need to identify potential duplicate vendor payments based on vendor name and payment amount. You can’t group the amount field and neither sum nor maximum seem to work. Any ideas?
    Many thanks,
    Simon

    Reply
  11. Hi Marty,

    Thanks for your response. I failed to mention that to_char also returns the error regarding grouping (The result field Formula (Text) cannot be grouped)- it’s almost as though NetSuite knows I’m trying to bluff it. Thanks anyway and if you happen to come across anything else that might assist, please let me know. Many thanks, Simon

    Reply
  12. In case this helps anyone else, I was having trouble with getting any results to return. Then I realized that Step #2 is very important and you can only GROUP by fields that may be duplicated.

    So don’t add other fields like Document Number that will make the result set unique even if the value you are trying to find duplicates on is unique.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *