| Previous | Next |
| IMAPI_E_DATA_STREAM_READ_FAILURE | IMAPI_E_DIRECTORY_READ_FAILURE |
IMAPI_E_DATA_STREAM_CREATE_FAILURE
IMAPI_E_DATA_STREAM_CREATE_FAILURE occurs before successful content reading: IMAPI cannot create the data stream needed for a source file. Microsoft lists it for AddTree when one or more files are inaccessible, including permission-related cases. The directory may enumerate successfully while opening a particular file for data still fails.
Identify the first source file that cannot be opened as a stream
- Record the source path named in the error and the account running the image builder.
- Check file-open permissions, sharing conflicts, reparse/offline behavior, and whether the file disappeared after enumeration.
- Distinguish an open/create failure from a later
Readfailure; they have different lower-level causes.
A broad “directory access” check is not sufficient because enumeration and opening file data are separate operations. Test the exact source file using equivalent access at the time of the IMAPI call. If the tree is changing concurrently, snapshot or stage stable input before building the image. Do not replace the missing file with an empty stream unless data loss is explicitly acceptable.
AddTree · AddFile · DFileSystemImageEvents
Looking for a different code? Search another status or error code.