We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Convert CSV to XLS/XLSX throws not supported format

The Aspose cloud API fails when trying to convert CSV to XLS in the following route:
[PUT] cells/convert

It can be easily replicated with your online endpoint playground.

Request URL: https://api.aspose.cloud/v3.0/cells/convert?format=xls

Response Body:

“RequestId”: “fc517639-aae4-489c-b514-dd83a787c30c”,
“Error”: {
“Code”: “internalError”,
“Message”: “This file’s format is not supported or you don’t specify a correct format.”,
“Description”: “Operation Failed. Internal error.”,
“DateTime”: “2021-10-01T01:15:45.6536456Z”

The CSV format is supported, an the file itself is in the correct format, it fails when providing several different CSVs.

I believe this is a bug.


This is not a bug. The convert API doesn’t support CSV to XLS.
We have another way to solve the question.

  1. Upload CSV file to Cloud.
  2. Call GET /cells/{name} or POST /cells/{name}/saveAs API.

Please refer to the Convert Excel online document.