# Error code -36 on a Mac: “some data can’t be read or written”

Error message · Updated 27 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **A read or a write failed part-way through a copy.** The Finder stops the whole operation and names the item it was handling. The fault is in that file, or in the drive it sits on or is going to.
- **If the named file starts with `._`,** the built-in `dot_clean` command usually clears it. Those are small companion files macOS makes on drives that aren’t in a Mac format.
- **If it names a real file,** copy in smaller batches to find which one fails, then run First Aid on both drives. A file that can’t be read from a healthy drive is damaged; one that can’t be read from a failing drive is a warning.

## 1. What the message means

The full alert, as macOS 15.5 words it, is “The Finder can’t complete the operation because some data in “name” can’t be read or written. (Error code -36)”, with the name of a file or folder between the quotation marks. Disk Utility has the same error for its own jobs, beginning “The operation can’t be completed because some data in…”.

Apple has no current support article for it, so there is no official list of causes. The sentence itself is the explanation: while copying, moving or deleting, the Finder asked a disk for some data, or tried to put some there, and the disk reported failure. It appears most with external drives, memory cards and network shares, because that is where a cable, a format difference or a worn device can get in the way.

Two different situations sit behind the same words, and the name in the alert tells them apart:

- **A name beginning `._`** such as `._IMG_0412.JPG`. On volumes that can’t hold a Mac file’s extra attributes, macOS keeps them in a second, hidden file with that prefix. If the pair gets out of step, the Finder trips over the companion, not over your photo. What those files are is covered in [._ files](https://siftmac.com/safe-to-delete/dot-underscore-files).
- **An ordinary name.** Then the data of that file, or the spot on the drive where it is stored or going, could not be read or written.

## 2. How to fix it

### When the alert names a ._ file: dot_clean

`dot_clean` is part of macOS. Its manual page says that for each folder it “recursively merges all ._* files with their corresponding native files”, keeping the most recent attribute when both sides have one. Point it at the folder you were copying, on the drive where the `._` files are. The easy way to get the path right is to type the command and a space, then drag the folder from the Finder into the Terminal window:

```
dot_clean -v "/Volumes/USB DRIVE/Photos"
```

`-v` prints what it does. Two options from the same manual page change how far it goes: `-n` deletes a `._` file only if there is no matching native file, and `-m` always deletes them. Start without either. Then run the copy again.

### When it names a real file

1. **Find the file.** Copy the folder in halves, then halves again, until only the item that fails is left. Everything else is now safely across.
2. **Try that one file another way.** Open it in its app. Copy it on its own. If it came from a camera card, try the camera’s own cable or another card reader. A file that opens but won’t copy often copies on a second attempt once the connection is changed.
3. **Change the connection.** Use another cable and port, and take any hub out of the chain. Apple’s repair article says to check an external device’s cable, connections and power.
4. **Run First Aid on both ends.** In Disk Utility, choose View › Show All Devices, then run First Aid on the source and on the destination: each volume, then each container, then the device. Apple’s steps and the possible results are under [First Aid found corruption](https://siftmac.com/errors/first-aid-found-corruption).
5. **Check the destination has room and can be written.** A full disk gives a different message, [not enough space to copy](https://siftmac.com/errors/not-enough-space-to-copy), but a drive that mounted read-only refuses writes. Apple’s notice for that case says you can still open or copy files on the disk but can’t save changes, and to back up and reformat it.

## 3. If error -36 keeps coming back

- **Always the same file:** that file is damaged. Replace it from a backup or the place it came from. If First Aid reported overlapped extent allocation, Apple says the affected files are listed in a `DamagedFiles` folder at the top of the disk.
- **Different files each time, on one drive:** the drive, its enclosure or its cable is failing. Copy what matters to another disk first, the most valuable folders before the rest, and stop using the drive for anything new.
- **Only on a network share:** copy to the Mac’s own disk first, then on to the share, so you learn which hop fails.
- **Only with files downloading from iCloud Drive:** let them finish downloading before you copy them. The Finder has a separate message for that state, “The operation can’t be completed because the item needs to be downloaded”.
- **On the Mac’s internal disk:** run First Aid from macOS Recovery, and make sure your Time Machine backup is current before you do. Repeated read errors on an internal disk are a reason to contact Apple.

> Skip advice to delete Finder preference files or reinstall macOS for this error. The message is about data on a disk, and the answer is found by testing the file, the cable and the drive in that order.

## Questions

### What is error code -36 on a Mac?

It is the Finder reporting that some data couldn’t be read from one disk or written to another during a copy, move or delete. The alert names the item it stopped at.

### Does dot_clean fix error code -36?

It does when the problem is a `._` companion file on a drive that isn’t in a Mac format. It merges those files into their partners. It can’t repair a file whose own data is unreadable.

### Why do I get error -36 copying to an external hard drive?

Either the drive couldn’t store part of the file or the source couldn’t supply it. Change the cable and port, run First Aid on both drives, and copy in smaller batches to find the item that fails.

### Is error code -36 a sign my drive is failing?

Not by itself. One bad file is common. Many different files failing on the same drive, or First Aid errors on it, is the pattern to take seriously: back that drive up first.

## How SiftMac handles it

SiftMac doesn’t repair files or disks and plays no part in this error. Its duplicate and large-file scans skip hidden files, so `._` files don’t appear there; `dot_clean` is the tool for those.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is up to 20 GB of cleaning for 7 days).

## Sources

- [dot_clean(1) man page: merge ._* files with corresponding native files](https://keith.github.io/xcode-man-pages/dot_clean.1.html)
- [Apple: How to repair a Mac storage device with Disk Utility](https://support.apple.com/en-us/102611)
- [Apple: Repair a storage device in Disk Utility on Mac](https://support.apple.com/guide/disk-utility/repair-a-storage-device-dskutl1040/mac)

## Related

- [Is it safe to delete ._ files, and what does dot_clean do?](https://siftmac.com/safe-to-delete/dot-underscore-files)
- [Finder says “Not enough disk space to copy”: what it means and how to fix it](https://siftmac.com/errors/not-enough-space-to-copy)
- [“First Aid found corruption that needs to be repaired”: Apple’s next steps](https://siftmac.com/errors/first-aid-found-corruption)
- [“Disk Not Ejected Properly” on a Mac: why it appears and what to check](https://siftmac.com/errors/disk-not-ejected-properly)

Canonical: https://siftmac.com/errors/error-code-36
