question

Bryan Matsui Pierce avatar image
Bryan Matsui Pierce asked

Economy V2 Bug- Player inventory does not display items if it contains removed catalog items

The PlayFab dashboard displays an empty inventory if it contains deleted catalog items.

When I was testing the features of EconomyV2 I deleted an item in the CatalogV2 that I forgot to remove from the player inventory. Because of this, the dashboard cannot display any items in the inventory. Here is the inventory of the player.

I know this player has items by calling the function myself.

GetInventoryItemsRequest request = new GetInventoryItemsRequest() {Entity = StaticInfo.EconomyEntityKey};
Task<PlayFabResult<GetInventoryItemsResponse>> inventoryTask = PlayFabEconomyAPI.GetInventoryItemsAsync(request);
PlayFabResult<GetInventoryItemsResponse> inventoryResult = await inventoryTask;

foreach (InventoryItem ii in inventoryResult.Result.Items) {
    Log.Info($"Type: {ii.Type}, Id: {ii.Id}, Amount: {ii.Amount}");
}

Azure Logs:

[Information] Type: currency, Id: 4c8dad4d-dfa8-4f16-89bc-75d294dcd5d3, Amount: 890
[Information] Type: catalogItem, Id: 9d733609-ab94-4054-b840-4ffbc164f36a, Amount: 1
[Information] Type: catalogItem, Id: d1d86bf4-9773-49fb-b0ae-b82666d874c0, Amount: 3
[Information] Type: catalogItem, Id: 19f96217-4d43-46ea-8a99-a9f4b88be0c7, Amount: 1

And here are the published items that are currently in my catalog

The only "correct" item in the player inventory is the "19f96..." item. The other two ("9d7336..." and "d1d86b...") are the "error" items.

I am aware that this is mostly due to user error on my part but I just wanted to report it just in case.

In-Game EconomyPlayer Inventory
n8mr7.png (8.5 KiB)
2 comments
10 |1200

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

Bryan Matsui Pierce avatar image Bryan Matsui Pierce commented ·

For some reason I couldn't add this image to the post so here are the published items in my catalog

0 Likes 0 ·
Bryan Matsui Pierce avatar image Bryan Matsui Pierce Bryan Matsui Pierce commented ·

I can't seem to post the image so here are the catalog item ids in text form:

19f96217-4d43-46ea-8a99-a9f4b88be0c7

b806df0f-d959-4db7-8b05-85aa81801b5b

0 Likes 0 ·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

The `DeleteInventoryItems` bug is a known issue. We'll get a fix out next week.

We'll take a look at the dashboard 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.

Bryan Matsui Pierce avatar image Bryan Matsui Pierce commented ·

Is there an ETA on the fix? I tried deleting items again and it is still not working

0 Likes 0 ·
Bryan Matsui Pierce avatar image
Bryan Matsui Pierce answered

Update: I tried deleting the items with DeleteInventoryItems and ExecuteInventoryOperations but they both resulted in this error report:

Http Code: 400 Http Status: BadRequest Error: Success 1-632de24f-039886ec4e205e091e320f9f
10 |1200

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

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.