Debuger behaviour NAV 2018

Hi All,

Today I faced very weird case in debugger while debugging someones code(customized code, not MS's).

below is piece of code 

when I apply filters on  table according to code I am getting 3 records

but when I debug it, debugger is getting only 2 records.

Because of that system throwing below error.

Where and what I am missing ?

I tried only : CLEAR(JobPlanningLine); which did not work.

This code is in Job Planning Line.

Thanks in advance.