Totally want to help you. Some feedback, its really hard to try to "read" your code, its always better to share pictures as a walkthrough so we can see what is going on. And any code that is broken, please also post the code so that we do not have to type it out :-). Lots of people accidentally take pictures of super long code hehe that we have to retype to try to help fix.
oh hehe and some carriage returns please hehe, formatting makes it easier too :-)
Ok now to your issue.
For me :-( it's just too hard for me to follow it without seeing the app and have the code in the order that it executes etc.
But you said one row is left out. Is it always the same row? And if so, can you identify the or share the specific data from that row, as it might give the reason why it doesn't get picked. Or are you saying its different (random) rows that do not show up?
That would help a lot too
So please share the code in order (use the code snippet so we can copy it too to try to help, its the second to last icon

And if you are willing to share the Data that is now showing up that will make it super-fast I believe as we will be able to see what is not showing up and we can compare that against your code, as well as against the data in the UI
If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
Thank you!
Sincerely, Michael Gernaey