Merge failure error

Hi

I had a merge fail with the following error message that I have never seen before:

Merge (Kept Constituent 7273802, Delete Constituent 7403090) failed : Error 50000, Severity 11, State 2, Procedure AP_DELETE_ACCOUNT_DATA, Line 165, The selected account cannot be deleted because it is being referenced elsewhere in the system.

Does anyone know how to resolve this so the accounts can be merged? The delete account was a test account created for one transaction that was refunded so I can't figure out where else in the system it would be referenced.

Thanks
Jess Levy
San Francisco Opera
415-551-6319

Parents
  • I took a look at the procedure that can throw that error (AP_DELETE_ACCOUNT_DATA), and I'm not 100% on this but it looks like what it does is find if there are open pledges, orders, and invoices on ANY customer that also owns the card that its trying to delete. So if you are merging a test account, is it possible that you used a credit card for that account that also exists elsewhere in the system, on a different customer that has an open pledge, invoice, or unpaid order?

  • Just yesterday I figured out that the card on the test account is also attached to a payment schedule on an order in the real account so I think that is the issue. The other thing I found though was that the card cannot be removed from the test account. I get the same error that the card cannot be deleted because it is being referenced somewhere else in the system. Does anyone know a way around this or am stuck waiting until the order is fully paid before I can merge these accounts?

    Thanks
    Jess

Reply
  • Just yesterday I figured out that the card on the test account is also attached to a payment schedule on an order in the real account so I think that is the issue. The other thing I found though was that the card cannot be removed from the test account. I get the same error that the card cannot be deleted because it is being referenced somewhere else in the system. Does anyone know a way around this or am stuck waiting until the order is fully paid before I can merge these accounts?

    Thanks
    Jess

Children