Dimension error durring inventory closing

I am having the below error while closing inventory.

‘Dimension Segment must be specified for account 603110’. I have this dimension setup as mandatory on the ledger account.

i want to know why the system is giving this error while closing. is the system making any ledger entry ?

Yes. depending on the costing method chosen.