-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Client bug]: v5 RangeWithAddress doesn't return cell values #1783
Comments
Blocking migration to latest version |
Hey team I'm also facing this issue when trying to retrieve and/or post back WorkbookTableRow data, the values property is simply missing from the Json object returned. I thought I might need to select/expand the values but could not add these to the call using QueryParameters.
As a workaround I have had to use the .ToGetRequestInformation() and .ToPostRequestInformation to allow for manual execution through HTTPClient. |
@Kane-Baden Thanks for info. I would like to avoid any workaround because it's time consuming to write workaround and then remove it. @Stephan-Hoffmann Be aware that there is another issue which can block you from migration #1673 |
When can we expect some movement on this case? As I said before - its blocking migration to the latest MS Graph SDK |
I would expect that msgraph-sdk-dotnet team will test workbook api properly. v5 was released more than one month ago and it still doesn't work. |
Still the case with nuget version 5.6.0 |
I am still having the issue using nuget version 5.7.0. @Kane-Baden can you provide more info regarding how to use HttpClient and how to deserialize the responses? I have noticed that the issue might come from the deserialization. Here's a code snippet with what I tried (using BatchRequests to run requests directly through GraphServiceClient instead of HttpClient):
Maybe my findings could help, @andrueastman 😄 |
@andrueastman Is there any estimate (weeks, months) when it will be fixed? I would like to use v5 for a new project but I'm afraid that v4 is only version which I can use in production without worry. |
Still the case with nuget version 5.11.0 |
Still the case with version 5.13.0 I can't get any of the "Range" retrieval methods to work (UsedRange , RangeWithAddress etc). I noticed in the returned object, WorkbookRange.Worksheet field is NULL as well... Any progress? Seems like a fairly large hole in the surface of the SDK, and I'm a little surprised this issue has been open for as long a time and as many versions 5.xx as it has. |
This still seems to be an issue with 5.17.0 |
@maisarissi Kindly reminder, workbook API is not supported since v5 has been released. |
Is blocked by: microsoft/kiota#2319 |
Thanks for posting it and yes, we are blocking by this issue. |
@kryogenyk sorry for the delayed reply. I created custom classes to map against the response data, looks like this.
|
I wasted quite some time today trying to obtain Excel cell data using the Graph SDK. Sad to see this issue is already open for so long although I understand from reading microsoft/kiota#2319 this is a tough nut to crack. |
I struggled half a day till I found this bug here and a workaround. (I used Microsoft.Graph v5.44.0)
In Programm.cs I use:
With appsettings:
Most of the configuration of the client and the Web API comes from: Hope this helps! |
Depends on microsoft/OpenAPI.NET.OData#511 |
Is there any progress on this? It is critical for my project transferred to WInUI from UWP. |
I tried trumpetchris method above but unfortunately it still uses the Kiota thing and no cell values are returned. I have achieved the result with HttpClient .net 8. WinUi 3 with the latest Microsoft packages. The access token is obtained from the standard Microsoft PublicClient code. using Microsoft.Identity.Client;
} |
Building on top of @Kane-Baden workaround you can still use the SDK (for what its worth), but essentially bypass the response handling For example: var nativeResponseHandler = new NativeResponseHandler();
var workbookRange = await graphClient
.Drives[workbookDriveItem.ParentReference.DriveId]
.Items[workbookDriveItem.Id]
.Workbook
.Names["named_range"]
.Range
.GetAsync(requestConfiguration => requestConfiguration.Options.Add(new ResponseHandlerOption() { ResponseHandler = nativeResponseHandler }));
var responseMessage = nativeResponseHandler.Value as HttpResponseMessage;
var result = await responseMessage.Content.ReadFromJsonAsync<ManualWorkbookTableRow>(); But I can't believe this is STILL an issue |
Exactly - "For what its worth" |
Thank you this works a treat. However, it is more reliable to use NewtonSoft, wiping out reading date fields |
Describe the bug
When calling
The response contains cell values in
text
propertyWhen doing the same in v5
there is nothing in
workbookRange.Text
.Microsoft.Graph.Models.Json
doesn't contain any property or method to get cell values.To Reproduce
Steps to reproduce the behavior:
Described above
Expected behavior
SDK returns cell values
Screenshots
Client version
5.4.0
Desktop (please complete the following information):
Additional context
Workbook endpoints are broken since v5 has been released.
The text was updated successfully, but these errors were encountered: