Skip to main content
Answer

Deleting duplicate customer

  • February 7, 2022
  • 4 replies
  • 333 views

I have entered a customer that was already in our System  I tried to delete it and got an error message that only in planning or canceled customers can be deleted.  I changed the status to canceled but i still get the same message when trying to delete.  Can anyone help with how to delete it?

Best answer by vkumar

Hi @DTanguilig 

As mentioned above, trace log will help you identify the entities to which the customer may be linked. 

Its NOT recommended to delete such records at database level as it leads to data integrity issues. 

Here is how the Trace log looks with detailed reference of Customer to entities where it has been used.

Regards,

4 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • February 7, 2022

Hi @DTanguilig 

Can you please share the trace for the error? 
 

An alternate way to delete the record is to run the dbscript to delete the Customer record.

DBScript

delete from BAccount where AcctCD='CustomerName'


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • February 7, 2022

Hi @DTanguilig  Can you please also, let us know that Customers duplicated based on the what criteria.

is this Considered by Email ID?  

Do you have any Sales Orders and attached payments to that Customer, that you are deleting?

 

If any transactions are created with that Customer, you can not delete them. You can just Inactivate that customer.


Forum|alt.badge.img
  • Varsity I
  • February 7, 2022

@DTanguilig , just to add, if the customer has a historical transaction you will not be able to delete the account. You can update the status to inactive but since the customer has history you cannot delete them. This could be the issue but send us the stack trace and we can confirm. 

 

Thanks,

Eric


Forum|alt.badge.img+12
  • Acumatica Support Team
  • Answer
  • February 8, 2022

Hi @DTanguilig 

As mentioned above, trace log will help you identify the entities to which the customer may be linked. 

Its NOT recommended to delete such records at database level as it leads to data integrity issues. 

Here is how the Trace log looks with detailed reference of Customer to entities where it has been used.

Regards,