Search code examples
excelmicrosoft-graph-apionedrive

403 Forbidden on reading CSV file in OneDrive


I am trying to read my CSV files using Microsoft Graph API:

/me/drive/items/${someId}/workbook/worksheets('${someSheetName}')/usedRange

However it returns

403 Forbidden -> AccessDenied -> Could not get WAC token.

When reading a XLSX file, it works fine. I am using personal microsoft account.

Thanks for your help.


Solution

  • CSV and .xls are not supported formats. Only .xlsx works for this feature.