Fix OneDrive's sync .ds_store error with these simple steps

Reading time icon 3 min. read


Readers help support Windows Report. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help Windows Report effortlessly and without spending any money. Read more

OneDrive client shows sync .ds_store error

At times, Microsoft OneDrive may stop syncing with your Microsoft account and show .ds_store error. Several users have reported similar OneDrive sync .ds_store error in the Microsoft Community forum:

Hi, I have this issue on my mac: onedrive sync is blocked by .ds_store files. Onedrive is up to date. Mac OS is up to date. Using Office for Mac also up to date.

If you are also troubled by this, here are a couple of troubleshooting tips to help you resolve the OneDrive sync .ds_store error in macOS.

What can I do if my OneDrive client shows sync .ds_store error?

1. Fix hidden issues with a terminal command

Onedrive sync .ds_store error

  1. Open your Applications folder.
  2. Click on the Utility folder.
  3. Double-click on Terminal to launch it.
  4. Alternatively, you can also press Command + Spacebar to launch Spotlight. Type Terminal and click on the search result to launch Terminal.
  5. In the Terminal, enter the following and hit enter:
    find /users/username/onedrivepath/ -name “.DS_Store” -depth -exec rm {} ;
  6. In the above commnd “/users/username/onedrivepath” is the path being synchornized for OneDrive, so change it accordingly.
  7. Once the command is executed, relaunch the OneDrive client and check for any improvements.

Note: If you are unable to get the right path for the offending folder, try this. After launching the Terminal, type find and hit enter. Now drag and drop the offending folder onto the terminal window. The terminal will automatically detect the folder path.

2. Stop .sds_store files from syncing

Onedrive sync .ds_store error

Note: This step requires you to have Office 365 admin access.

  1. Quit OneDrive if running.
  2. Open OneDrive Admin Center on your browser.
  3. In the One Drive Center, go to Sync Settings.
  4. Check the “Block Syncing of Specific File Types” option.
  5. Next, enter .ds_store in the given field.
  6. Save and exit the account.
  7. Now go to Applications > Utilities.
  8. Double-click on Terminal to open it.
  9. In the Terminal type the following command and hit enter:
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  10. Now launch a web browser and log in to your OneDrive account online.
  11. Search for all the .ds_store files and delete them.

By following the second step you can eliminate any possibilities of getting the error again.


3. Manually delete the files

Onedrive sync .ds_store error

  1. If the issue persists, try to delete the .ds_store files manually from the OneDrive folder.
  2. Open the OneDrive folder and then find all the .ds_store files.
  3. Delete the problematic files from the folder.
  4. If you are unable to delete the files, do the following.
  5. Create a new folder and move all the sub-folders and files onto the new folder.
  6. Once the files are moved, delete the offending folder completely.
  7. Now try to sync again and check for any improvements.

The ds_store files generated by the OneDrive for Mac results in the Onedrive sync .ds_store error. By following the steps in this article, you can resolve the error in no time.

If you have any additional questions or suggestions, don’t hesitate to leave them in the comments section below.

RELATED STORIES YOU MAY LIKE:

More about the topics: error, mac os, onedrive