Reading Data from an Excel stored in One Drive using Python (Enterprise Microsoft Account)

Anonymous
2021-12-28T11:16:16+00:00

Hi Team,

Could you please assist me in reading the data from an excel sheet stored in One Drive using Python? I am able to read the data if I use my personal account, however, the same steps do not work when using an enterprise Microsoft account.

The steps that I am following are:

  1. Share the excel file stored on OneDrive and then copy the link.
  2. Convert the URL to a direct download URL
  3. Use the above created URL in order to read the data using Python.

The steps I followed are as shown in the article below:

OneDrive as Data Storage for Python Project | by Joe T. Santhanavanich | Towards Data Science

The steps that I followed work if the one drive excel sheet is of my personal account. However, the same does not work if the sheet is stored in an enterprise/company Microsoft account.

Any help in troubleshooting this issue will be much appreciated.

Thank you.

Best regards,

Rini

Microsoft 365 and Office | OneDrive | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-12-28T16:52:31+00:00

    Hi Rini,

    Thank you for posting in this community.

    I have gone through the article you shared, however, I am sorry that I am not knowledgeable about API and Python. And it is out of the support boundaries of our community.

    Considering that your question is related to OneDrive API. To avoid sharing any incorrect information, I would recommend you raise a new thread in Microsoft Q&A community for a better help. The members there are good at this aspect. You will get a more detailed and professional answer to your query there.

    Moreover, to narrow down whether this issue is related to the permissions, you may make sure that the file is shared with the permission “Every with the link can edit”.

    Thank you for your understanding and efforts.

    Best Regards,

    May

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments