Okay I believe I see what is wrong here and why the last row is missing…
So basically what add log fields does is, it add the fields you provided to the log message activity used after that to include all of these fields…
Now in your workflow after add log fields you do not have a log message you have it before it…so the first iteration of your for loop will not have any log fields to add because you did not add log fields yet …so it is taken as null and from the next iteration it takes the values as the log fields are already added
So change the flow like this and you would see the log fields for each without missing anything
Inside the for loop
Add log fields activity
Log message
Remove log fields can be added outside the loop once and for all or can be added inside only(this is for sanity )…or else for every log message that happens after this add log fields activity the fields will be add in the log message also…which consumes a lot of moemory
Before making the query I could see the fields in Log Fields, but the situation is that the UiPath Insight has a delay and the log messages when i add new rows in my excel is not showing instantly when u use Clear Cache in 3 dots verticals, that is why i asking to @UiPath_Community and people.