logo
search
OneDrive Error Codes

How to Fix OneDrive Account Setup Errors on macOS Sonoma

Khadija KhanKhadija Khan Oct 9, 2026 869 views

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.

How to Fix OneDrive Account Setup Errors on macOS Sonoma
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.
Before you start

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.

Solution 1Recommended

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.

1
Quit OneDrive completely

Click the OneDrive icon in the top menu bar, click the gear icon (Help & Settings), and select 'Quit OneDrive'.

2
Access the app package contents

Open Finder and navigate to the 'Applications' folder. Right-click on the 'OneDrive' application and select 'Show Package Contents'.

3
Run the reset command

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).

4
Restart your Mac

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.

5
Complete the account setup

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.

Reset the OneDrive Application and Restart the System
Setup Restored: Once the reset completes and the system is rebooted, OneDrive will resync your existing folders and allow secondary organizational accounts to be added smoothly.
Free Microsoft Office alternative

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. 1. Visit the WPS website: Go to the official WPS Office website using your Mac browser.
  2. 2. Download the macOS version: Click the download button specifically tailored for macOS to get the installation package.
  3. 3. Install and start working: Open the downloaded file, drag WPS Office to your Applications folder, and launch it to instantly edit your documents.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Lightweight installation with minimal impact on macOS system resources.Built-in, easy-to-use cloud synchronization without complex background processes.Completely free core features presented in an intuitive, tabbed interface.
microsoft office alternative - wps office

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.