I create an anonymous login from Unity, and I procure it's entity token and entity IDcall PlayFabAuthenticationContext in the Azure Function to get the PlayFabServerInstanceAPI and then use that to call the UpdateUserDataAsync.
var api = new PlayFabServerInstanceAPI( new PlayFabApiSettings { TitleId = context.TitleAuthenticationContext.Id, DeveloperSecretKey = Environment.GetEnvironmentVariable("PLAYFAB_DEV_SECRET_KEY", EnvironmentVariableTarget.Process) }, new PlayFabAuthenticationContext { PlayFabId = context.CallerEntityProfile.Entity.Id, EntityToken = context.TitleAuthenticationContext.EntityToken } );
Even in its request I have set
PlayFab.ServerModels.UpdateUserDataRequest updateDataRequest = new PlayFab.ServerModels.UpdateUserDataRequest(){ PlayFabId = context.CallerEntityProfile.Entity.Id, Permission = PlayFab.ServerModels.UserDataPermission.Public };
Yet when I call
PlayFabResult updateDataResult = await api.UpdateUserDataAsync(updateDataRequest);
This is what I get
"master_player_account 'some number' not found in namespace 'some number' "
Please help me understand what I am missing, thank you