-
Notifications
You must be signed in to change notification settings - Fork 93
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
[Account state issue] Fetch worksheets in a workbook - FileOpenUserUnauthorized - Could not obtain a WAC access token #3014
Comments
Email address for reference: [email protected] Please let me know if you need more info or access to this (demo) account. |
I suppose, it also would be nice to have the damaged accounts revived in the end. |
Hi @MetatronR, |
@ElinorW thank you for coming to this ticket. |
Hi @vova-visme, |
I'm having the same issue with my account, please do investingte, we have hundreds of clients depending on this functionality |
I've encountered this issue with one of my accounts. It's a shame, I'd like to keep relying on Excel in my work |
hey @MetatronR, Are you able to access the file on the web? without the use of Graph API's? |
@ElinorW the files are accessible and editable using OneDrive interface if that what you mean. |
Hi, yes, the files are accessible both from OneDrive and from the API (list my items in drive and by ID). Example (truncated) from search:
Also results got by calling https://graph.microsoft.com/v1.0/me/drive/items/42C71CBB2C347AB2!s97267835b5d742138f90683af56b12a7 :
I get by calling https://graph.microsoft.com/v1.0/me/drive/items/42C71CBB2C347AB2!s97267835b5d742138f90683af56b12a7/workbook/worksheets (fresh error IDs) :
All these calls have been made from the Graph Explorer using these scopes: |
Observation: In the past (months) the error used as described in the initial message:
After some update it got replaced with:
Yet the API is still not functional. That issues does not happen automatically on all accounts. |
@MetatronR where is your excel file stored? According to the excel API docs https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0, the API is only used for excel workbooks stored in OneDrive for Business, Sharepoint site or Group drive. |
Any updates on the issue? It still persists. |
hi @xxyziggy, |
Hey @MetatronR and @xxyziggy |
Response body:
Response headers:
At the same time, |
A few more IDs just in case:
or
|
thanks @MetatronR ! |
Hey @MetatronR, |
Hi @ElinorW |
Hi @MetatronR , @vova-visme , |
hey @ElinorW |
Hi @ElinorW
|
@ElinorW do you have any news regarding this issue? |
Hey @xxyziggy , I do not have any updates or now. |
@MetatronR and @xxyziggy, could you confirm if the issue is now resolved? |
Hi, @ElinorW I would also ask if the The official documentation for this specific endpoint (https://learn.microsoft.com/en-us/graph/api/workbook-list-worksheets?view=graph-rest-1.0&tabs=http#permissions) is not specifying any limitation, yet on https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0 it is specified that:
CC: @musale @vova-visme |
@MetatronR , If there are no further concerns regarding Graph Explorer, please feel free to close this issue. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Describe the bug
Unable to access the worksheets of a workbook freshly created in my own drive.
DISCLAIMER: Once the bug happens, that particular account can't be used with the Excel endpoints anymore...
To Reproduce
Steps to reproduce the behavior:
Excel
sectionworksheets in a workbook
endpointFiles.ReadWrite
permission{drive-item-id}
URL path placeholder with the ID of any newly created (or older) Excel file.Expected behavior
Should receive the list of worksheets in the workbook.
Actual behavior
Receiving API error responses on bugged accounts (new accounts are not affected initially).
Device:
any device
- This is an internal API exceptionError response:
Additional context
This behavior is pretty old. These issues would suddenly render an account unusable.
Once these issues happen, there is no way to use the same account with the workbook API endpoints.
Frequency:
Had over 900 errors (on many accounts - Oauth2) in the last 12+ months.
Over 200 exceptions in the last 14 days.
Previously the API response was:
This bug renders any integration with the Microsoft Excel impossible as there no way control or prevent the API errors received while fetching the worksheets of a workbook.
What was tried (in the Graph Explorer):
GET https://graph.microsoft.com/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets
->error
GET https://graph.microsoft.com/v1.0/me/drive/items/{drive-item-id}/workbook
->same error
POST https://graph.microsoft.com/v1.0/me/drive/items/{drive-item-id}/workbook/createSession
->same error
POST https://graph.microsoft.com/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets
->same error
beta
endpoint. ->no change
no change
no change
no change
only a matter of time until they get bugged
no change
no change
https://graph.microsoft.com/v1.0/me/drive/items/{drive-item-id}
endpoint ->works
works
The text was updated successfully, but these errors were encountered: