InvTransferSvcContract.CommitTransfer fails when transferring the same part one after the other


(Brad Fraser) #1

I have an Updatable Dashboard that uses an Advanced BPM to trigger an Inventory Transfer.

Part 123 is updated, and transferred.
Part 123 is updated (separate row/material card), and fails on CommitTransfer. The PreCommit is the last step completed.

Alternatives such as these work:
Part 123 is updated, and transferred.
Part 456 is updated, and transferred.

and

Part 123 is updated, and transferred.
Save.
Part 123 is updated (separate row, material card), and transferred.

Any help would be appreciated.


(Brad Fraser) #2

Business Layer Exception

Error creating PartTran. Please retry.

Exception caught in: Epicor.ServiceModel

Error Detail

Description: Error creating PartTran. Please retry.
Program: Erp.Services.BO.InvTransfer.dll
Method: doPartTran
Line Number: 1482
Column Number: 33
Table: PartTran
Server Trace Stack: at Erp.Services.BO.InvTransferSvc.doPartTran(String ipPartIUM, Boolean ipPartTrackDimension, String ipPCID, String& partTranPK) in C:_Releases\ERP\UD10.1.600.26\Source\Server\Services\BO\InvTransfer\InvTransfer.cs:line 1482
at Erp.Services.BO.InvTransferSvc.CommitTransfer(InvTransferTableset& ds, String& LegalNumberMessage, String& partTranPKs) in C:_Releases\ERP\UD10.1.600.26\Source\Server\Services\BO\InvTransfer\InvTransfer.cs:line 1193
at Erp.Services.BO.InvTransferSvcFacade.CommitTransfer(InvTransferTableset& ds, String& LegalNumberMessage, String& partTranPKs) in C:_Releases\ERP\UD10.1.600.26\Source\Server\Services\BO\InvTransfer\InvTransferSvcFacade.cs:line 162
at Epicor.Customization.Bpm.Ubaq84A2DE00F16B4DF49D364961CCF18569.UpdateBaseDirective_Transfer_on_Update_D9D461FFB07D49CE9B8EAC6661737446.A001_CustomCodeAction()


(Chris Conn) #3

Didn’t we fix this one by changing the scope of your InvTransfer BO to inside the tt loop?


(Brad Fraser) #4

That fixed it so we can do multiple row updates without object problems. Unfortunately it is not fixing the scenario described above.