Right now I have a set range on the Sales Invoice Line table such that it should only grab the rows where the document number is a certain text.

To make sure I am getting the right rows I am messaging each row I loop over, but I can see that it is still getting invoices with a different document number specified:

Am I using this filter (setrange) correctly?