Question from a developer:
I am trying to manually reset leaderboards with the admin API and occasionally I am getting StatisticUpdateInProgress error. Can anyone tell me what this means exactly or how I can avoid it?
Question from a developer:
I am trying to manually reset leaderboards with the admin API and occasionally I am getting StatisticUpdateInProgress error. Can anyone tell me what this means exactly or how I can avoid it?
That specific error (StatisticUpdateInProgress) is returned if the statistic in question is currently locked due to a statistic definition update being in progress. So you should really only see this on a call to reset a statistic or update its definition if another call (or timed reset) to do so is taking place. If you're seeing something else, can you please post the details of the repro, so that we can have a look (Title ID, Statistic ID, API calls made, time of the test)?
I can't think of anything that should be calling that at the same time, but I am calling IncrementPlayerStatisticVersion on three leaderboards one after the other from cloudscript using http.request(). I assume these requests happen synchronously?
Could the close proximity of these calls cause that?
2 People are following this question.