Yes I know why this is happeing. I try to explain. So MovementDetail is your repeating section. You check if the field MovementType value is equal to 0, if yes you delete it and now there comes your mistake. You have set "i" to 1 in your for statement but you also decrement it if you found status = 0. Imagine that you will find status = ...