Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Dear friends


I have a problem with deleting some items from the Trash, and when try to delete these items it gives me this error: The operation can’t be completed because an unexpected error occurred (error code -22).


anyone help on this please

MacBook Pro, OS X Mavericks (10.9.4), 16G Memory and 1T hard disk

Posted on Jul 26, 2014 10:14 AM

Reply
8 replies

Aug 31, 2017 4:30 AM in response to Linc Davis

the files I'm trying to delete are in an external HD and this are my console massages:


8/31/17 2:23:39.653 PM revisiond[33]: sqlite3_step returned: 101 unknown error, for listToken:660

8/31/17 2:23:39.000 PM kernel[0]: /SourceCache/AppleFSCompression_kexts/AppleFSCompression-56.92.2/Compressors/Da taless/compressorType5Kext.c:538: Error: failed to get data

8/31/17 2:23:39.000 PM kernel[0]: decmpfs.c:1594:decmpfs_decompress_file: decmpfs_fetch_uncompressed_data err -22


and thanks for all the help.

Jul 26, 2014 11:44 AM in response to Elrasheed

Launch the Console application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Console in the icon grid.

The title of the Console window should be All Messages. If it isn't, select

SYSTEM LOG QUERIES ▹ All Messages

from the log list on the left. If you don't see that list, select

View ▹ Show Log List

from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.

The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

Please don't indiscriminately dump thousands of lines from the log into this discussion.

Please don't post screenshots of log messages—post the text.

Some private information, such as your name, may appear in the log. Anonymize before posting.

Dec 9, 2014 10:56 AM in response to Linc Davis

The file I am trying to get is on an external drive, as soon as i highlight it in my finder this comes up on the console. Also I cant repair it from the Disk Utility, it says it cant repair.


09/12/2014 18:52:44.000 kernel[0]: disk4s2: I/O error.

09/12/2014 18:52:44.000 kernel[0]: disk4s2: I/O error.


09/12/2014 18:55:15.606 mds[96]: (Warning) Volume: vsd:0x7fbeb606d600 Open failed. failureCount:7 {

DisabledRecycleCount = 7;

}

May 14, 2015 3:11 PM in response to Linc Davis

5/14/15 3:02:02 PMcom.apple.launchd.peruser.501[131](0x100109fe0.mach_init.Locum[1000]) Job appears to have crashed: Segmentation fault
5/14/15 3:02:02 PMcom.apple.ReportCrash.Root[1001]2015-05-14 15:02:02.186 ReportCrash[1001:2803] Saved crash report for Locum[1000] version ??? (???) to /Library/Logs/DiagnosticReports/Locum_2015-05-14-150202_localhost.crash
Sorry, the error code was -8003, not -22

Dec 20, 2016 11:34 AM in response to Elrasheed

Here's my Console message:

12/20/16 2:32:28.801 PM Finder[246]: CFStringRef __CFPasteboardIssueSandboxExtensionForPath(CFStringRef) : sandbox extension creation failed: client lacks entitlements? for path: [/Users/michenerengraving/Desktop/NEW_COMPILATION ␀␀␀␀␀␀343]

12/20/16 2:32:28.801 PM Finder[246]: CFDataRef __CFPasteboardCreateSandboxExtensionDataFromCFData(CFDataRef) : failed to obtain sandbox extension data for url [file:///.file/id=6571367.46575265/]

12/20/16 2:32:30.025 PM Dock[243]: No valid sandbox extension(s) for item: [789514] of flavor: [com.apple.security.sandbox-extension-dict] were created.

12/20/16 2:32:30.025 PM Dock[243]: No sandbox extension data for item: [789514] was found on the pasteboard.


Any help would be appreciated


Glenn

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

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