Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

usagora

macrumors 601
Original poster
Nov 17, 2017
4,869
4,460
Previously, if I searched for a file or folder with Spotlight that was located in my OneDrive folder, it would show up in the Spotlight search results with the normal folder or file icon, and then I could press cmd-enter to open the folder/file location. However, now, in Ventura, this is broken. The search results show the OneDrive app icon instead of a standard folder or file icon, and when I press cmd-enter, it takes me to the OneDrive app in my /Applications folder.

Not cool. Anyone else having this issue and discovered how to fix it? This happens even with OneDrive folders set to "Always Keep on This Device" so that's not the issue (which it shouldn't matter anyway).

Here's an example of my search results:
Screenshot 2022-11-10 at 4.16.39 PM.png


And here's what happens when I press cmd-enter:
Screenshot 2022-11-10 at 4.16.52 PM.png
 
  • Like
Reactions: otrebla_ and tyron
I am not using OneDrive, but Dropbox uses the same storage at ~/Library/CloudStorage. I have all my folders marked as "Always keep on this device" and spotlight indexes them correctly. Note Spotlight can't index the content if the file is not there!
 
I am not using OneDrive, but Dropbox uses the same storage at ~/Library/CloudStorage. I have all my folders marked as "Always keep on this device" and spotlight indexes them correctly. Note Spotlight can't index the content if the file is not there!

Well with OneDrive, every file shows up in Finder, but ones that are not downloaded locally show a cloud icon next to them. Spotlight certainly indexes these files too, as they show up in Spotlight search results.

I've now discovered that some files in my OneDrive folder Spotlight will show normally in search results (with the regular file/folder icon next to it, and then I can open the file itself or the file location), however many files and folders show up as I described in my OP with no apparent rhyme or reason. If they show up with the OneDrive app icon next to them (instead of the regular folder/file icon), they cannot be opened from Spotlight--attempting to simply opens the location of the OneDrive app itself (/Applications). Very bizarre and annoying!
 
If they show up with the OneDrive app icon next to them (instead of the regular folder/file icon), they cannot be opened from Spotlight--attempting to simply opens the location of the OneDrive app itself (/Applications).

Same behaviour here with OneDrive 13.1b2.

Spotlight's 'Search in Finder' does work as expected though, either when initiated from a Finder window or by selecting the last option in 'Related Searches' from the Spotlight menu.
 
  • Like
Reactions: usagora
Same behaviour here with OneDrive 13.1b2.

Spotlight's 'Search in Finder' does work as expected though, either when initiated from a Finder window or by selecting the last option in 'Related Searches' from the Spotlight menu.

Yes, I noticed that, but I constantly press cmd-space to quickly search, and it's very annoying that a ton of my OneDrive files cannot be opened this way anymore! Thanks for confirming it's not just me, though. I sure hope they fix this soon.
 
Just found another weird bug with OneDrive on Ventura. I received a completely blank notification just now!

Screenshot 2022-11-12 at 8.59.01 AM.png
 
Last edited:
Previously, if I searched for a file or folder with Spotlight that was located in my OneDrive folder, it would show up in the Spotlight search results with the normal folder or file icon, and then I could press cmd-enter to open the folder/file location. However, now, in Ventura, this is broken. The search results show the OneDrive app icon instead of a standard folder or file icon, and when I press cmd-enter, it takes me to the OneDrive app in my /Applications folder.

Yes, I confirm that behaviour. Must be a bug.

Yes, I noticed that, but I constantly press cmd-space to quickly search, and it's very annoying that a ton of my OneDrive files cannot be opened this way anymore! Thanks for confirming it's not just me, though. I sure hope they fix this soon.

I believe this is another bug in Command-space Spotlight.

It is all compounded by confusion about how OneDrive and "Files on Demand" work. I have loaded OneDrive (as well as Dropbox). Here is what I have found about how OneDrive works and consequent issues with Spotlight.

The storage of OneDrive files makes it difficult for Spotlight to index the content.

OneDrive stores files or placeholders in different locations. The files can be 1) only in the cloud, 2) stored locally in a hidden cache but not in the "sync root" (~/Library/CloudStorage/OneDrive), 3) stored both in the cache and the "sync root". When a file is not in the "sync root", a placeholder (name and thumbnail) is stored in the "sync root".

The "sync root" is located in ~/Library/CloudStirage, but is also shown in Finder's sidebar as "OneDrive". The two are the same.

Spotlight does index the content of files which are stored in the "sync root" - that is 3 above. It is unable to index content of files only in the local cache or only in the cloud.

So the obvious (but incomplete) solution is to go to the "sync root" (most easily done via the Finder sidebar OneDrive), select some folders, right click and choose "Always Keep on this Device". This is not sufficient, because "always on the device" can mean either in "sync root" + "cache" or just "cache". The "cache" is still on this device even if hidden. For Spotlight to work the file must be in the "Sync root".

Going back to the three states in my second paragraph:

1) Only in cloud - files/folders with the cloud and down arrow symbol: The file is not anywhere on the Mac, so Spotlight can't index the content. But there is a "placeholder" in the "sync root" and this is indexed by name.
2) On the device, but only in the cache - files/folders with both tick and cloud: Spotlight will index by name, but not any of the content.
3) On the device and in both cache and "sync root" - files and folders with tick but NOT cloud symbol. Spotlight can index theses fully.

With understanding of what Spotlight can index, lets look at opening files from a Finder search:
If Finder search can find the files (either because content has been indexed or just file name) then a double click will open the file. There will be a delay for files only in the cloud, but they will be downloaded and opened.

To get files into the "sync root" requires 1) the file is "always keep on device" and has been opened (a quicklook is not enough).

All the above is due to a) Files on Demand as defined by Apple, and b) how OneDrive has been implemented by Microsoft.

Dropbox has a slightly different (and less confusing) implementation with just two states - in the "sync root" or in the cloud. So "make available offline" means that the file is place in the sync root and fully indexed.
 
@gilby101 Ok, but AFAIK the "Files on Demand" implementation was implemented pre-Ventura and there were no issues with cmd-space Spotlight searches . . . until Ventura. So I don't think the issue is inherent to Apple's/MS's implementation but rather Apple breaking something with this latest macOS release.
 
  • Like
Reactions: tonyr6 and gilby101
I found a way to make it work normally for a few hours (or minutes): disable then re-enable the Onedrive Finder extension.

And how does one go about doing that? I'm not seeing anything that says Finder extension in the OneDrive app settings. Or is it a macOS setting?
 

Thanks. For the benefit of others:

1. System Settings > Privacy & Security
2. Scroll down to the "Others" section at the bottom and click Extensions
3. Click "Finder Extensions"
4. Un-check "OneDrive" then click "Done"
5. If you have the OneDrive app open, it should immediately detect that you've disabled the Finder extension and prompt you to reenable it to allow syncing. If not, then obviously do step 4 again but check/enable "OneDrive" instead and click "Done"
 
  • Like
Reactions: Nick3333
hello everybody having same difficulties.

I hope this configuration within the office application could help
1669804843614.png


Once enabled , you could open all the onedrive link that prior showing only as the onedrive link that cannot opened via spotlight

The option will be available when you open any office application i.e excel, powerpoint, or word.
Then click on excel -> preferences -> general
 
  • Like
Reactions: Nick3333
hello everybody having same difficulties.

I hope this configuration within the office application could help
View attachment 2120994

Once enabled , you could open all the onedrive link that prior showing only as the onedrive link that cannot opened via spotlight

The option will be available when you open any office application i.e excel, powerpoint, or word.
Then click on excel -> preferences -> general

The problem is there are tons of non-MS Office files I need to access with Spotlight too.
 
Am I missing anything? No solutions yet, right? with recent update to 13.1 with the hope that the problem will be solved even the temporal solution of turning finder extension on and off stopped working.

Someone has to get their act together!
 
Am I missing anything? No solutions yet, right? with recent update to 13.1 with the hope that the problem will be solved even the temporal solution of turning finder extension on and off stopped working.

Someone has to get their act together!

It's a mixed bag for me. Some OneDrive files I can access with command-space Spotlight search and others I get the OneDrive icon next to the file name and am unable to do anything with it.
 
  • Like
Reactions: jed2023
Hey everyone! I, too, have this same issue, and it's gotten to a point where I started to do some "deep" searching on the web for a solution. I found a super short post on Reddit where someone said to just:


I had nothing to lose and just performed the reset on one of my Macs running 13.1. It worked! I hope this isn't a short-term fix. Maybe someone else with this issue will give this a shot and report back. Thanks!
 
Last edited:
Hey everyone! I, too, have this same issue, and it's gotten to a point where I started to do some "deep" searching on the web for a solution. I found a super short post on Reddit where someone said to just:


I had nothing to lose and just performed the reset on one of my Macs running 13.1. It worked! I hope this isn't a short-term fix. Maybe someone else with this issue will give this a shot and report back. Thanks!
Thanks I am giving it a try now - have tried this many times when first updated to MacOS 13 but your post gave me a new hope!
 
Hey everyone! I, too, have this same issue, and it's gotten to a point where I started to do some "deep" searching on the web for a solution. I found a super short post on Reddit where someone said to just:


I had nothing to lose and just performed the reset on one of my Macs running 13.1. It worked! I hope this isn't a short-term fix. Maybe someone else with this issue will give this a shot and report back. Thanks!
Are you sure you are not finding the archived version of your files?
 
Last edited:
Hey everyone! I, too, have this same issue, and it's gotten to a point where I started to do some "deep" searching on the web for a solution. I found a super short post on Reddit where someone said to just:


I had nothing to lose and just performed the reset on one of my Macs running 13.1. It worked! I hope this isn't a short-term fix. Maybe someone else with this issue will give this a shot and report back. Thanks!

I've actually had to do this before for another reason, so I'll give it a try again for this issue! Thanks!
 
Hey everyone! I, too, have this same issue, and it's gotten to a point where I started to do some "deep" searching on the web for a solution. I found a super short post on Reddit where someone said to just:


I had nothing to lose and just performed the reset on one of my Macs running 13.1. It worked! I hope this isn't a short-term fix. Maybe someone else with this issue will give this a shot and report back. Thanks!
Sadly same rabbit hole again. Not working!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.