0017-00000219

Updated at:

Problem description

InvalidArgument with the message Unexpected query string parameter is returned when the partNumber parameter is missing from the request URL of operations such as UploadPart.

Causes

The partNumber parameter is absent or empty in the request URL.

Examples

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>InvalidArgument</Code>
    <Message>Unexpected query string parameter</Message>
    <RequestId>63********70</RequestId>
    <HostId>***.oss-cn-chengdu.aliyuncs.com</HostId>
    <ArgumentName>ResourceType</ArgumentName>
    <ArgumentValue>partNumber</ArgumentValue>
</Error>

Solutions

Add the partNumber parameter to the request URL. This parameter identifies which part you are uploading and is required in every UploadPart call.

The following constraints apply:

ParameterConstraint
partNumber value1–10000 (inclusive)
Part size100 KB–5 GB
Last part sizeNo minimum size limit
Note

OSS does not verify part sizes during UploadPart. Part sizes are validated only when you call CompleteMultipartUpload, because OSS cannot determine which part is the last part until the upload is complete. Each part except the last must be at least 100 KB.

References