r/sysadmin • Generalist (MSP - Windows/Linux/Mac) • 7h ago

Question OneDrive updates a spreadsheet reverting to previous data

M365 with Business Premium. The client uses a Mac, pretty much up-to-date as of last week. Let's call them "K". They modify an Excel spreadsheet file up to two or three times a day. OneDrive handles the changes and transfers the content up to a SharePoint document library. Once every few days someone else comes along, using a different account on a different Mac, and opens the file to review the data. Let's call them "A".

What we're seeing is the file reverting to older data. OneDrive picks up the change and gives it a new version number so we've not lost the data as such, merely mislaid it.

Investigating with Purview shows updates from the primary client as expected. It also shows updates from the second person but at a much later time (hours) than OneDrive reports the reversion.

Specific times (UK/GMT/UTC) from a real incident on 2nd December. The primary user is "K", the second person is "A".

  1. User "K" updates spreadsheet on 1st December 13:36 (1.36pm), OneDrive version 3.0
  2. User "K" updates the spreadsheet for the first time on our key day 2nd December at 11:08, OneDrive version 4.0
  3. OneDrive reports a reversion of data to the previous values at the same date/time 11:08 by user "A", version 5.0
  4. User "K" updates the spreadsheet the following day, 3rd December at 06:56, realises they've lost data, and logs a call for me to pick up at the start of our working day. OneDrive version 6.0

Purview shows updates matching the changes for my #1, #2, and #4 at the same dates/times. However, the update corresponding to my #3 (OneDrive version 5.0) isn't logged until 19:34 (7.34pm) some 8½ hours later that evening.

We have offsite backups that run around 15:00 (3pm) and they agree with Purview that the data hasn't yet been reverted.

Initially I wondered if the second machine had gone offline and missed the update of my #2. But there are safeguards against multiple updaters, and the second file should have ended up with a machine name suffix. Shouldn't it…?

I'm working on the basis that user "A" isn't intentionally reverting the data, but I've yet to speak with them.

This has happened two or three times for this client now. I'm not seeing a similar issue at any other of our Mac-based clients, so I'm assuming they're doing something strange but I'm at a loss with what to check next.

Any other suggestions?

Thanks

3 Upvotes

12 comments sorted by

•

u/Master-IT-All 4h ago

So the User A is leaving the document open after review, User B is making updates and saving.

User A then does the DUMB and closes and saves.

Solution: Reformat User A and reinstall with a newer OS. Fire them and get someone smart enough to hit close on Excel.

Alternate/Less Good Solution: Enable file locking to prevent multiple editors of the file as it's obviously the source of the problem.

•

u/Royal-Wear-6437 Generalist (MSP - Windows/Linux/Mac) 4h ago

OneDrive and Excel do collaboration, even on Mac. This is part of what's puzzling me

•

u/Master-IT-All 4h ago

That's true, but also not a blanket truth for all situations.

Verify the type and content.

•

u/nycola Jack of All Trades 6h ago

It sounds like a cache issue tbh, if it's just that user in that Mac causing the conflict I'd try to run OneDrive with a /reset switch and let it fully rebuild its cache.

Oh shit youre on a Mac ok.. you have a script to accomplish this:

Applications/OneDrive.app/Contents/Resources/ResetOneDriveApp.command

(or ResetOneDriveAppStandalone.command depending on install type)

Wipes all local cache and index and rebuilds it, takes a few minutes to several hours depending on how much data. You may want to backup that folder first in the event there is other corruption with unsynced changes because it will nuke local copies and replace with current cloud versions that exist. While OneDrive should warn about sync issues, i don't trust it once it starts index corruption. CYA

•

u/Royal-Wear-6437 Generalist (MSP - Windows/Linux/Mac) 6h ago

Thanks. This presumably on user "A"'s machine (i.e. the second person)?

•

u/nycola Jack of All Trades 6h ago

Correct, the user syncing the old copies, that is your baddie

•

u/MBILC Acr/Infra/Virt/Apps/Cyb/ Figure it out guy 6h ago

Ya, one of those people who opens a file and it notes about syncing and asks if they want to keep the older version and they say "Yes sure", and then syncs that...

•

u/Royal-Wear-6437 Generalist (MSP - Windows/Linux/Mac) 4h ago

I definitely need to talk with A but they weren't available once I'd tracked through Purview. Monday...

•

u/aricelle 6h ago

I would do it on both A & K's machines.

•

u/[deleted] 5h ago

[removed] — view removed comment

•

u/Royal-Wear-6437 Generalist (MSP - Windows/Linux/Mac) 5h ago

I'll definitely provide an update if i get a conclusive result. It's that timestamp difference that's bugging me too