InventItemLocation Error

What would cause the error below when trying to view a Packing Slip of a Purchase order? We have multiple companies on our AX2009 environment but only one is receiving this message.

Function InventItemLocation::find was called with an illegal value.

I think the error means that the method was called with empty inventory dimension ID. So it’s likely a data issue. If you don’t know what’s going on, find out the call stack leading to the error. Than you (or your developers) can analyze where the value is coming from.