When a sales order is saved for a product whose BOM type is MTO i get the error "Terminated" on screen when completing the Sales Order. This error does not occur if my ordered quantity is less than 5.
Also this error does not occur if my BOM Type is Current active for the product. But when i run the MRP i get the error sayin not valid BOM. I am currently using adempiere 3.7.0 LTS.
Please find the log below which contains the error.
-----------> Msg.translate: NOT found: Make-To-Order [44]
-----------> MPPOrder.saveFinish: afterSave [44]
org.eevolution.exceptions.BOMExpiredException: Not Valid BOM & Formula:10000001
- Date:2011-09-02 00:00:00.0
at org.eevolution.model.MPPOrder.explotion(MPPOrder.java:1103)
at org.eevolution.model.MPPOrder.afterSave(MPPOrder.java:477)
at org.compiere.model.PO.saveFinish(PO.java:2190)
at org.compiere.model.PO.saveNew(PO.java:2751)
at org.compiere.model.PO.save(PO.java:2076)
at org.compiere.model.PO.saveEx(PO.java:2160)
at org.eevolution.model.MPPMRP.createMO(MPPMRP.java:229)
at org.eevolution.model.MPPMRP.createMOMakeTo(MPPMRP.java:136)
at org.eevolution.model.MPPMRP.C_OrderLine(MPPMRP.java:614)
at org.eevolution.model.MPPMRP.C_Order(MPPMRP.java:566)
at org.eevolution.model.LiberoValidator.modelChange(LiberoValidator.java
:141)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:390)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:324)
at org.compiere.model.PO.saveFinish(PO.java:2201)
at org.compiere.model.PO.saveUpdate(PO.java:2519)
at org.compiere.model.PO.save(PO.java:2095)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:917)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:785)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:274)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:802)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
===========> ModelValidationEngine.fireModelChange: Not Valid BOM & Formula:1000
0001 - Date:2011-09-02 00:00:00.0 [44]
org.adempiere.exceptions.AdempiereException: Not Valid BOM & Formula:10000001 -
Date:2011-09-02 00:00:00.0
at org.compiere.model.PO.saveEx(PO.java:2167)
at org.eevolution.model.MPPMRP.createMO(MPPMRP.java:229)
at org.eevolution.model.MPPMRP.createMOMakeTo(MPPMRP.java:136)
at org.eevolution.model.MPPMRP.C_OrderLine(MPPMRP.java:614)
at org.eevolution.model.MPPMRP.C_Order(MPPMRP.java:566)
at org.eevolution.model.LiberoValidator.modelChange(LiberoValidator.java
:141)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:390)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:324)
at org.compiere.model.PO.saveFinish(PO.java:2201)
at org.compiere.model.PO.saveUpdate(PO.java:2519)
at org.compiere.model.PO.save(PO.java:2095)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:917)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:785)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:274)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:802)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
===========> MOrder.saveError: Error - Not Valid BOM & Formula:10000001 - Date:2
011-09-02 00:00:00.0 [44]
-----------> MWFActivity.run: MWFNode[185-(DocPrepare),Action=DocumentAction=PR]
[44]
java.lang.Exception: SaveError
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:930)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:785)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:274)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:802)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
at org.adempiere.util.ProcessUtil.startWorkFlow(ProcessUtil.java:301)
at org.compiere.apps.ProcessCtl.startWorkflow(ProcessCtl.java:574)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:369)
-----------> Msg.translate: NOT found: Make-To-Order [44]
-----------> MPPOrder.saveFinish: afterSave [44]
org.eevolution.exceptions.BOMExpiredException: Not Valid BOM & Formula:10000001
- Date:2011-09-02 00:00:00.0
at org.eevolution.model.MPPOrder.explotion(MPPOrder.java:1103)
at org.eevolution.model.MPPOrder.afterSave(MPPOrder.java:477)
at org.compiere.model.PO.saveFinish(PO.java:2190)
at org.compiere.model.PO.saveNew(PO.java:2751)
at org.compiere.model.PO.save(PO.java:2076)
at org.compiere.model.PO.saveEx(PO.java:2160)
at org.eevolution.model.MPPMRP.createMO(MPPMRP.java:229)
at org.eevolution.model.MPPMRP.createMOMakeTo(MPPMRP.java:136)
at org.eevolution.model.MPPMRP.C_OrderLine(MPPMRP.java:614)
at org.eevolution.model.MPPMRP.C_Order(MPPMRP.java:566)
at org.eevolution.model.LiberoValidator.modelChange(LiberoValidator.java
:141)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:390)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:324)
at org.compiere.model.PO.saveFinish(PO.java:2201)
at org.compiere.model.PO.saveUpdate(PO.java:2519)
at org.compiere.model.PO.save(PO.java:2095)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:837)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:274)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:802)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
===========> ModelValidationEngine.fireModelChange: Not Valid BOM & Formula:1000
0001 - Date:2011-09-02 00:00:00.0 [44]
org.adempiere.exceptions.AdempiereException: Not Valid BOM & Formula:10000001 -
Date:2011-09-02 00:00:00.0
at org.compiere.model.PO.saveEx(PO.java:2167)
at org.eevolution.model.MPPMRP.createMO(MPPMRP.java:229)
at org.eevolution.model.MPPMRP.createMOMakeTo(MPPMRP.java:136)
at org.eevolution.model.MPPMRP.C_OrderLine(MPPMRP.java:614)
at org.eevolution.model.MPPMRP.C_Order(MPPMRP.java:566)
at org.eevolution.model.LiberoValidator.modelChange(LiberoValidator.java
:141)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:390)
at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidat
ionEngine.java:324)
at org.compiere.model.PO.saveFinish(PO.java:2201)
at org.compiere.model.PO.saveUpdate(PO.java:2519)
at org.compiere.model.PO.save(PO.java:2095)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:837)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:274)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:802)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
===========> MOrder.saveError: Error - Not Valid BOM & Formula:10000001 - Date:2
011-09-02 00:00:00.0 [44]
Hi Phillip!
We see this error when there is a problem with the either the bom or the workflow on one of the products on the SO: check the the valid date ranges on each and ensure that they are behind the SO/MO date. Also, check that the BOM and WF are valid.
tks!
John