Getting following Error during Inventory Closing and Recalculation in Ax 2012.
Error Details:
"You can't have unallocated cost on a planning formula"
\Classes\InventCostItemDim.addFormulaKeyAdjustment()
Error Details:
"You can't have unallocated cost on a planning formula"
Solution : This error may come many ways.
First check the item in production type is formula or not, if not, change production type to formula.
Then you can debug following method in class InventCostItemDim
To get any error due to rounding you can check ledgervouchertransobject class in checkrounding method.
Then you can correct rounding issue.
If still error exist then find the recid by debugging on error editing message and find that record in inventtrans table. If in inventtrans table valueopen field if its yes then select no this option you can use only if there is no other solution you found.