question

vkhalimonchuk avatar image
vkhalimonchuk asked

GrantItemsToUser returns inconsistent data

Hi.

I've edited bundle item contents. Afterwards server API's GrantItemsToUser returns it with outdated BundleContents field, while the actual GrantedItemInstances list is up to date

{
  "ItemGrantResults": [
    {
      "Annotation": null,
      "BundleContents": [
        "KartPartCommon",
        "KartPartCommon",
        "KartPartRare"
      ],
      "BundleParent": null,
      "CatalogVersion": "v1",
      "CharacterId": null,
      "CustomData": null,
      "DisplayName": "Small Loot Box",
      "Expiration": null,
      "ItemClass": "Lootbox",
      "ItemId": "LootboxSmall",
      "ItemInstanceId": "1D38426A99F9D71F",
      "PlayFabId": "F3F37603F1593CE1",
      "PurchaseDate": "2022-04-29T16:51:49.807Z",
      "RemainingUses": 12,
      "Result": true,
      "UnitCurrency": null,
      "UnitPrice": 0,
      "UsesIncrementedBy": 1
    },
    {
      "Annotation": null,
      "BundleContents": null,
      "BundleParent": "B16C2B99EF918997",
      "CatalogVersion": "v1",
      "CharacterId": null,
      "CustomData": null,
      "DisplayName": null,
      "Expiration": null,
      "ItemClass": "KartPartTemplate",
      "ItemId": "KartPartCommon",
      "ItemInstanceId": "B4A91988F209D283",
      "PlayFabId": "F3F37603F1593CE1",
      "PurchaseDate": "2022-04-20T21:41:16.683Z",
      "RemainingUses": 173,
      "Result": true,
      "UnitCurrency": null,
      "UnitPrice": 0,
      "UsesIncrementedBy": 5
    }
  ]
}

Additionally I'm unable to delete this bundle and getting error "Could not delete item 'LootboxSmall', because it would leave the catalog in an invalid state: InvalidItemProperties"

Is that intended behavior?

My titleId is A8A11

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vkhalimonchuk avatar image
vkhalimonchuk answered

Edited the bundle contents once more a few days later and finally bundleContents field got refreshed

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image
Seth Du answered

To be clear, few cached, shared resouces on PlayFab won't apply changes immediately, such as Title Data. It usually takes a few minutes for each shard to be up to date. May I ask do you still have this issue?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vkhalimonchuk avatar image vkhalimonchuk commented ·

BundleContents have not updated yet.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.