Hi.
I`m baffled and stumped by this here problem: I`m calling the default SetUserData and GetUserData from the 'Using Player Data' page examples and it sets the data alright, but upon checking the retrieved data it does not find the key that the data was set to. At first I tried it in my own code and kept thinking I must be doing something wrong, but after the examples showed the same behaviour, I do not know what to do.
I`m using SDK 2.32.171106, and the same Editor Extensions version.
Here is my code, which produces "No Ancestor key" , so the data is there, but the key "Ancestor" cannot be found even though it is right there. If I call the GetUserData() without doublechecking Data, I get an error: "The given key was not present in the dictionary".
I can also see my data having been set in the PlayFab Player dashboard:
void SetUserDataEx() { PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest() { Data = new Dictionary<string, string>() { {"Ancestor", "Arthur"}, {"Successor", "Fred"} }, Permission = UserDataPermission.Public }, result => { Debug.Log("Successfully updated user data"); }, error => { Debug.Log("Got error setting user data Ancestor to Arthur"); Debug.Log(error.GenerateErrorReport()); }); } void GetUserDataEx() { PlayFabClientAPI.GetUserData(new GetUserDataRequest() { PlayFabId = PlayFabID, Keys = new List<string>() { "Ancestor", "Successor" } }, result => { Debug.Log("Got user data:"); if (result.Data == null) { Debug.Log("Data is null"); } else if (!result.Data.ContainsKey("Ancestor")) { Debug.Log("No Ancestor key"); } else Debug.Log("Ancestor: " + result.Data["Ancestor"].Value); }, (error) => { Debug.Log("Got error retrieving user data:"); Debug.Log(error.GenerateErrorReport()); }); }