In order to get the metadata for the location where the files of a channel are stored, we use the following API.
GET /teams/{id}/channels/{id}/filesFolder
One of our customers' SharePoint drives is already provisioned but this API returns 404 Not Found.
Request -
GET /v1.0//teams/f7748ba8-5e48-4a77-bd7c-18f623c8d5e9/channels/19:a93d0738554043f1b81d4b8ca8b46a23@thread.skype/filesFolder
Response -
Result code 404
Not Found - {
"error": {
"code": "NotFound",
"message": "https://******.sharepoint.com/db905278f90cd6f8c0b9e56bb0da6deb2c6a41cf312ab56b9d319b8c5ce3e407/a49cc407761aa5d6f5d76e385336bc0d17cd77b1713efc2a97759c27888cfd70 Site isn't available. Attempting to create site : False.",
"innerError": {
"message": "https://******.sharepoint.com/db905278f90cd6f8c0b9e56bb0da6deb2c6a41cf312ab56b9d319b8c5ce3e407/a49cc407761aa5d6f5d76e385336bc0d17cd77b1713efc2a97759c27888cfd70 Site isn't available. Attempting to create site : False.",
"code": "ItemNotFound",
"innerError": {},
"date": "2022-03-25T14:56:10",
"request-id": "28d1d6f1-55ff-4a47-82f4-ff006293bde7",
"client-request-id": "61b3cb0f-369f-410e-a9e0-d46f3662ee94"
}
}
}
All the input IDs are correct and verified and we have all required graph permissions available to call the API.
We have noticed this occurs with private channels only.
Could you please help us figure out what is causing this and how to fix it?