As far as I know, there is no such constraint associated.
Having said that, i guess , this is probably a "Not so good " design because, you are making a call to a data page again and again from a loop using this and thereby making the system busy by loading same datapage again again.
May I know what is your exact use case ? Why you want to do this in a loop ?
Also, have you checked log ? Are you seeing anything interesting ?