Updated on 2026-07-27 GMT+08:00

InvalidObjectState

The operation is not valid for the object's storage class

Error description

The operation is not valid for the object's storage class.

Error cause

If the storage class of an object is Archive or Deep Archive, you must restore the object before accessing it (including reading, downloading, accessing the object through its URL, and changing the object's storage class). This error is returned if the object is not restored or is being restored.

Handling suggestion

Restore the object by referring to Restoring Archive or Deep Archive Objects. If the object has been restored, wait until the restoration is complete and then copy it. To view the restoration status, see Restoring Archive or Deep Archive Objects.

Operation is not valid for the source object's storage class

Error description

The operation is invalid for the source object's storage class.

Error cause

When copying an object, if the source object's storage class is Archive or Deep Archive, you need to restore the object before copying it. This error is returned if the object is not restored or is being restored.

Handling suggestion

Restore the object by referring to Restoring Archive or Deep Archive Objects. If the object has been restored, wait until the restoration is complete and then copy it. To view the restoration status, see Restoring Archive or Deep Archive Objects.

Restore is not allowed, as object's storage class is not COLD

Note that the error cause and handling suggestion for error "Restore is not allowed, as object's storage class is not GLACIER" are the same as those for this error.

Error description

The object storage class is not Archive. Restoration is not allowed.

Error cause

The object storage class is not Archive (COLD/GLACIER), but a restoration operation is attempted on the object.

Handling suggestion

Obtain the object metadata and check whether the object storage class is Archive or Deep Archive. If it is not, you do not need to restore the object. Directly access the object.

Restore is not allowed, as object's storage class is not COLD or DEEP_ARCHIVE

Note that the error cause and handling suggestion for error "Restore is not allowed, as object's storage class is not GLACIER or DEEP_ARCHIVE" are the same as those for this error.

Error description

The object storage class is not Archive or Deep Archive. Restoration is not allowed.

Error cause

The object storage class is not Archive (COLD/GLACIER) or Deep Archive (DEEP_ARCHIVE), but a restoration operation is attempted on the object.

Handling suggestion

Obtain the object metadata and check whether the object storage class is Archive or Deep Archive. If it is not, you do not need to restore the object. Directly access the object.