Method BPM Business Logic Error

I usually do it in custom code.

I’m assuming this is firing because of users working on shipments in the client? If so, a BPM which alters the record they’re working on means the client’s version isn’t the latest any more, so if they change something else and then save, they’ll get an error saying so.

The fix is something like this after your code has updated the records:

using (Erp.Contracts.CustShipSvcContract svc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.CustShipSvcContract>(Db))
{
  Erp.Tablesets.CustShipTableset ds = svc.GetByID(PackNum);
  this.dsHolder.Attach(ds);
}

For future reference, it’s cleaner using this same object to do your updates, too, rather than Db.Validate, and then this follows on naturally. But your existing code will work fine, I think, so that’s just a side note.

2 Likes