IDEMPIERE-2771 Improve 2pack tracing for errors / Found a failing 2Pack that is marked as successful because the foreign key validation is done at commit time and that is out of the check of PackInProcess - fix adding specific commit (1006169)
This commit is contained in:
parent
a952e89522
commit
fa8aa2345d
|
@ -143,6 +143,7 @@ public class PackInProcess extends SvrProcess {
|
|||
adPackageImp.setDateProcessed(new Timestamp(System.currentTimeMillis()));
|
||||
adPackageImp.setP_Msg(msg);
|
||||
adPackageImp.saveEx();
|
||||
commitEx(); // we need to commit to capture HERE when the deferred validation of foreign keys can fail
|
||||
} catch (Exception e) {
|
||||
adPackageImp.setP_Msg(e.getLocalizedMessage());
|
||||
packIn.getNotifier().addStatusLine(e.getLocalizedMessage());
|
||||
|
|
Loading…
Reference in New Issue