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

GetActivitiesByInterval return "Item Not Found"

Open ahamedfazil opened this issue 6 years ago • 6 comments

We are trying to get site activity by using graph and referred to this documentation - https://docs.microsoft.com/en-us/graph/api/itemactivity-getbyinterval?view=graph-rest-beta&tabs=csharp

Unfortunately we get Item not found as a response. Previously we used to get 500 Internal server error but now we get 404. I have tried this with various site in my tenant.

Screenshots image

I have tried the same with Graph Explorer and its still the same(item not found). :( image

Any help on this is highly appreciated, thank you in advance.

Reference Issue https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/6273

ahamedfazil avatar Jun 30 '20 12:06 ahamedfazil

404 is expected if this item doesn't have any analytics data

gggjtgxing avatar Jun 30 '20 16:06 gggjtgxing

How do we know whether the site has analytics data or not? Is there any way to check without the help of API?

ahamedfazil avatar Jun 30 '20 20:06 ahamedfazil

This doesn't appear to be a client library issue. Please post questions about the product and the service APIs to StackOverflow with the microsoft-graph tag.

MIchaelMainer avatar Jul 02 '20 20:07 MIchaelMainer

The item has analytics data, when I checked from admin portal -> site usage. For the same date I can't get the value through the API. Not sure why this issue is closed already :/

ahamedfazil avatar Jul 03 '20 12:07 ahamedfazil

The issue has been resolved, after providing the sites values in a way explained here -> https://docs.microsoft.com/en-us/graph/api/resources/site?view=graph-rest-beta#id-property (tenant-sharepoint-url, site collection GUID, site(web) GUID) image

ahamedfazil avatar Jul 09 '20 12:07 ahamedfazil

I am getting Object reference error even after providing id like this.

shrirampophali avatar Sep 02 '20 12:09 shrirampophali