Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Open in OneDrive occurs in Error

(0) ShareShare
ReportReport
Posted on by 99

Hi Guys,

one of my customers faces the problem that when he trys to open an attachement in onedrive, for e.g. purchase order, following error occurs:

The client ID or client key has not been initialized.

Tried to dig my way through the codeunits MS is using, but didnt really find a clue how to solve.

He is able to open his onedrive folder from the personal settings, that is the reason i am a bit confused. Any ideas?!

Regards,

Marco

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Open in OneDrive occurs in Error

    Hello,

    In My Settings there is something called Cloud Storage. Has that been initialized. It should go to OneDrive / Sharepoint.

    Thanks.

  • Lubenheimer Profile Picture
    99 on at
    RE: Open in OneDrive occurs in Error

    Hi ZHU,

    that is exactly what i am asking myself too - user is having super permissions so this cant be the problem. i already opened a ticket for ms support, i think it has something to do with the multitenant app registration, since this occurs on a embed version in one of our products.

    But tbh it drives me crazy that it doesnt work.

    Regards,

    Marco

  • Suggested answer
    YUN ZHU Profile Picture
    81,360 Super User 2025 Season 1 on at
    RE: Open in OneDrive occurs in Error

    Hi, This is very strange, if he is able to open his onedrive folder from the personal settings, it means there is no problem with verification.

    Did you try to add Super permission to him?

    I have tried adding this button to other pages before, which requires a Codeunit to be executed. Is it possible that it is caused by not having permission to run this Codeunit?

    More Details:

    https://yzhums.com/19896/

    pastedimage1647306198716v1.png

    Hope this will help.

    Thanks.

    ZHU

  • Lubenheimer Profile Picture
    99 on at
    RE: Open in OneDrive occurs in Error

    Hi Marco,

    by Personal settings i mean the personal settings in business central where you can change language, working date etc.... there is a link to you personal onedrive folder. using this works - also working in onedrive. so license is there.

    Regards,

    Marco

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Open in OneDrive occurs in Error

    Hello,

    There are a few requirements for this:

    Each user must have a license for Business Central and OneDrive as part of a Microsoft 365 plan.

    OneDrive must be set up for each user.

    Have these requirements been met? When you talk about personal settings, are they actually logging on to to OneDrive with their Office 365 account?

    Thanks.

  • Lubenheimer Profile Picture
    99 on at
    RE: Open in OneDrive occurs in Error

    Good Morning,

    no - i dont think any setup was done. Normally, afaik, there is no setup needed - at least i never heard of it.
    Your link mainly refers to on premise, my customer is using cloud.

    Still the weird fact is, that opening onedrive from his personal settings is possible, but not using "open in onedrive" from any document.

    Shouldnt a missing setup also decline opening onedrive out of your personal settings?

    Regards,

    Marco

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Open in OneDrive occurs in Error

    Have you been through the required setup as documented by Microsoft ?

    docs.microsoft.com/.../admin-onedrive-integration

  • Suggested answer
    MahGah Profile Picture
    15,437 on at
    RE: Open in OneDrive occurs in Error

    Hi

    Sorry for basic question, have your client followed guideline like this for original setup? Thanks

    https://yzhums.com/17888/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans