## Error message
```text
80070002
```

## TL;DR
Check the device first: the Intune management extension log shows the missing path, the download cache may hold a truncated payload, and disk space or permissions can masquerade as a missing file. Clear the bad state, fix the package, and let the retry succeed.

## Steps
1. Open the Intune management extension log on the device and find the 80070002 entry.
   Expected: The entry names the missing file or failed download.
2. Check free disk space and the download cache for truncated or locked files.
   Expected: You see whether the device or the payload is at fault.
3. Clear the corrupted cache entry or free disk space as indicated.
   Expected: The device has a clean slate for the retry.
4. Trigger a sync from Company Portal or Intune and watch the deployment.
   Expected: The deployment succeeds.

## When to use
- You are troubleshooting from the device rather than the console
- The same package works on other devices (device-specific state)
- The log mentions a download or cache path

## When not to use
- Every device fails the same deployment (fix the package in the console)
- The device is not enrolled (enroll first)
- The code comes from a different agent like Windows Update

## Why this happens
The Intune client downloads payloads to a local cache before executing. Truncated downloads, locked files from antivirus, or full disks all surface as file-not-found when the installer runs, even though the package in the console is fine.

## Edge cases
- Antivirus real-time scanning can lock the cache mid-write; exclusions for the cache path help.
- A sync from Company Portal retries faster than waiting for the scheduled check-in.

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_HkNVaaRLffZkGhGcv-QLbQ
