msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

Getting "The specified object was not found in the store." error when calling GET /me/events/{id}

Open v-mghabin opened this issue 1 year ago • 11 comments

We are using "Microsoft.Graph" package with Version "4.54.0" and trying to get calendar event by its id but for some events we are getting the following error: "The specified object was not found in the store." I've opened MS Teams and went that online meeting and get the ID and tried it from https://developer.microsoft.com/en-us/graph/graph-explorer but I've got the same error knowing that the event or meeting is exist.

v-mghabin avatar Mar 25 '24 19:03 v-mghabin

@v-mghabin Any chance you can provide more information on the way the event item is created? Is the API call made a short time after the creation? Or is the event still unretreviable?

andrueastman avatar Mar 27 '24 07:03 andrueastman

The event has been created ~2 weeks ago using MS Teams, and I can access it through MS Teams but not through get calendar event by its id API. And it is still unretrievable

ghost avatar Mar 27 '24 09:03 ghost

Any chance you can try out filtering the events with a query using the subject or another property as below to confirm if the Id from teams is the same id that MS graph uses?

https://graph.microsoft.com/v1.0/me/events?$filter=contains(subject, 'New product')

andrueastman avatar Apr 03 '24 08:04 andrueastman

I've filtered it out, and it sounds that event id from MS teams is different from MS graph. So, what is the solution for this knowing that I'm using the chatId to get chat entity then from that I'm using the OnlineMeetingInfo property for getting the calendar event Id?

ghost avatar Apr 03 '24 22:04 ghost

Thanks for confirming @v-mghabin

So, what is the solution for this knowing that I'm using the chatId to get chat entity then from that I'm using the OnlineMeetingInfo property for getting the calendar event Id?

We may not be best placed to answer this really as this repo is mainly intended mainly for SDK related issues. Any chance you can post the same query at the link below to get feedback from the API side of things? It would be great if you could post back the link here so that anyone who has the same question could find the info.

https://learn.microsoft.com/en-us/answers/tags/161/ms-graph

andrueastman avatar Apr 04 '24 06:04 andrueastman

@andrueastman I think there is misunderstanding here as it is confusing a little bit, My case is that I'm using GraphAPI .NET SDK client to get the chat entity using chatId, and then from that chat entity I'm looking for the event id, and after all of this I'm trying to get the event entity using eventId. So, I believe this issue is relevant to GraphAPI not MS Teams as I'm not requesting MS Teams at all.

ghost avatar Apr 06 '24 04:04 ghost

@andrueastman Kindly pining

ghost avatar Apr 14 '24 08:04 ghost

@v-mghabin I am also getting the same issue while adding users to a live module with ms teams providers im getting this error ,

ServiceException: Code: ErrorItemNotFound Message: The specified object was not found in the store. ClientRequestId: eab70144-949b-4c30-bed2-cf56de2c7736

AsyncHelpers.RunSync<Event>(() => graphServiceClient.Users[userId].Events[meetingId] .Request() .Header("Prefer", "outlook.timezone="UTC"") .UpdateAsync(updateEvent)); Do you find any solution? i am using Microsoft graph 4.54.0

alson26899 avatar May 09 '24 20:05 alson26899

@alson26899 Unfortunately, I'm still looking for a solution. Could u pls attach solution if you find any?

ghost avatar May 10 '24 14:05 ghost

Any chance you can try posting the issue at https://aka.ms/askgraph. As the issue here really is with regards to how the Graph API is behaving, we may not be best placed to know the issue as this repo is mainly intended for issues with the client library.

andrueastman avatar May 13 '24 06:05 andrueastman

Asked there and they are saying the opposite https://learn.microsoft.com/en-us/answers/questions/1643587/getting-the-specified-object-was-not-found-in-the

ghost avatar May 13 '24 12:05 ghost