Error Occuring when execution of Aspose conversion XLSX to HTML

Dear Aspose Support,

We are encountering an issue while trying to convert an XLSX file to HTML using the Aspose.XLSXToHTML operation integrated into our Nuxeo platform.

Below i have attached error :point_down:
****** chain ******
Name: Aspose.XLSXToHTML
Exception: NuxeoException
Caught error: Failed to invoke operation Aspose.XLSXToHTML, com.nissan.nuxeo.aspose.engine.exception.AsposeExecutionException: Error in execution of Aspose conversion XLSX to HTML
Caused by: org.nuxeo.ecm.core.api.NuxeoException: Failed to invoke operation Aspose.XLSXToHTML, com.nissan.nuxeo.aspose.engine.exception.AsposeExecutionException: Error in execution of Aspose conversion XLSX to HTML
****** Hierarchy calls ******
com.nissan.nuxeo.aspose.core.operations.AsposeXLSXToHTMLOp
We have attached the complete log file(aspose.pdf) for reference.

Other formats like CSV, XLSX, and ZIP work fine. The issue occurs only for HTML conversion.

Please help us identify the root cause of this failure or let us know what diagnostics or file samples we should provide further.
Aspose.docx (30.3 KB)

@Manish7320

Cause

The error you are encountering during the conversion of an XLSX file to HTML using Aspose.XLSXToHTML is likely due to specific content or formatting in the XLSX file that is incompatible with the HTML conversion process. Since other formats like CSV and ZIP are working fine, it indicates that the issue is isolated to the HTML conversion.

Solution

To troubleshoot this issue, please follow these steps:

  1. Check the XLSX File: Ensure that the XLSX file does not contain unsupported features or complex formatting that might cause the conversion to fail. This includes checking for merged cells, complex formulas, or unsupported charts.

  2. Update Aspose Library: Make sure you are using the latest version of the Aspose.Cells library. Updates often include bug fixes and improvements that could resolve your issue.

  3. Simplify the File: Create a simplified version of the XLSX file with minimal content and formatting to see if the conversion succeeds. Gradually add content back to identify what might be causing the issue.

  4. Review Logs: Analyze the complete log file you mentioned for any specific error messages or warnings that could provide more insight into the failure.

  5. Use Alternative Methods: If the issue persists, consider using different methods or options for conversion, such as using HtmlSaveOptions to customize the conversion process.

Code

Here’s a basic example of how to convert an XLSX file to HTML using Aspose.Cells:

// Load the XLSX file
Workbook workbook = new Workbook("input.xlsx");

// Create HtmlSaveOptions
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportImagesAsBase64 = true; // Example option

// Save the file as HTML
workbook.Save("output.html", SaveFormat.Html, options);

Next Steps

If the issue continues after following the above steps, please provide a sample of the XLSX file that is causing the error, along with any specific error messages from the logs. This information will help in diagnosing the problem more effectively.

Thank you for your patience, and I look forward to your response!

Dear Aspose Support,

Thank you for your response.

As requested, here is the relevant Java code i have attached below. But i cant able to find the Workbook those text only in import , I have searched globally. attached image for your reference.
image.png (308.0 KB)

AsposeXlsxToHtmlJavaMethod.pdf (33.9 KB)

Please let us know if this code helps you identify the root cause or if you require any further information from our side.

Thank you for your assistance.

@Manish7320

Looks like you are facing issue while converting an Excel file into HTML. We are moving the inquiry to respective forum where you will be assisted accordingly.

@Manish7320
Would you like to provide excel sample file and executable test code? We will check it soon.

The above provided code aspose.pdf , This is the only place i have found the code. All formats are working fine except HTML conversion, I will give you the sample excel for xlsx.
RER_2025078.pdf (497.7 KB) for your reference.

@Manish7320,

We apologize, but the code provided in “AsposeXlsxToHtmlJavaMethod.pdf” does not appear to utilize Aspose.Cells APIs directly. It seems some cloud solution that you might be using and Aspose related functionality may be implemented inside some service which might be called through main program. You need to contact the creater of your module. We are sorry but we might not guide you much on fixing your service or solutions on your end. We can only check XLSX to HTML conversion using Aspose.Cells APIs if it works or not.

We kindly request you to provide the following:

  1. A standalone, runnable sample code that uses Aspose.Cells for converting XLSX to HTML (if possible).
  2. The input XLSX file (please ensure the file is zipped before attaching it here).

Once we receive these resources, we will promptly begin investigating the issue. Thank you for your cooperation!.