Inventory closing adjustment

Hello everyone,
Client has done the inventory closing, but there was an error mentioned with an item number “Negative cost amounts for receipts is not allowed”. When we traced the origin of this error, this item is a purchase item used in the BOM line for production order. This production order has the “Ended” status. The transaction of this purchase item is found to be positive cost amount after the consumption in the production order.
So we cancelled the closing process and the recalculation. It reverted back to its original cost amount in the transactions. So it’s the automatic adjustment of this item in the recalculation process changes the cost amount to positive.
Now how do we adjust the cost amount to come back to negative for this particular item transaction after the recalculation?

Screenshot: As seen in this screenshot, the sold cost amount should be in negative, but after recalculation, it changed to positive. So we need to know how to bring the cost amount to negative after recalculation of this item. When we tried with Adjustment → Inventory under Closing and adjustment, it doesn’t accept negative values.

Any help would be appreciated.

What is the Inventory Model for the product? In Released products, is there a cost either in the Manage costs > Setup > Item price or in the Inventory Fast tab?

Inventory model group is Weighted average date. Yes, there is an active price set under “Price”.

By the way, this is AX 2009.

What was the status of the Inventory close? Did it complete? Are you sure the error message was an error and not a warning?

Next step is to look at the history of transactions for this item. Verify that there was never a transaction with a negative price. Returns must be done with a negative amount, but positive price. If you do a Google search with “ax2009 Negative cost amounts for receipts is not allowed”, several blog posts come up.

Here is one from Microsoft: "A negative amount is not allowed" error message when you try to post a revised invoice from a credit note in Microsoft Dynamics AX 2009 SP1 - Microsoft Support

Closing didn’t complete due to the error on this one particular item. Thanks Gabor for your suggestions. I will definitely take a look at the link that you’ve shared.