The operation can’t be completed because an unexpected error occurred (error code -8058).

Hi Everyone,


I am keep getting this error when I try to copy a file or folder to my desktop even though I can create a new folder on desktop. I have tried copying a single file and folder with multily files in it but still getting same error.


I have multiple machines (Mac Pro) which are giving me same error and all of them has same Lion OS X (10.7.4). I have repaired the disk permissions but that would not fix this issue.


Any suggestions/ideas/thoughts ?



Thanks,

Posted on Sep 6, 2012 10:22 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 1, 2014 4:23 PM

Unlike the original Mac OS, Mac OS X has a system of preference storage that involves a programmer-friendly, user unfriendly construct, the plist. Plist is short for "property list".


With fairly regular frequency, these preference files or "plists" get corrupted under Mac OS X. Worse, the corruption is largely undetectable with plists. This means that the plist file can become corrupted, the operating system facilities can't tell, the application tried to read the plist and digest the data, the corrupted data gets into the app, the app malfunctions, no clue as to why except some crazy error code that was eventually generated within the app because of an operation that went bad because a long time before, there was undetectable garbage read in from the plist file.


Ok, here is the good news. The preferences or plist files can be deleted and the worst case is that you lose some of your app settings you modified, usually through the "Preferences" menu item under the menu named after the app. In this case the menu is named "Finder" and the item is "Preferences".


By deleting the file, you remove the corruption, the app (Finder) recreated a default plist the next time it is run (for Finder, that typically means reboot unless you do some command line work). New plist is clean, you can reset the preferences, Finder is ok until it happens again.


I posted my solution because it was the third time it had happened to me last year and figured others were having the same issue, and the same frustration with "google it" style answers ;-)


But before you go looking for an app that helps you detect corrupt plists, know that I have never had any of them work due to how the plist is designed. It has been a manual (and regular) effort since the inception of Mac OS X. This is one of the system's Achilles heals.

36 replies

Aug 21, 2015 12:10 PM in response to baltwo

Thanks baltwo! Though I must have had a mental blackout - just clicking on the Finder icon relaunches it, like it does for every other program that has a desktop icon. I'm sorry for posting such rubbish. 😊


When you say OPT-click, did you mean the cmd button?


Lastly, how do you format posts here? Since it doesn't like BB code.


EDIT: heathf, thanks for the terminal commands, I wish I was proficient in this as in the past the option to use terminal has solved quite a few issues, but I always have to ask someone what to type. However my problem isn't so much copying of a file, it's when I try to paste it I receive this pesky error message.

Dec 3, 2016 2:11 PM in response to watsont.cbc

They are not the lock file per se but they are temporary files for the plist.


If you're trying to remedy the problem delete any file with a name that starts


com.apple.finder.plist


When a new file is written, the system will throw some random stuff after the "plist" like you are showing. Then it will delete the regularly named file and rename the new one without the garbage after 'plist'. By getting rid of all such files starting with that pattern above you are clearing the preferences and any failed attempt to store new ones. Clean slate.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The operation can’t be completed because an unexpected error occurred (error code -8058).

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.