statistic.UpdateUserStatItemsValue(
statCode,
additionalKey,
userStatItem,
result => OnUpdateUserStatsFromClientCompleted(result, resultCallback)
);
As per SDK code and documentation, “additionalKey” parameter should be not Null or Empty, so I’m getting stats records with “User ID = user_id_additionalKey” like this:
Sorry, It seems this UpdateUserStatItemsValue method is indeed having a not Null or Empty validation, which is not intended. Let me inform the respective team.
In the meantime could you try using this method UpdateUserStatItems to update the stat while also set the additionalKey to empty?
This issue is fixed on Unity SDK version 16.17.0, updating user stat using UpdateUserStatItemsValue method should work now when assigning empty string to additionalKey.