Error when trying to delete a part

I am receiving the following error when attempting to delete a part. I don’t have any BPMs running, and there is nothing in the customization stopping it.

Any ideas on what may be causing this error?


## System Information ##
==================


Form Name: Part Maintenance
Customization Name: PartEntryCust
Menu ID: MRMT1010
Software Version: 10.2.700.33

============

Server Side Exception

BPM runtime caught an unexpected exception of 'TargetException' type.
See more info in the Inner Exception section of Exception Details.

Exception caught in: Epicor.ServiceModel

## Error Detail ##
============

##!Description:##!  BPM runtime caught an unexpected exception of 'TargetException' type.
See more info in the Inner Exception section of Exception Details.
##!Program:##!  CommonLanguageRuntimeLibrary
##!Method:##!  CheckConsistency
##!Original Exception Type:##!  TargetException
##!Framework Method:##!  A001_CustomCodeAction
##!Framework Line Number:##!  0
##!Framework Column Number:##!  0
##!Framework Source:##!  A001_CustomCodeAction at offset 833 in file:line:column <filename unknown>:0:0


## Client Stack Trace ##
==================
   at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
   at Erp.Proxy.BO.PartImpl.Update(PartDataSet ds)
   at Erp.Adapters.PartAdapter.OnDelete()
   at Ice.Lib.Framework.EpiBaseAdapter.Delete(DataRow dr)
   at Erp.UI.App.PartEntry.PartTransaction.AdapterDelete(DataRow dr)
   at Erp.UI.App.PartEntry.PartTransaction.Delete()
   at Erp.UI.App.PartEntry.PartForm.OnClickDelete()
   at Ice.Lib.Framework.EpiBaseForm.handleToolClickInternal(String tKey, ToolClickEventArgs ea)
   at Ice.Lib.Framework.EpiBaseForm.handleToolClick(String tKey, ToolClickEventArgs ea)

## Inner Exception ##
===============
Non-static method requires a target.

##  ##



Let’s see the code in the customization.

Well, it turns out it was a BPM causing the error after all. Missed it on the first round. Disabled the BPM and was able to delete the parts.