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

What Causes "The operation couldn’t be completed. Undefined error: 0" Big Sur Defect?

A problem seems to exist with Big Sur Finder that can be discreetly identified when attempting to compress an application. The issue with the compression is not the actual problem but rather a symptom. When an application cannot be compressed and yields the following error:

("The operation couldn’t be completed. Undefined error: 0")


If this occurs, then a number of other Finder defect symptoms can be observed related to the given app. This is not a question about how to work around this defect in Big Sur, it is a question of "what causes this" and "can the macOS defect be avoided or fixed".


Some applications on Big Sur do not exhibit this issue, some do. The problem does not seem to be related to apps download from the web or from the App Store as it has occurred to apps that are sourced from both. (FinderMinder, open internet source. Apple Numbers, Pages, Keynote, App Store sourced).


The only way I have found to work around this is to obtain a copy of the app from some source that is not related to a macOS Big Sur storage volume. Unfortunately the problem seems to come back. I am not aware of any fix short of not using Big Sur. This problem occurred in the first release of Big Sur and is still occurring in 11.1. The applications were all present on the hard drive prior to loading Big Sur which suggests that the problem was created at the time of installation or after the launch of the file management system aka Finder.


The symptoms below relate to actions taken from a host MacBook Pro Touch Bar running Big Sur unless otherwise noted. When an application compression fails on the host, the other symptoms can be observed as noted. When an application does not fail to compress, the application then can be copied, moved, drug-dropped as expected and exhibit no errant symptoms.


Symptoms


Key:

Finder compress fails producing "The operation couldn’t be completed. Undefined error: 0"

Then:

  1. Drag through Screen Sharing to copy to another machine always fails
  2. Drag through Apple Remote Access (ARD) to another machine always fails.
  3. Copy app from local HD to Apple File Protocol (AFP) server volume always works
  4. Copy app from local HD to Server Message Block (SMB) file server volume fails
    1. Copy text file to same SMB volume works
  5. Copy app to AFP volume, then to SMB volume from AFP volume will sometimes partially fails producing a corrupt app at the destination, other times just failing indicating "Items can’t be copied to “Sharing” because you don’t have permission to read them."
  6. Deleting the partially failed copy fails with "The operation can’t be completed because the item “FolderColorizer” is in use."
  7. Drag the copy from AFP server volume through Screen Sharing or ARD to another machine always fails the same way as #2
  8. Compressing copy on AFP server sometimes works, sometimes fails the same as "Key"
  9. Dragging compressed copy from server volume to anywhere else noted above with any mechanism always works
  10. Decompressing the copy using any machine other than the source machine always fails with "Unable to expand "[appName]" into "[folderName]". (Error 1 - Operation not permitted.)
  11. Decompressing the copy on the original (MacBook) will produced a corrupted copy of the app


Posted on Jan 16, 2021 9:05 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 18, 2021 10:44 AM

It's not just the Archive utility that has issues. Copying in the Finder, copying through Apple Remote Desktop, Copying through Screen Sharing. The vast majority of my apps do not install sprawl (I do not use ones that do) and simply drag and drop install like they are suppose to with macOS. The three examples I provided all can be re-installed with the App Store or download from the source. Then they act normal... Zip / Archive, Copying... but only for a while. Eventually they become broken with Big Sur.

Similar questions

3 replies
Question marked as Top-ranking reply

Jan 18, 2021 10:44 AM in response to HWTech

It's not just the Archive utility that has issues. Copying in the Finder, copying through Apple Remote Desktop, Copying through Screen Sharing. The vast majority of my apps do not install sprawl (I do not use ones that do) and simply drag and drop install like they are suppose to with macOS. The three examples I provided all can be re-installed with the App Store or download from the source. Then they act normal... Zip / Archive, Copying... but only for a while. Eventually they become broken with Big Sur.

Jan 17, 2021 6:47 PM in response to BillCerniuk

I have had issues compressing standard folders or files to a .zip archive on macOS. A .zip archive may not be able to handle some file/folder names and may not be able to retain certain macOS meta-data.


You are better off creating a folder and copying the item(s) to it. Then use Disk Utility to create a new .dmg archive of the folder. Keep in mind many apps cannot be moved to another system as some apps require an actual installer to be used. This method is much better and more reliable and it is better at retaining macOS meta-data and permissions.

Jan 18, 2021 4:26 PM in response to BillCerniuk

If you are having other issues than just compressing items, then run Disk Utility First Aid on the hidden Container. To see the hidden Container you need to click on "View" within Disk Utility and select "Show All Devices" so that the Container & physical drive appears on the left pane of Disk Utility. Even if First Aid reports everything as "Ok" click on "Show Details" to see if there are any unfixed errors or warning. If there are unfixed errors listed, then you will need to erase the whole physical drive and restore from a backup or clone.


To look for possible software issues run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper.


FYI, I forgot to mention in my previous post that the macOS "compress" option failed for me on multiple older versions of macOS.


Sometimes you just need to reinstall macOS over top of itself or even perform a clean install. You may need to minimize what you restore from backup in case you bring the problem back to the clean install.

What Causes "The operation couldn’t be completed. Undefined error: 0" Big Sur Defect?

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