CD to OneDrive doesn't work on Windows 10 build 16273.1

I recently upgraded to the newest version of the Windows available to insiders and now I can't CD to OneDrive in Matlab. I can still use "dir" to list the contents of the OneDrive folder, and I can even view the files in it that I had open previously, but I can't actually change the working directory to reach them. Symbolic linking and shortcuts also don't work. I can still cd to OneDrive from both Windows command line and the WSL terminal, so it seems to be a Matlab specific problem.

1 comentario

Andreas
Andreas el 17 de Nov. de 2017
Editada: Andreas el 9 de En. de 2018
Update: Try the update for R2017b delivered on https://www.mathworks.com/support/bugreports/1609674
It works at least for our machines.
Old Text:
This seems to be a Problem of R2017b. R2017a still works on the same machine with the same paths.
Damn I have to rely on some new Simscape library components...

Iniciar sesión para comentar.

 Respuesta aceptada

Srikanth Sedimbi
Srikanth Sedimbi el 6 de Sept. de 2017
If you disable the "Files OnDemand" feature of OneDrive, you should be able to access OneDrive files from MATLAB. This is a MATLAB specific issue and there is no workaround in R2017b or any of the earlier versions. A solution may be available in releases after R2017b

11 comentarios

I have the same issue even after disabling "Files on Demand" feature of OneDrive. Is there a solution?
I waited for a day to let OneDrive sync before it started working again. Quite the vexing problem.
After disabling "Files on Demand" I'm still having the same issue and can't change directories to my OneDrive.
Is there another fix that people have used?
UPDATE:
Dyson Freeman's solution worked for me.
I can't cd to my OneDrive, but I can access all of my OneDrive's subfolders.
I had the same issue. After disabling "Files on Demand" and waiting for a few hours for it to update/sync with no change, I ended up uninstalling OneDrive, removing the remaining contents of the OneDrive folder to a backup location, then reinstalling it with "Files on Demand" disabled and letting it sync overnight with new versions of each file/subfolder. In the morning, I could use all the OneDrive subfolders (except the OneDrive folder itself as Dyson also observed). It could be that just waiting overnight for OneDrive to update would have solved the issue without the uninstall. On a separate PC, I only had to disable "Files on Demand" without the wait or uninstall. Certainly a vexing problem.
MATLAB 2016b, Windows Fall Creators Update 1709, Build 16299.19
I actually rely on the new files on demand feature so find this solution insufficient. I have all of my scripts on Onedrive to be able to go back and forth between computers and only selectively sync datasets that are otherwise too large for my limited storage.
James Bell
James Bell el 1 de Nov. de 2017
Editada: James Bell el 1 de Nov. de 2017
You can use Files On Demand for that specific file and copy over the datasets you want into the permanently synced folders. It's better than not being able to use Matlab at all.
I'm having this issue as well. Has anyone from the MathWorks officially acknowledged this?
They have forums to specifically avoid community interaction. You can always submit a bug, but they never responded to my reports before.
James Bell,
The Answers forum was modelled on StackOverflow, as a place for volunteers to interact. It was not created to "specifically avoid community interaction": it was designed as a tool to provide an enhanced service compared to the existing all-volunteer Usenet Newsgroup.
I have submitted a number of bugs through the official support services; I always get acknowledgement through that service.
Andreas
Andreas el 17 de Nov. de 2017
@James Bell: I opened a Support ticket and got message on the same day. They are working on the Problem, but have no idea whether we'll see fixes for this release.

Iniciar sesión para comentar.

Más respuestas (11)

Dyson Freeman
Dyson Freeman el 23 de Oct. de 2017
Editada: Dyson Freeman el 23 de Oct. de 2017
I've confused and tortured by this issue for almost 3 hours. The File on Demand was indeed responsible for this. I also verified that R2015b was function normally when I turn off the File on Demand. But R2017b still can't recognize the OneDrive folder. HOWEVER, you can try to locate the subfolders under the OneDrive folder, my 2017b can open them all except the OneDrive folder itself.

5 comentarios

hcr
hcr el 26 de Oct. de 2017
Editada: hcr el 26 de Oct. de 2017
My R2017b CD is not working even when "file on demand" is off.All folders in onedrive is not working.
Mark Roncoroni
Mark Roncoroni el 28 de Oct. de 2017
Editada: Mark Roncoroni el 31 de Oct. de 2017
I have only one folder in the oneDrive folder that I can not cd to (including the OneDrive itself), the rest I can still after taking the 'File on demand' off.
update:
I copied all the files from the one folder in OneDrive that I could not access to another folder in OneDrive, removed the old folder and made a new one with the same name. I can now access the new folder with the same name. Still have the issue where I can not access the main folder, but all the subfolders.
This is exactly what's happening to me. Matlab 2017b.
Andreas
Andreas el 17 de Nov. de 2017
I cannot open the subfolders regqardless of files on demand beeing active or inactive. (R2017b on build 16299.19)
Mariano
Mariano el 25 de Nov. de 2017
Same problem. Matlab R2016b, Windows 10 16299.19 and OneDrive 17.3.7076.1026.
Strangely, in R2015a there is no problem.
In other computer I work with, the Windows version is 15063.726 and I have no problems at all, despite having exactly the same version of One Drive.
Therefore, I think it is a problem of Windows, not OneDrive or Matlab.

Iniciar sesión para comentar.

Jie Huang
Jie Huang el 27 de Oct. de 2017
It works for me if "Files on Demand" feature of OneDrive is disabled.

4 comentarios

hcr
hcr el 29 de Oct. de 2017
what is your Matlab version?
Andreas
Andreas el 17 de Nov. de 2017
And what is your Windows build?
Matlab R2015a, Windows 1709 (OS 16299.64), and OneDrive 2017 (17.3.7076.1026).
Andreas
Andreas el 22 de Nov. de 2017
@Jie Huang: The problem exists from R2017b on. R2017a and earlier should be no problem.

Iniciar sesión para comentar.

Feiteng Li
Feiteng Li el 4 de Nov. de 2017
So updating to 2017b vision, has the problem Onedrive path can't be writtable and read solved?

3 comentarios

hcr
hcr el 4 de Nov. de 2017
No, the problem still exists.
+1 on problem still there.
I have no problems with using my directory under OneDrive in 2017a, but 2017b always give an error when I run the cd command. Interestingly enough, if you do cd, get the error, and dir, it did actually complete the cd command, but the tool will not make this the directory for running my program.
If I take the directory and put it in c:\Temp\<dir>, everything works find with 2017b. I even write protected the directory, and still no problems.
So something particular for cd under OneDrive.
Hopefully someone who has an in with the developers will see this and figure out what broke between 2017a and 2017b.
+1 on exactly the same problem here 2017b: I cannot access certain directories ('cd', via the 'open folder' dialog or by running a script in that directory) on the shared OneDrive (even if I disable Files On-Demand). On the non-shared OneDrive everything seems fine. 2017a: no problems at all.

Iniciar sesión para comentar.

Purring Bytes
Purring Bytes el 5 de Dic. de 2017
Files on demand is extremely useful feature, especially if your OneDrive is large (mine is 1.2 Tb) and you want to work from a laptop with limited space. This bug is clearly Matlab bug. All other programs (e.g. Mathematica, Origin) work just fine with OneDrive.
Andreas
Andreas el 12 de Dic. de 2017
Editada: Andreas el 12 de Dic. de 2017
Any updates on this topic yet? A bunch of our Windows users is migrating to Windows 10 and will face this problem soon.

1 comentario

My desktop never had an issue for some reason, but my surface pro did. I was able to path to all the subfolders after I created new folders and moved the data to them. The OneDrive folder itself though I still can path to, so while in Matlab I just have to expand the folder and path directly to one of the subfolders.

Iniciar sesión para comentar.

Andreas
Andreas el 14 de Dic. de 2017
As of today, the MATLAB R2018a prerelease should be available. The support told me, this should fix the problem.
Andreas
Andreas el 20 de Dic. de 2017
Editada: Andreas el 20 de Dic. de 2017
I get the following errors using R2018a:
Turgay Tekin
Turgay Tekin el 31 de Dic. de 2017
I have same problem with Matlab 2016a. Windows version is windows 10 Pro 1709 16299.125
I have changed Onedrive settings as you said and videos
"https://support.office.com/en-us/article/Learn-about-OneDrive-Files-On-Demand-0E6860D3-D9F3-4971-B321-7092438FB38E" but it still same.
If someone find the way how to fix, please share to us.
Artur Krupa
Artur Krupa el 19 de En. de 2018
Problem is not related with "FOD" function of OneDrive, because it can be enabled. Problem is when file you want to open is just a symbolic link (On Demand file) or file downloaded physically. I have already updated my MatLAB to 2017bU4 and still have 90% of files with On-Demand feature, but only folders with MatLAB files are phycically here and now everything is working.

1 comentario

So you're saying that a symbolic link not in a onedrive folder will still have problems opening?

Iniciar sesión para comentar.

Jonas
Jonas el 2 de Mayo de 2023
i´ve had the same problem. The solution was in my security options of windows. If controlled folder access is enabled, just allow matlab to pass throught.

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Ag. de 2017

Respondida:

el 2 de Mayo de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by