All Products
Search
Document Center

Object Storage Service:0016-00000714

Last Updated:Nov 19, 2025

Problem description

When you send a RestoreObject request using the .NET SDK, the following error occurs:

The XML you provided was not well-formed or did not validate against our published schema.

Causes

The error occurs because the XML request body of the RestoreObject request contains an Unknown node, which is not supported by the RestoreObject operation.

Examples

In the following example, the request fails because the XML body contains an Unknown node. This node is not supported by the RestoreObject operation.

POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
<RestoreRequest>
  <Days>2</Days>
  <Unknown></Unknown>
</RestoreRequest>

Solutions

To restore files in OSS using the .NET SDK, you must configure the parameters based on the storage class and SDK version.

  • For C# SDK V1: Set both the request.Days and request.Tier parameters. The required settings depend on the storage class:

    • Archive Storage: Set request.Tier to null. Then, set request.Days to specify the number of days that the restored object remains available.

    • Cold Archive or Deep Cold Archive: Set request.Tier based on the restoration speed that you require. Valid values are Expedited, Standard, and Bulk. You must also specify request.Days.

  • Use C# SDK V2 (Preview): This version automatically adapts to the restoration rules for different storage classes. Upgrade to C# SDK V2 (Preview). For an example of how to restore a file, see the GitHub example.

References

RestoreObject