production order ended

does anybody know why when i am trying to end a production order and get these error messages:

Inventory dimension Warehouse is a primary input/output dimension and must consequently be specified.

Inventory dimension Batch number is a primary input/output dimension and must consequently be specified.

any help would be appreciated. TIA

The dimension group is set to ensure these details are captured.

There will be a process that is happening during the ending of production that is probably trying to post labour or consumption and the details are only part specified. Either that or you have altered the dimension group on an item record from its original setting.