Error: Staff or client cannot be deleted because it is associated with historical data
Show all hidden content
Scenario
You may get the following error message when you try to delete a staff or client with history, data, or references to the client in the database.
Error message
The [client or staff] cannot be deleted because it is associated with historical data.
Cause
Practice CS lets you delete a client or staff only if there is no history or data of any type, or references to the client in the database. Historical data can include:
- Receipts and adjustments
- Service charges
- Invoices
- Time and expense transactions
- References to the client or staff in on-screen filters, as well as report filters and report options.
- Projects, completed and open (applies only if you have the Project Management Module)
- Client interactions including notes, phone calls, and phone messages (applies only if you have the Client Management Module)
- Scheduled items including scheduled phone calls, and to do's (applies only if you have the Staff Management Module)
Solution 1: Set the client or staff to Inactive (Recommended)
The recommended method for inactive clients or staff is to set the
Status
to Inactive
, enter a Left Date
, then change the ID
to one that will cause it to sort to the bottom of the list. You can also create and use filters in lists, drop-downs, and reports that exclude inactive client or staff so they won't appear on screens or reports.Solution 2: Delete all data in the client or staff
important
It's not recommended to delete clients or staff and their related information from the database because:
- It is a lengthy process to remove all traces of historical data.
- Firm balances (AR, WIP) and activity totals (production, billings, receipts) will change for dated periods.
- Activity totals (production, billings) will change for all staff members associated with the deleted items for their dated periods.
If you wish to continue, use
View Details
to find which types of historical data exist. Then follow the steps below to find and remove all data associated with the client or staff.Delete all service charges
- Print a Service Charge Journal filtered for the client or staff.
- Starting with the newest service charge, go toActions, thenAssess Service Chargesand enter theThroughdate equal to the newest date on the Journal.
- Find the service charge for this client and select the checkbox.
- Right-click and chooseUnpost Selected.
- Repeat steps 3 and 4 for each date in reverse date order.
Delete all receipts and adjustments
- Go toActions, thenReceipt & Adjustment Entry.
- If the Approve and Post process for Receipt & Adjustment Entry is on:
- Open theReviewtab.
- Clear theUnapproved onlyandUnposted onlycheckboxes.
- Filter for the client or staff, then unpost and unapprove all control sheets on the screen.
- Go to theOverviewtab.
- Filter for the client or staff.
- Mark theControl Datecheckbox on the first transaction. Scroll to the last transaction and, while pressing the SHIFT key, select theControl Datecheckbox in the last transaction. This will highlight every transaction.
- Right-click theControl Datecheckbox on any transaction and chooseDelete Entry.
Delete all invoices
- Go toActions, thenBilling.
- Open theReviewtab.
- If the Approve and Post process for Billing is on, clear theUnapproved onlyandUnposted onlycheckboxes.
- Filter for the client or staff.
- Right-click and chooseSelect All.
- Right-click and chooseDelete Selected.
Delete all time and expense transactions
- Go toActions, thenTime & Expense Entry.
- If the Approve and Post process for Time & Expense Entry is on:
- Open theReviewtab.
- Clear theUnapproved onlyandUnposted onlycheckboxes.
- Filter for the client or staff, then unpost and unapprove all timesheets on the screen.
- Go to theOverviewtab.
- Filter for the client or staff.
- Select the first transaction. Scroll to the last transaction and, while pressing the SHIFT key, select the last transaction. This will highlight every transaction.
- Right-click and chooseDelete Entry.
Delete all schedule items (if licensed for Staff Management)
- Go toActions, thenManage Staff.
- Open theSchedule Itemstab
- SelectCustom Date Rangethen enter1/1/1980in the first date and12/31/2029in the second date.
- Clear theOpen onlyandUnassigned onlycheckboxes.
- Filter for the staff.
- Right-click each schedule item and selectDelete.
Delete all projects (if licensed for Project Management)
- Go toActions, thenManage Projects.
- Filter for the client or staff.
- Clear theOpen Projects onlycheckbox.
- Select the first project. Scroll to the end of the list and, while pressing the SHIFT key, select the last project. This will highlight every project.
- Right-click in the highlighted area and chooseDelete Selected Projects.
Delete all client interactions (if licensed for Client Management)
- Go toActions, thenManage Clients.
- Open theInteractionstab and filter for the client.
- Clear theShow last 30 days onlycheckbox.
- Select the first interaction. Scroll to the end of the list and, while pressing the SHIFT key, select the last interaction. This will highlight every interaction.
- Right-click in the highlighted area and selectDelete Selected Interactions.