Solved Onedrive can open all files except exe files. Error 0x80070017C. The cloud operation is invalid.


mystvearn

Member
Local time
2:49 PM
Posts
6
OS
Windows 10
I can access all my files in onedrive except exe files which I've downloaded previously. When I click the file, it says Error 0x80070017C. The cloud operation is invalid.

Any ideas how to fix this?

Thanks
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    Manufacturer/Model
    Own built
    CPU
    Ryzen 5 3600
    Motherboard
    Gigabyte Auros B550M
    Memory
    32 GB DDR4
    Graphics Card(s)
    Asus Strix GTX 780 6 GB
    Sound Card
    on board
    Monitor(s) Displays
    Dell U2713HM, Dell U2715H, 1080p philips monitor
    Screen Resolution
    2560x1440*2
    Hard Drives
    1
    PSU
    650W

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
Hi and welcome to the forum. Sometimes, a corrupted file is stuck in your one drive folder, which can cause this type of error. Here are a couple of articles that discussed this problem in Windows 10, but the solution should still be valid. Bypass step 1,the part regarding the referenced windows update as that only applied in Windows 10 and go to step 2..
Work Folder sync Error 0x8007017C, The cloud operation is invalid on Windows 10
I suggest you create a restore point before you try the workaround.
To create a restore point type restore in the search box, then click create a restore point in the search results above. Select your C: drive, then click create, give it a name, then click create again.

If that does not work for you, you also might try resetting the onedrive app.There are two procedures, one for the the onedrive desktop app and one for the store app. Use the one for whichever onedrive you have. Reset OneDrive

If neither of these solve your problem, post back and someone else will have more suggestions.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

mystvearn

Member
Thread Starter
Local time
2:49 PM
Posts
6
OS
Windows 10
Thanks. I restarted my PC, and that solved the problem.
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    Manufacturer/Model
    Own built
    CPU
    Ryzen 5 3600
    Motherboard
    Gigabyte Auros B550M
    Memory
    32 GB DDR4
    Graphics Card(s)
    Asus Strix GTX 780 6 GB
    Sound Card
    on board
    Monitor(s) Displays
    Dell U2713HM, Dell U2715H, 1080p philips monitor
    Screen Resolution
    2560x1440*2
    Hard Drives
    1
    PSU
    650W

geogguy

New member
Local time
11:49 PM
Posts
6
OS
Windows 11
The OneDrive reset procedure works but I have to run that command every time I restart my laptop. Is there a permanent fix?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Intel 5
    Memory
    8 gb
    Hard Drives
    1 tb ssd

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
@geogguy Your issue is not quite the same as the OP. In your case, the first thing I would suggest is to open a command prompt as administrator and type sfc /scannow
If you have to reset it at every boot, something is interfering with it so the first thing to do is verify the integrity of Windows and then go from there..
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

geogguy

New member
Local time
11:49 PM
Posts
6
OS
Windows 11
I just ran sfc - no issues and the problem persists. Are you suggesting I need to reinstall Windows 11?
Things I've tried:
Reinstall one Drive from the Microsoft site
Since the problem relates to just Office files (mostly Excel) I reinstalled Office from my subscription
If I download the affected file from the cloud using my browser then re-save it to OneDrive it works fine thereafter
The Excel files that won't open in Excel. I get two error messages in Excel. The first is we can't open the file. The second is explanations that the file moved, is corrupt or in use. The file will open in notepad but still won't open in Excel unless I download them from the cloud or reset OneDrive
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Intel 5
    Memory
    8 gb
    Hard Drives
    1 tb ssd

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
I was going to suggest you uninstall and reinstall onedrive but you already did it. What happens when from ofc365 you create and save a new excel spreadsheet. Are you then able to retrieve and open that same file without issues thru onedrive? These files stored in onedrive that indicate corruption, were they also created by Ofc365 or another version of Office? Approximately how many files are we talking about?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

geogguy

New member
Local time
11:49 PM
Posts
6
OS
Windows 11
The files were all created in Office 365. Te problem happens with older files and current files. It is not consistent which filew will have a problem. There is not indication via OneDrive icons which files are problematic until I try to open them. After I try a red x shows in the icon position io file =e explorer. I've had trouble with at least 100 Office 365 files. No other files seem to be affected. Adobe, Quicken, Affinity, Finale, Photos and ToDIST all seem to work just fine, it's just Office 365 files.

I reinstalled Office 365 64 bit and checked to make sure that OneDrive is also 64 bit. The problem seems to be random. The very mysterious part is that when it happens with a file, Excel won't open it because it can't find it but Notepad can find it and open it just fine. So can Google Sheets (upload from my computer).

The file also opens just fine if I close OneDrive first. If I then open OneDrive while the file is open and save it, I get a message to reconnect it to OneDrive which seems to work okay but if I close the file and try to reopen it, Excel gives me the same error that it can't be found. Zapier can't find it either until I reset OneDrive.

Attached are the two error messages I get in Excel.

I tried to set up a Batch file to run OneDrive.exe /reset but it won'texecute that way. Besides, after the reset it take 8 hours for my two OneDrives to re-sync (one is a personal Microsoft account and the other is a Microsoft Business account).
 

Attachments

  • OneDriveFirstFrrorMessage.png
    OneDriveFirstFrrorMessage.png
    8.1 KB · Views: 2
  • OneDriveSecondFrrorMessage.png
    OneDriveSecondFrrorMessage.png
    12.2 KB · Views: 2

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Intel 5
    Memory
    8 gb
    Hard Drives
    1 tb ssd

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
I will start off by saying I am not a Ofc365 expert, but I have read a number of articles where various issues were fixed by adding a trusted location. See if it might apply to your problem. Add, remove, or change a trusted location

I would suggest you contact Ofc365 support for this issue. I'm sure you will have to start with chat and escalate from there. We all know it's like pulling teeth to get an actual human when we have to contact any major company these days. Contact - Office Support
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

geogguy

New member
Local time
11:49 PM
Posts
6
OS
Windows 11
Trusted Location didn't help. Neither did removing OneDrive and the starting it from Microsoft OnDrive page rather than downloading it from my account. Also tried switching to Office 365 32 bit. Nothing seems to help. ASUS Warranty services suggests to reset Windows to factory default and start over. That, however, involves reinstalling drivers, software and a myriad of other things. If I had any confidence that would work I'd try it but frankly I think it's a Microsoft office/OneDrive software problem not a Windows 11 problem.

Tomorrow is a better day to start a battle to get through Microsoft defenses.

Thanks for your suggestions. I'll let you know if I get a solution from Microsoft.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Intel 5
    Memory
    8 gb
    Hard Drives
    1 tb ssd

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
reset Windows to factory default and start over
IF your laptop came with 11 and has a factory recovery partition, that would work leaving all original drivers intact but removing your files and apps. However, if your laptop came with 10 and you upgraded to 11, your factory recovery partition would be for Windows 10.

You can always use the Windows reset feature using the 'keep your files' option but it will remove your apps and settings.

I always use system backups to restore my system, but if I ever face a situation where windows needs to be re-installed, I much prefer to do a clean install over a reset since it will not install all the bloatware from the manufacturer. I copy my personal files and folders to an external drive and then do this.
A clean install must be done in unallocated space so make sure to delete all current partitions during the install process.
Windows update should find and install your drivers after a clean install. Any that might be missing can be manually reinstalled from the manufacturer's website. You then copy the saved files and folders into your user account in the new installation and reinstall your apps.

I would be remiss if I didn't advise you to establish some kind of backup plan once your system is completely working as it should. Backups are invaluable.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

TraderGary

Stock Market Wizard
Member
VIP
Local time
2:49 AM
Posts
428
Location
Atlanta, GA, USA
OS
Windows 11 Pro
Are you using OneDrive in "Files On Demand" mode? That is the default. In "Files On Demand" mode the file name appears as if it is local, but the file actually may only exist in cloud OneDrive. If a OneDrive file isn't stored locally, it has to be downloaded from cloud OneDrive before it can be used.

OneDrive settings has a checkbox for "Files On Demand" mode. I uncheck the box and mirror all my OneDrive files locally in real-time.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9510 OLED
    CPU
    11th Gen i9 -11900H
    Memory
    32 GB 3200 MHz DDR4
    Graphics Card(s)
    NVIDIA® GeForce® RTX 3050Ti
    Monitor(s) Displays
    15.6" OLED Infinity Edge Touch
    Screen Resolution
    16:10 Aspect Ratio (3456 x 2160)
    Hard Drives
    1 Terabyte M.2 PCIe NVMe SSD
    2 Thunderbolt™ 4 (USB Type-C™)
    1 USB 3.2 Gen 2 (USB Type-C™)
    SD Card Reader (SD, SDHC, SDXC)
    Mouse
    Logitech MX Master 3
    Internet Speed
    700 Mbps, 24 Mbps
    Browser
    Microsoft Edge (Chromium) + Bing
    Antivirus
    Microsoft Windows Security (Defender)
    Other Info
    Microsoft 365 subscription (Office)
    Microsoft OneDrive 1TB Cloud
    Microsoft File History
    Microsoft Outlook
    Microsoft OneNote
    Interactive Brokers Trader Workstation
    Lightroom/Photoshop subscription
    DaVinci Resolve Studio

geogguy

New member
Local time
11:49 PM
Posts
6
OS
Windows 11
Seven hours of phone time with Microsoft Tech controlling my screen and we got nowhere, in fact I was worse off. They were of little help.
I solved the issue armed with a little more knowledge from Microsoft and ASUS Customer Service who recommended reinstalling Windows but for me, that wasn't an option because I have some software that I'd need discs to load but this machine doesn't have a drive. This is a new machine that has had this problem since startup after I migrated from my old Windows 10 to this new Windows 11 machine using PC Mover so there was no working restore point to go back to.

Final resolution:
1) Made my existing User account a Local Account and closed OneDrives
2) Opened a new User and added OneDrive and Office 365. It operated fine but half my software was in the old account.
3) Did a windows reset from the cloud - reset without bloatware
4) Opened my original User account. Everything seemed to be there including all software.
5) Opened OneDrive and added my two OneDrives (one personal, one business)
6) Reactivated Office 365 from subscription and tested. Voila, problem solved!!!!
7) Made new account a local account,
8) Changed my original account back to an outlook.com login then deleted the new temporary account
9) The only other thing I had to do was reactivate Adobe Cloud. Everything else is fine including email accounts and drivers.

So, it seems that Windows 11 Reset is nowhere near as troublesome as Reset used to be, i.e. all my files and non-subscrption software was preserved and reactivating subscription didn't take very long (only had two to worry about).
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Intel 5
    Memory
    8 gb
    Hard Drives
    1 tb ssd

glasskuter

Well-known member
Pro User
VIP
Local time
1:49 AM
Posts
2,272
Location
The Lone Star State of Texas
OS
Windows 11 Pro 21H2 22000.832
Good troubleshooting! Now, please do yourself a favor and establish some sort of backup plan for your computer and backup regularly. I promise you, a full system backup will save you someday.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 21H2 22000.832
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Top Bottom