Inbox folder message rules returns 500 with "An internal server error occurred. The operation failed., Index was outside the bounds of the array."

Elva Nguyen 0 Reputation points
2023-10-17T18:06:00.64+00:00

Hi,

Describe the bug
I use Graph API to request user's inbox message rules and see that it failed for a few of the users with the response:
"An internal server error occurred. The operation failed., Index was outside the bounds of the array." with status code 500
This error seems to occur consistently with certain user. When I check user's data, there's nothing stand out that can help me troubleshoot this.

The request that I sent is https://graph.microsoft.com/v1.0/users/[user-id]/mailFolders/Inbox/messageRules?$top=999

Expected behavior
User's inbox message rules are returned

Thank you!

Microsoft Security Microsoft Graph
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.