0017-00000220
Problem description
The error is returned if the value of the request parameter partNumber is invalid. For example, the value of partNumber in a UploadPart request is set to an invalid number or is not within the valid range.
Causes
The value of the request parameter partNumber is invalid. For example, you set partNumber to a string or an integer that is not within the valid range.
Examples
The value of partNumber is not a valid number.
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidArgument</Code>
<Message>Part number must be an integer between 1 and 10000, inclusive.</Message>
<RequestId>63*******53</RequestId>
<HostId>****.oss-cn-chengdu.aliyuncs.com</HostId>
<ArgumentName>PartNumber</ArgumentName>
<ArgumentValue>10001</ArgumentValue>
</Error>
The value of partNumber is a string.
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidArgument</Code>
<Message>Part number must be an integer between 1 and 10000, inclusive.</Message>
<RequestId>63E********E72</RequestId>
<HostId>****.oss-cn-chengdu.aliyuncs.com</HostId>
<ArgumentName>PartNumber</ArgumentName>
<ArgumentValue>STR</ArgumentValue>
</Error>
Solutions
Set partNumber to a valid value.
This parameter specifies a number that identifies a part. The parameter value ranges from 1 to 10000. The size of a single part ranges from 100 KB to 5 GB.
In multipart upload, each part except the last part must be larger than or equal to 100 KB in size. The size of each part is not immediately verified when you call UploadPart because not all parts have been uploaded and OSS does not know which part is the last part. The size of each part is verified only when you call CompleteMultipartUpload.