question

Christian Yoder avatar image
Christian Yoder asked

Rule encountering error: "Error occurred when running action GrantItemAction"

Hi there!

We have a rule set up that is triggered on player_added_title. This rule initializes the player's account with statistics and items through a bundle.

Starting recently, we've been having a number of cases where the rule does not work and encounters the following error: "Error occurred when running action GrantItemAction"

The statistics get updated fine, but the items don't get granted.

Any advice on how to debug this issue would be appreciated.

Thanks,

PlayStream
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.

Simon Cui avatar image Simon Cui commented ·

Hi, have you tested to use API to grant that bundle to a user to see if the item is valid? Such as Player Item Management - Grant Items To User - REST API (PlayFab Server) | Microsoft Learn. Besides, could you share us with detailed error logs and some screenshots of the triggered event data especially for GrantItemAction? The events information can be found by [Game Manager] -> [Your title] -> [Data] -> [Data Explorer(basic)]. Thanks.

0 Likes 0 ·
Christian Yoder avatar image Christian Yoder Simon Cui commented ·

Thanks for the response. Yes, we've tested API. Most of the time it works, sometimes it doesn't. We're doing a number of things for the account at start up, so possibly a result of conflicts?

Here is the event data that causes the error: 5558-screen-shot-2023-02-21-at-94254-am.png

And here is the event with the error: 5565-screen-shot-2023-02-21-at-94351-am.png

Unfortunately I don't have detailed error logs as there's nothing to indicate that there's an error client side, other than the inventory items not getting populated.

0 Likes 0 ·

1 Answer

·
Simon Cui avatar image
Simon Cui answered

Hi, there was an incident that occurred between 16 Feb and 23 Feb, which caused GrantItem problems. The incident has been fixed now. Please let us know if there is any question.

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.