Pakcing slip in Purchase order

While posting of packing slip in purchase order system throwing below error

“Cannot create a record in Dimension history for documents (InvenReportDimHistory). Type: None, The record already exist”
can anyone help me out how to resolve the problem.

I believe it is to do with the way you have got your data into the database and the relationships are not set, you would need a developer to look at it. This has been posted a few times before - I presume it is a test database you have made. No setup for this, just corrupts or poor data!