web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

We're wanting to delete inactive customers

(0) ShareShare
ReportReport
Posted on by 2
We have over 3000 customers that haven't ordered from our company since prior to 2016. We would like to delete these customers and their history. Can anyone tell me the steps to do so? I've tried Remove Transaction History and Remove Sales History, but the majority are still getting the 'Transactions exist for this customer. The customer record cannot be deleted.' error message. I know I can use the mass delete screen, but that would be a lot for 3000 customers. How do I delete all the history so I can use the delete button on the customer card? (Plus, we want to eliminate that history for the sake of our hard drives)
Thank you!
Amy
Categories:
I have the same question (0)
  • Tim Wappat Profile Picture
    5,711 on at
    This basically is a housekeeping exercise followed by delete. 
     
    You have to make sure there is nothing open for the customer you want to delete otherwise you are going to get the error. 
    Also you can delete history for each of the customers in question, if you no longer need it (legal financial retention periods).
     
    So first step is to void or delete any transactions for the customers in question that are in the sales work tables if you are using sop. 
    Also make certain there are no RM transactions open for them either. 
     
    Then you can record a macro and "mail merge" in the customer numbers you want to delete, to automate step through each customer deleting them. 
    However the macro will fall over if there is any reason the customer can't be deleted, that becomes a PIA, so checking everything is in good condition first is a good idea. 
     
    Macros can be used to delete the historical data for these customers too. This kind of task makes me nervous and I would run it on a copy of the test company first then run on production once everyone is happy its done what was required. 
     
    There is also a good product called company archive that is useful for trimming down data in GP, this automates a lot of these processes. 
    "Company Data Archive (CDA) is an ideal way to move historical information from your ‘live’ company to an ‘archive’ company. Archiving your data will reduce the size of your live company database and improve system performance while posting, running reports, performing file maintenance, and day-to-day use of Dynamics GP."
     
    Tim.
  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
    For 3000 records need to delete you would probably like to change their status to inactive , for this manually needs to do certain steps as mentioned by Tim Wappat.
    Below ML link also explain about these steps.
     
     
    Once inactive you can easily delete inactive customer from with the help of SQL script calling taDeleteCustomerRcd.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans