Hello,
We are currently receiving this message when trying to convert .xlsx to .xml using the aspose.cells api. This was working for us on 7/6/2020, but started failing on 7/9/2020.
This is the message we’re seeing in our usage report
Error: PostDocumentSaveAs. Parameters: name ‘test4.xlsx’, newfilename ‘test4.xml’, isAutoFitRows ‘True’, isAutoFitColumns ‘True’. Exception: AmazonS3 Storage exception: The specified key does not exist. Bucket ‘afc-filestorage’, FilePath ‘84768/04808570-b273-40d8-8050-d520d99a7bcb/test4.xlsx’.
We have confirmed that the file is uploaded to the S3 bucket setup with our account:
image.png (38.9 KB)
Here’s a snippet of the code we’re using. You’ll see that we’re using the same storage name for both the upload call and the conversion call:
CellsApi api = new CellsApi(asposeAppSid, asposeAppKey)
api.getApiClient().getHttpClient().setReadTimeout(1200, TimeUnit.SECONDS)
try {
//upload the xlsx file to cloud
String remoteFilePath = UUID.randomUUID().toString() + ".xlsx"
CellsFilesUploadResult uploadResult = api.uploadFile(remoteFilePath, srcFile, ASPOSE_CLOUD_STORAGE_NAME)
if (uploadResult?.getUploaded()?.size() != 1) {
throw new Exception("Failed to upload source file '${srcFile}' to aspose cloud: ${uploadResult?.toString()}".toString())
}
//convert to xml
SaveOptions options = new SaveOptions()
options.saveFormat("xml")
String remoteXmlPath = UUID.randomUUID().toString() + ".xml"
SaveResponse conversionResult = api.cellsSaveAsPostDocumentSaveAs(remoteFilePath, options, remoteXmlPath, true, true, "", ASPOSE_CLOUD_STORAGE_NAME)
if (conversionResult?.getCode() != 200) {
throw new Exception("Aspose cloud failed to convert xlsx file '${srcFile}' to xml: ${conversionResult?.toString()}".toString())
}
//download the xml file
result = api.downloadFile(remoteXmlPath, ASPOSE_CLOUD_STORAGE_NAME, null)
} finally {}
on the api.cellsSaveAsPostDocumentSaveAs call we catch this exception:
com.aspose.cloud.cells.client.ApiException: Internal Server Error
at com.aspose.cloud.cells.client.ApiClient.handleResponse(ApiClient.java:1255)
at com.aspose.cloud.cells.client.ApiClient.execute(ApiClient.java:1151)
at com.aspose.cloud.cells.api.CellsApi.cellsSaveAsPostDocumentSaveAsWithHttpInfo(CellsApi.java:26780)
at com.aspose.cloud.cells.api.CellsApi.cellsSaveAsPostDocumentSaveAs(CellsApi.java:26760)
at com.aspose.cloud.cells.api.CellsApi$cellsSaveAsPostDocumentSaveAs$1.call(Unknown Source)
Any help here would be much appreciated.
Thanks!