0016-00000830

Updated at:

Problem description

The value of the QuoteCharacter node in the request body of a SelectObject request is invalid.

Cause

The request failed because the value of the QuoteCharacter node in the request body is invalid.

Example Problem

In the following request, the value of the QuoteCharacter node is abc, which is invalid.

POST /oss-select/bigcsv_normal.csv?x-oss-process=csv%2Fselect HTTP/1.1
Date: Fri, 25 May 2018 22:11:39 GMT
Authorization: OSS qn6q**************:77Dv****************
Range: bytes=1024-2048
Host: host name
<?xml version="1.0"?>
<SelectRequest>
    <Expression>...</Expression>
    <InputSerialization>
         <CSV>
         		<QuoteCharacter>abc</QuoteCharacter>
         </CSV>
    </InputSerialization>
    <OutputSerialization>
        ......
    </OutputSerialization>
</SelectRequest>

Solution

Make sure that the value of the QuoteCharacter node in the request is valid. This node specifies the quote character for CSV objects. The value must be a single, Base64-encoded character. The default value is \". In a CSV object, line feeds and column delimiters enclosed in the specified quote character are treated as normal characters. The unencoded value must be a single character, such as \" for a quotation mark.

References