question

Wonderland avatar image
Wonderland asked

UpdateUserReadOnlyData sometimes does not update the data

function SERVER_UpdateUserReadOnlyData(data) {    
var writeToServer;writeToServer = {};
for (var key in data) {
writeToServer[key] = JSON.stringify(data[key]);
}
var response = server.UpdateUserReadOnlyData({
"PlayFabId": currentPlayerId,
"Data": writeToServer
});
return response
}
here is my code where i call api UpdateUserReadOnlyData
and sometimes I get the response 200OK, but my player data has not been updated
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi, can you provide us specific steps to reproduce this issue? Are there any error messages when you execute this SERVER_UpdateUserReadOnlyData function? I cannot reproduce your issue on the basis of the info you provided, it would be nice if you could provide us your title id so we can take a look at your setup to troubleshoot this issue, thanks.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.