Business Logic called multiple times, completes only once

Ok let me try to clarify:

Yes, it does appear that the hosted service was called 5 times. That was always the fact, the question was why it always ran successfully when it was called only once, but did not operate as intended when called multiple times in rapid succession.

The “loop” is on the Parse side, and that part works as intended. As indicated above, it successfully calls the hosted code multiple times, and the hosted code actually runs multiple times.

The login code is not really relevant, but I am doing that because I originally turned off create access to non-authenticated users, however I do see that I can grant create access to hosted business logic so I’ll be removing that code.

I hope that explains it better - I appreciate the time you’re taking to look into this.

Thanks, it clarifies it for me. One possibility to consider is if the code takes more than 5 seconds to execute, it will be interrupted before it is completed (due to the free plan limitations). Do you think there is a possibility of that happening? If you remove the login call, it will help in reducing the total time it takes for the method to execute.

Mark - looks like this problem may be resolved now.

The major change was the removal of the login call, and now the hosted code properly creates a user each time it is called. Maybe the combination of login and register took more than 5 seconds.

At any rate, thank you for your help and I’ll keep an eye on it. We can close this topic.