I'm trying to use an azure function script to set user data like this
Dictionary<string, string> initialData = new Dictionary<string, string>();
initialData.Add("TechBoosters", "1FF");
...
initialData.Add("TechGenerator", "000");
await server.UpdateUserDataAsync(new PlayFab.ServerModels.UpdateUserDataRequest() {
Data = initialData,
Permission = PlayFab.ServerModels.UserDataPermission.Private,
PlayFabId = Util.masterAccountId
});
The problem is this seems to start failing as soon as I have 11 entries in this list, with the following error:
Invalid input parameters, System.Collections.Generic.Dictionary`2[System.String,System.String[]]
Interestingly it seems to think the value class in the dictionary is an array of strings in stead of a single string. I have no idea why this is happening, I tried splitting the call into chunks of 10 or even doing them one by one, but I just got the same error. If I just set the first 10 values it works fine. It's all just plain alphanumeric characters, so nothing strange going on with the inputs.
I'm using the user data here to store specific data about tech unlocks, I'm not sure if it's the correct approach for this kind of thing, so alternate suggestions are welcome.