Solution for above error.
1. Go to Inventory management -->Setup-->Posting -->Posting - Validate the main account updated for the item/category or etc...
2.Go to General ledger -->Setup-->Ledger-->Click Account structure, check required dimension is available.. ex.Dept,Business unit, cost center ..etc.