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

4 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2019-7-30
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 2019-8-2
编辑:Dave Lee 2019-8-2
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by