Error using copyfile The requested lookup key was not found in any active activation context

5 visualizzazioni (ultimi 30 giorni)
Hi,
I obtained the error as on title for the following commands.
cd subfolder
copyfile('filename.txt', '../')
cd ..
The error also happens if I write as
main_folder = pwd;
cd subfolder
copyfile('filename.txt', main_folder)
cd ..
Please let me know of any possible reasons,
Thanks
  4 Commenti
Walter Roberson
Walter Roberson il 30 Lug 2019
Nearly everything I find says that it is due to broken explorer either after virus fixes or after windows update. http://www.mitchellenright.com/2011/11/01/requested-lookup-key-was-not-found/ talks about issues that can arise if you do a system repair after having upgraded IE versions.
I do find a few other possibilities:
https://pradystechblog.wordpress.com/2010/04/27/error-14007the-requested-lookup-key-was-not-found-in-any-active-activation-context/ Which deals with Windows Installer which I would not expect to be relevant
https://answers.sap.com/questions/3538416/ui-error-the-requested-lookup-key-was-not-found-in.html talks about SAP and connection strings (whatever those are) and says that really it is a Microsoft bug
https://helpdesk.coresystems.ch/hc/en-us/articles/201972041-The-requested-look-up-key-was-not-found-in-any-activation-context-Nachschlageschl%C3%BCssel- is more SAP related that I don't think will help
https://www.veritas.com/support/en_US/article.100016583 sql server not properly registered which seems irrelevant
https://help.extensis.com/hc/en-us/articles/115007239307-Portfolio-Media-Engine-installation-fails-with-Internal-Error-27555-Win- an installer needs a user named Administrator which should also be irrelevant to your situation
As a vague possibility: the bit about missing username during an installation hints to me that just maybe there could be problems if you were copying between systems and the file user credentials do not exist on the destination. I have low confidence in this being the case.
I would suggest that you ask your IT people to do a process trace as you attempt the file copy. But first it would probably be good to reinstall matlab in case some matlab dll got unregistered or corrupted.
Dave Lee
Dave Lee il 2 Ago 2019
Modificato: Dave Lee il 2 Ago 2019
I found the reason. I was copying a mexw64 file which was still opened by Matlab. After using command "clear functions", I was able to copy the file. Also I should not move to the subfolder to do copy but should stay in the main folder to do copy. Doing in the main folder will prevent the message above to stop Matlab from running the rest and we can always use status of the command to handle

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Install Products in Help Center e File Exchange

Prodotti


Release

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by