All Products
Search
Document Center

Object Storage Service:0042-00000310

Last Updated:Apr 29, 2024

Problem description

The source object specified by the x-oss-copy-source header in the UploadPartCopy request is an Archive object.

Causes

The x-oss-copy-source header that you specified in the UploadPartCopy request to copy data from an existing object is invalid. The x-oss-copy-source header specifies the source object from which you want to copy data. The source object specified by the x-oss-copy-source header is an Archive object and is not restored or real-time access of Archive objects is not enabled for the bucket in which the source object is stored.

Examples

For example, you initiate the following request:

PUT /multipart.data?partNumber=2&uploadId=63C06A5CFF6F4AE4A6BB3AD7F01C****  HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 09 Apr 2019 07:01:56 GMT
Authorization: OSS qn6q**************:77Dv****************
x-oss-copy-source: /oss-example/src-object-archive

The storage class of the /oss-example/src-object-archive object in the preceding request is Archive and the object is not restored or real-time access of Archive objects is not enabled for the bucket in which the object is stored.

Solutions

You can use one of the following methods to resolve the issue:

  • Restore the object: After the object is restored, the UploadPartCopy request is allowed. For more information, see Restore objects.

  • Enable real-time access of Archive objects for the bucket in which the object is stored. After you enable real-time access of Archive objects, all Archive objects in the bucket can be read without restoration. The UploadPartCopy request is allowed. For more information, see Real-time access of Archive objects.

References