While doing MIGO 321 moving quality to unresticted stock i am getting error "Inconsistency between SAP MM Movement type and Costing for material error" . Msg no. 00398.

The stock was sent to Quality while doing MIGO 101 in 2019. Now in Dec 2022 we want to move it from quality to unrestricted.