0020-00000036

Updated at: 2023-07-21 07:45

Problem description

The OptionalFields node in the PutBucketInventory request contains an invalid item.

Causes

The OptionalFields node in the PutBucketInventory request contains an invalid item. The item is not supported by the PutBucketInventory operation.

Examples

In the following request, the OptionalFields node contains an invalid <Field>StartTime</Field> item. In this case, an error is reported.

 PUT /?inventory&inventoryId=report1 HTTP/1.1
 Host: BucketName.oss.aliyuncs.com
 Date: Mon, 31 Oct 2016 12:00:00 GMT
 Authorization: authorization string
 Content-Length: length
 <?xml version="1.0" encoding="UTF-8"?>
 <InventoryConfiguration>
 	<Id>report1</Id>
  <IsEnabled>true</IsEnabled>
  <Filter>
  	<Prefix>filterPrefix/</Prefix>
    <LastModifyBeginTimeStamp>1637883649</LastModifyBeginTimeStamp>
    <LastModifyEndTimeStamp>1638347592</LastModifyEndTimeStamp>
    <LowerSizeBound>1024</LowerSizeBound>
    <UpperSizeBound>2048</UpperSizeBound>
    <StorageClass>Standard,IA</StorageClass>
   </Filter>
   <Destination>
   		<OSSBucketDestination>
      	<Format>CSV</Format>
        <AccountId>1000000000000000</AccountId>
        <RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
        <Bucket>acs:oss:::destination-bucket</Bucket>
       	<Prefix>prefix1</Prefix>
      </OSSBucketDestination>
    </Destination>
    <Schedule>
    	<Frequency>Daily</Frequency>
    </Schedule>
    <IncludedObjectVersions>All</IncludedObjectVersions>
    <OptionalFields>
    	<Field>Size</Field>
      <Field>LastModifiedDate</Field>
      <Field>ETag</Field>
      <Field>StorageClass</Field>
      <Field>IsMultipartUploaded</Field>
      <Field>StartTime</Field>
    </OptionalFields>
 </InventoryConfiguration>

Solutions

Delete the <Field>StartTime</Field> item under the OptionalFields node in the PutBucketInventory request.

Specify the items that are included in the inventory list by specifying the Field parameters under the OptionalFields node. The following items are included in the inventory list:

  • Size: the size of the object.
  • LastModifiedDate: the last modified time of the object.
  • ETag: the ETag value of the object, which is used to identify the content of the object.
  • StorageClass: the storage class of the object.
  • IsMultipartUploaded: specifies whether the object is uploaded by using multipart upload.
  • EncryptionStatus: the encryption status of the object.

References

PutBucketInventory

  • On this page (1, T)
  • Problem description
  • Causes
  • Examples
  • Solutions
  • References
Feedback