| Previous | Next |
| ERROR_SPACES_NOT_ENOUGH_DRIVES | ERROR_SPACES_PROVISIONING_TYPE_INVALID |
ERROR_SPACES_EXTENDED_ERROR
The HRESULT is a pointer to richer provider information
ERROR_SPACES_EXTENDED_ERROR intentionally tells the caller that the useful explanation is in an extended-status object or error record. Storage Management methods can return an embedded MSFT_StorageExtendedStatus instance with provider-specific description, recommended actions, and related information.
Logging only the numeric HRESULT discards the evidence designed to explain the failure. The details may be attached to a synchronous CIM return, a completed storage job, or the PowerShell exception that wrapped the provider response.
Preserve the full error channel
- Read the method's
ExtendedStatusoutput parameter when present. - For asynchronous work, call
MSFT_StorageJob.GetExtendedStatus. - Capture the entire PowerShell error object rather than formatting only
Exception.Message. - Record the provider name, target ObjectId, activity ID, and operation arguments.
- Correlate extended status with StorageManagement and StorageSpaces event logs.
- Do not replace the original result with a generic retry message in application telemetry.
References
- Microsoft: MSFT_StorageJob.GetExtendedStatus
- Microsoft: CreateVirtualDisk ExtendedStatus
- Microsoft: Storage Spaces troubleshooting
Looking for a different code? Search another status or error code.