The problem: OneDrive crashes when clicking the button to change its location

I just made a fresh install of Windows 10 May 2019 Update, and I tried to set up OneDrive with my Microsoft account. I arrived at the step where I choose the location of the OneDrive folder. I wanted to change it, and instead, OneDrive crashed. I tried again, and the same problem: OneDrive crashes when I try to change its folder location, without any error messages. I was in an endless loop where I couldn’t set up OneDrive to work using the folder I wanted. My only option was to go ahead and use the default OneDrive folder, planning to change the location later when choosing which folders to sync. This time I encountered another problem: the button for changing the location was gone. Therefore, I was stuck with the default folder that OneDrive recommends, which isn’t good enough for me, as I want to store all my OneDrive files and folders on a separate partition, on a separate hard disk.

To fix this problem first go ahead with the location enforced by OneDrive, and choose not to make all files available. After you see that OneDrive is starting to do its job, click on its icon in the notification area on the Windows 10 taskbar. Then, click More. In the menu that opens, go to Settings. In the Microsoft OneDrive app window, on the Account tab, click the link that says: “Unlink this PC.” You are informed that OneDrive files are going to stop syncing. Confirm by clicking “Unlink account.” OneDrive is now reset, and no longer working. Start the OneDrive app again, and go through its configuration wizard one more time. This time, you should be able to choose the location of the OneDrive folder that you want, without any crashes.

Did we manage to help you solve this problem?

This solution worked for me, and also for other users. It should work for you too. Comment below and share your experience. Also, upvote this feedback to Microsoft, so that the team developing Windows 10 fixes this problem.