I have an issue when I try to update (PATCH) a shared contact with Microsoft-Graph.
I'm getting this message:
{
"error": {
"code": "ErrorInternalServerError",
"message": "An internal server error occurred. The operation failed., This session itself is a delegated session.",
"innerError": {
"request-id": "d12ca994-a3f6-4f3a-956e-ed4dc43bf72b",
"date": "2018-08-23T22:21:05"
}
}
}
What's going on?
Update: I attach an image from Graph Explorer
Evidence
After talking with the engineering team, this scenario is not supported right now. We are going to update the documentation to explain this for future reference.
Related
When I execute a request for a specific callRecord like this it works:
https://graph.microsoft.com/v1.0/communications/callRecords/{id}
But when I do this I get an error (500):
https://graph.microsoft.com/v1.0/communications/callRecords/{id}?$expand=sessions
{
"error": {
"code": "InternalServerError",
"message": "Object reference not set to an instance of an object.",
"innerError": {
"date": "2022-04-14T12:21:34",
"request-id": "{guid}",
"client-request-id": "{guid}"
}
}
}
It looks like this doesn't happen for every callRecord though. We started seeing this error in our logging around 2022-04-11T00:24:00Z, now we get thousands of those.
It was an internal issue on Microsoft's side. Everything seems to be fixed.
Our system integrates with Microsoft Graph Api to add calendar events to our User's outlook calendar
We started seeing a new type of error returned from the API. The User's calendar had been syncing fine up until today.
{
"error":
{
"code":"ADOperationFailedTransient",
"message":"The Active Directory operation failed with transient error.",
"innerError": {
"requestId":"cfb964dd-4fe3-4324-9f61-258113668601",
"date":"2020-11-06T00:20:39"
}
}
}
Does anyone know what this error means?
We have seen the same sort of errors coming in as of a few hours ago for accounts that were previously syncing.
Unavailable endpoint for https://graph.microsoft.com/v1.0/me/mailFolders
{
"error": {
"code": "ADOperationFailedTransient",
"message": "The Active Directory operation failed with transient error.",
"innerError": {
"requestId": "f89f2781-8c6c-4407-a685-97a56fbabe76",
"date": "2020-11-06T00:49:24"
}
}
}
Unavailable endpoint for https://graph.microsoft.com/v1.0/me/mailFolders
{
"error": {
"code": "ErrorADUnavailable",
"message": "Active Directory is unavailable. Try again later."
}
}
Yes, sounds like some technical glitch due to that you may have noticed the issue... Glad that its working now..!! In such scenario, i would recommend you to test with POSTMAN or Graph Explorer and see if you can repro the issue or not. This will help you to isolate the issue outside of your code/application.
I would like to read a team's shifts using https://graph.microsoft.com/v1.0.
However i always fail with different errors and get contradicting server messages.
I send the API requests with Postman.
I am using Application authorization method. I think i have set all required Api permissions for my app.
I beleive i supply the correct headers, like:
Authorization
Content-Type
MS-APP-ACTS-AS
When i send the request like this to GET a team:
GET https://graph.microsoft.com/v1.0/teams/{id}
i get the following error message:
"error": {
"code": "NotFound",
"message": "No team found with Group Id {id}",
"innerError": {
"date": "2020-09-05T08:37:17",
"request-id": "id"
}
}
But when i try to create the team (from a group) like this:
PUT https://graph.microsoft.com/v1.0/groups/{id}/team
I get the error as follows:
"error": {
"code": "Conflict",
"message": "Team already exists",
"innerError": {
"date": "2020-09-05T08:33:33",
"request-id": "id"
}
}
When i try to make my actual call of interest, like:
GET https://graph.microsoft.com/v1.0/teams/{id}/schedule/shifts
That also fails with error:
{
"error": {
"code": "NotFound",
"message": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Sorry, the team was not found, or you may not have access to it.\",\"details\":[],\"innererror\":{\"code\":\"TeamNotFound\"}}}",
"innerError": {
"date": "2020-09-05T08:59:55",
"request-id": "id"
}
}
}
Pleaset help me understand what i am doing wrong!
Thank you in advance!
Solved (itself).
So what was happening:
i created a team (directly or from a group).
created a schedule for the team.
get the schedule for the team, and see the response:
"enabled": false,
"provisionStatus": "Failed", (so not running or queuing or something)
"provisionStatusCode": "GraphResourceNotFound",
struggle few (like 4-5) days
without changing a thing, get the schedule showing:
"enabled": true,
"provisionStatus": "Completed",
"provisionStatusCode": null,
Maybe it would help others to see the possible wait time length or add a clarification about the provisionStatus field’s status progression.
When making this GET request:
https://graph.microsoft.com/v1.0/me/events/{EVENT_ID}?%24select=id%2Csubject%2Ccategories%2CseriesMasterId",
The Graph API is returning HTTP 400 with the details below. I am unable to find documentation explaining this error. Any help would be greatly appreciated.
{
"code": "ErrorInvalidRequest",
"message": "Your request can't be completed. This operation does not support binding to a non-calendar folder.",
"innerError": {
"request-id": "8b92c8b2-3b52-4640-998f-cc07e56bdc27",
"date": "2019-04-26T21:17:18"
}
}
Update: This behavior seems to happen when querying for the status of an event that has been deleted by a user. Would be great for Microsoft to document this behavior -- assuming this is in fact intended.
I've encountered a problem while trying to update organization's properties using Microsoft Graph API. I've followed these docs and tried it in graph explorer.
My request looks like this:
{ "displayName": "My Company Name" }
Whatever I do I always get the following error:
"error": {
"code": "Request_BadRequest",
"message": "Specified HTTP method is not allowed for the request target.",
"innerError": {
"request-id": "dfd9ae19-2774-4b10-8d74-f6f6cd21f712",
"date": "2016-05-16T14:48:02"
}
}
What am I doing wrong?
I have tried in my test tenant and results in the same error.
https://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/organization
In the above document it is mentioned that we can update "marketingNotificationMails" and "technicalNotificationMails" properties alone through Update API. So I think you can't update the organization display name.
It does appear as though updates are limited on the organization entity. Please file a request to Uservoice to ask for this feature.