The search not working in this situation makes no sense to me, but I'm glad you found it. I will definately file that away for future reference.
However I would be concerned about your database. When you initially setup a new item , the default item location record (IMINVLOC) gets created automatically. Also, the item's primary IMINVLOC record cannto be deleted in Macola.
So in order for you to get this error on the file validation report, one of 3 things had to happen:
1) Someone deleted the location record from the IMLOCFIL.
2) Someone changed the Item master record to have a difference primary location, then deleted the IMINVLOC record which could not have been deleted as the primary record.
3) The IMITMIDX table was written to by an external program such as MS Access which does not have any built in referential integrity checks.
It might be a good idea for you to look into this and see how and why this happened. The answer(s) could be legitimate, but then again.....
Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
askdon@srhconsulting.com