IIRC, the code tries to find duplicates at all levels, and I think the level 2 OBJE followed immediately by level 1 OBJE may be the cause of the problem.
I would first attempt to simplify the function (restrict to level 1 OBJE) records.
IIRC, the code tries to find duplicates at all levels, and I think the level 2 OBJE followed immediately by level 1 OBJE may be the cause of the problem.
I would first attempt to simplify the function (restrict to level 1 OBJE) records.