This topic describes the solution to the error that indicates parts failed to be deleted in the Object Storage Service (OSS) console.
Description and solutions
Some parts that exist in the OSS console cannot be deleted. The error message that indicates parts failed to be deleted and you can retry the delete operation appears. You can perform the following steps to troubleshoot the issue.
Collect the
Form DataandPreviewresults after you call the abort_multi_part_uploads.json operation when the parts are deleted in the OSS console.The preceding figure shows that the error is a frontend error, and you can obtain the corresponding request ID.
You can use the request ID to obtain the following error message. The error message is returned because the object name does not meet the requirements.
[java.lang.IllegalArgumentException: The object key is invalid. An object name should be between 1 - 1023 bytes long when encoded as UTF-8 and cannot contain LF or CR or unsupported charts in XML1.0.]Analyze the name of the part. The
Object Nameof the part starts with a forward slash (/). However, the request is not sent to the backend because the request is limited in the console.{ "region": [ "oss-cn-XXXX" ], "objectName": [ "/2017-02-22/bk.XXXX_r_bj.2017-02-22.gz,/2017-04-01/bk.XXXX_r_bj.2017-04-01.gz" ], "uploadId": [ "5557BCXXXXXXXXXXC6206E6,F23072A1DXXXXXXXXXXXX8D2D3499" ], "bucketName": [ "redisXXXXkup" ] }The OSS console and specific OSS SDKs, such as
OSS SDK for Java, have limits on the validity of object parameters. Therefore, an error is reported for abnormal parameters. Such objects must be deleted by using specific tools or API operations.NoteYou can use tools that do not have limits on the validity of parameters, such as ossutil or osscmd, to delete abnormal objects.