• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by andy-3 · May 16 at 04:32 PM · apisCloudScriptPlayer Data

title_player_account PlayFabId does not work with cloud script

We are transitioning to using the title_player_account PlayFabId for the majority of our API calls. When we use the SetUserReadOnlyData client api it works, but when we try to make the same calls withing cloud script, it doesn't update. We don't receive any errors in CloudScript.

It's not throwing any errors, calls are succeeding, but Player Data (Title) isn't being updated

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by v_humcin · May 16 at 11:02 PM

Can you clarify which data you are trying to work with?

If you view a player in the game manager, the tab "Player Data (Title)" contains three types of data:

  • Player Data (Referred to as UserData in API calls)
  • Read Only Data (Referred to as UserReadOnlyData in API calls)
  • Internal Data

Each of these is distinct and there may be a chance that they are being mixed up. There is no SetUserReadOnlyData Client API call, as updating Read Only Data is restricted to the UpdateUserReadOnlyData API call available in the Server and Admin API.

Are you possibly using the UpdateUserData Client API call on the client and the UpdateUserReadOnlyData Server API call in the cloud script, this could explain why the cloud script is not updating the same data as the client?

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image andy-3 · May 17 at 01:58 PM 0
Share

From CloudScript, GetUserReadOnlyData and UpdateUserReadOnlyData are being used and are not working with title_player_account PlayFabId.

From the client, PlayFabClientAPI.GetUserData and PlayFabClientAPI.UpdateUserData are used.
sometimes from the client they work with title_player_account PlayFabId, sometimes they do not.

The same calls that work with master_player_account PlayFabId are not working with player_title_account PlayFabId. @Kirk_Moonlight

avatar image v_humcin ♦ andy-3 · May 17 at 10:21 PM 0
Share

The master_player_account PlayFabId is required for thePlayFabClientAPI.GetUserData and PlayFabClientAPI.UpdateUserData API calls, along with the other calls that affect "Player Data". The title_player_account id cannot be used for this purpose and is instead used for the Entity APIs specifically, such as the Groups API.

The Client API is part of the "Classic APIs" which are not built upon the newer entity system, so you will not be able to use the title_player_account for calls from this API. The Server and Admin APIs are also "Classic APIs".

For data storage you may be interested in the Data API as this will allow you to store data using the title_player_account. This is a quickstart guide that can help you with storing data in the Data API using "Entity Objects" and "Entity Files": https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/quickstart

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    GetPlayerCombinedInfoRequest no longer includes DisplayName in response 2 Answers

    Request timeout 3 Answers

    UpdatePlayerStatistics misleading error when Value is not int32 1 Answer

    CloudScript Handler to get player IDs from segment often returns Internal Server Error 1 Answer

    JSON Field Reformatting on Automation Save 2 Answers

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

      • Documentation
      • Quickstarts
      • API Reference
      • SDKs
      • Usage Limits
    • Support

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges