How to fix NotFound error while getting all channels for a team

Ashish Jhunjhunwala 0 Reputation points
2023-03-13T07:25:27.88+00:00

We are intermittently getting below error:

{“errorCode”:“Not Found”,“errorDescription”:“{\“error\“:{\“code\“:\“NotFound\“,\“message\“:\“UnknownError\“,\“innerError\“:{\“date\“:\“2023-03-10T07:56:12\“,\“request-id\“:\“b4103d13-9d38-44f2-8ac3-14fe4b4f8150\“,\“client-request-id\“:\“b4103d13-9d38-44f2-8ac3-14fe4b4f8150\“}}}“}

while fetching channels for a team using:https://graph.microsoft.com/v1.0/teams/506bb885-ca95-450f-9ae7-57e65a638516/channels

We have scanned the API documentation and have not found a reason when this can happen. If we check directly, the teams and the channels are present.

Can you explain what condition this error can come?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,445 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Siddharth Gautam 855 Reputation points
    2023-03-13T23:24:57.9566667+00:00

    Hello Ashish Jhunjhunwala,

    Thanks for posting!

    I am able to replicate the error message which you are getting using my test tenant. As per my analysis, below are the possibilities for getting “code“: “NotFound“, “message“: “UnknownError“.

    • Passing wrong Teams ID in teams/{team-Id}/channels endpoint (non-existent team).
    • Team might be soft deleted for a while and recovered later. I tested this and API responds with the same error intermittently (when Team doesn't exist).

    Please refer This link for error code information.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments