I had a similar issue with a Do Until and it turned out to be an issue with one of the actions inside of the loop instead of an expression related to the Do Until functionality.