How to Fix OneDrive Account Setup Errors on macOS Sonoma
Question details
Users are unable to successfully add a second organizational account to OneDrive due to local folder mapping issues or the background sync processes failing to launch.

- Product
- Microsoft OneDrive
- Device & OS
- macOS Sonoma
- Scenario
- Setting up a second organizational account alongside an existing account in the OneDrive Mac app.
- Observed behavior
- The OneDrive app prevents adding the new account, reporting that Files On-Demand did not start, or displays Error Code: -1.
Ensure you have your organizational account credentials ready and confirm that your current primary OneDrive account has fully synced all local changes to the cloud before proceeding.
Reset the OneDrive Application and Restart the System
Running the built-in reset command clears problematic configurations and forces OneDrive to rebuild its account connections and Files On-Demand settings.
Resetting Microsoft OneDrive can sometimes resolve sync issues and reset all local settings. It does not delete your files, but it will force OneDrive to perform a full sync when it reopens.
Click the OneDrive icon in the top menu bar, click the gear icon (Help & Settings), and select 'Quit OneDrive'.
Open Finder and navigate to the 'Applications' folder. Right-click on the 'OneDrive' application and select 'Show Package Contents'.
Navigate to the 'Contents' folder, then open the 'Resources' folder. Find and double-click the file named 'ResetOneDriveApp.command' (or 'ResetOneDriveAppStandalone.command' if you are using the standalone version).
If you continue to see Error Code -1 regarding Files On-Demand, click the Apple menu and select 'Restart' to reboot your macOS Sonoma system.
Launch OneDrive from your Applications folder. Sign back in with your organizational account, complete the setup wizard, and verify in the app's preferences that 'Files On-Demand' is successfully enabled.

Experience a Lighter, Hassle-Free Office Solution on Mac
Tired of troubleshooting complex sync failures, folder errors, and background service crashes? WPS Office provides a fully featured, lightweight alternative to Microsoft Office that is highly optimized for macOS, allowing you to edit your documents seamlessly without dealing with convoluted cloud setup errors.
- 1. Visit the WPS website: Go to the official WPS Office website using your Mac browser.
- 2. Download the macOS version: Click the download button specifically tailored for macOS to get the installation package.
- 3. Install and start working: Open the downloaded file, drag WPS Office to your Applications folder, and launch it to instantly edit your documents.

Frequently Asked Questions
What does OneDrive Error Code -1 mean on macOS?
Error code -1 usually indicates that the background process responsible for OneDrive's Files On-Demand feature failed to initialize. It is often caused by outdated cache files or incorrect system permissions following a macOS update like Sonoma.
Will running the reset command delete my locally stored files?
No. Running the 'ResetOneDriveApp.command' only clears the application's configuration settings and cache. Your locally synced files remain completely safe, though OneDrive will need a few minutes to verify them against the cloud once restarted.
Why does Files On-Demand fail to start when adding a second account?
This failure often happens due to conflicting local folder paths or credential caching issues between the primary personal account and the new organizational account. Resetting the app forces macOS to clear these conflicts and properly allocate separate environments for each account.




