Hi,
I am getting “Function InventCostTransCostList::newPlannedCostList has been used incorrectly” error while posting the production order.someone suggest me the solution to resolve this error.
Please see the screenshots for your reference.
Hi,
I am getting “Function InventCostTransCostList::newPlannedCostList has been used incorrectly” error while posting the production order.someone suggest me the solution to resolve this error.
Please see the screenshots for your reference.
What is your AX versoin? Have you tried searching in LCS for any related bugs?
Hi,
Ax 2012 R2
I have searched but not found any solution.
Are you getting this error only one production order? If so, it could also be a data issue, have a developer to debug.
Hi,
I am getting this for the only one production order.
I have debugged the method InventCostTransCostList ::newPlannedCostList().
Getting error in the below line of the newPlannedCostList()
(_inventTrans.DatePhysical < InventStdCostConvItem::itemConversionDate(_inventTrans.ItemId) && _inventTrans.Qty != 0) ) is not satified.
inventStdCostConv.TransitionEndDate field is return empty from itemConversionDate() of the “InventStdCostConvItem” table.
InventStdCostConvItem table will only have the records for that item if you are trying to do the standard cost conversion for that item. I think it is not the problem in your case.
I would suspect first if in that method. check why all the quantities are zero in your case .
if (!costTrans.allQtyFieldsZero())
Also compare it with a production order that is working without any issue.
Hi,
can you elaborate this,
I would suspect first if in that method. check why all the quantities are zero in your case .
if (!costTrans.allQtyFieldsZero())
Also compare it with a production order that is working without any issue.
Check why it is not going into that if condition in your case.
Create a similar production order in TEST and debug - to know the difference of code flow.
Hi,
I have debugged the above methods .
inventCostTrans = InventCostTrans::find(inventCostTrans.TransDate,
inventCostTrans.ItemId,
inventCostTrans.FinancialInventDimId,
inventCostTrans.InventTransId,
inventCostTrans.Voucher,
inventCostTrans.CostTransState,
inventCostTrans.CostTransRefType,
inventCostTrans.CostTransType,
_forupdate);
I got voucher while debugging but that voucher is not found in the InventCostTrans,so updated the Voucher to the negative qty record.now production order is posted successfully.Is it Correct.
You shouldn’t be updating it, unless there is a data issue.
To confirm whether it is a data issue, try creating a similar production order and do the testing.
Hi Kranthi,
Thanks for your reply
I will create new production order and update you soon.
If the overall cost of the production order is negative it will fail, you cannot make something that costs less than nothing (so updated the Voucher to the negative qty record)
Hi,
I am not changed any qty in negative qty voucher,I just updated the debugged voucher to the “inventcosttrans” table.
Hi,
Due to some problem unable to create the new production order.
I have a line for the issued production order.when I post the production order getting above error.suggest me solution. please see the below screenshots for your reference.
If you are using the same production order, then you may get the same issue. Try creating a new one.
Why are using the negative quantity in the journal?
You cannot make -50
Hi,
I will try to create the new production order.
To reverse the qty to inventory, we have given the negative qty to good qty field.
So you are posting a RAF journal where you have posted 50 and now you want to remove it and you are creating a negative RAF journal to do this? This is not linked to any BOM consumption? Or are you running the RAF status again on the order and defining the good quantity? If so what are you doing to teh other elements of route and pick, and how are these originally being consumed?
Hi,
I am trying to negative receive 50 qty off an order that were received in incorrectly. When posting the journal we are getting above error.
So you are posting a RAF journal where you have posted 50 and now you want to remove it and you are creating a negative RAF journal to do this?
Yes…Your corrrect
So you are manually creating the journal, have you tried running the RAF from the production order itself and controlling what it is doing to the components?