Cell shading sprm is too long

Hello,

We are converting an HTML document to Word document and we get the below given exception. The html file is 15MB, it is a confidential file and hence i will be able to upload it here. Please let me know the probable causes for this error. I have uploaded the part of code that does HTML conversion.

Error is:.Cell shading sprm is too long.

java.lang.IllegalStateException: Cell shading sprm is too long.
at com.aspose.words.bh.dP(CellPrCollectionFiler.java:565)
at com.aspose.words.bh.a(CellPrCollectionFiler.java:524)
at com.aspose.words.atp.arq(TablePrFiler.java:850)
at com.aspose.words.atp.adH(TablePrFiler.java:729)
at com.aspose.words.aka.a(PrFiler.java:89)
at com.aspose.words.atp.a(TablePrFiler.java:220)
at com.aspose.words.atp.a(TablePrFiler.java:172)
at com.aspose.words.fh.visitRowEnd(DocWriter.java:419)
at com.aspose.words.Row.b(Row.java:155)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:641)
at com.aspose.words.Row.accept(Row.java:145)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
at com.aspose.words.Table.accept(Table.java:100)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
at com.aspose.words.Body.accept(Body.java:57)
at com.aspose.words.fh.b(DocWriter.java:254)
at com.aspose.words.fh.run(DocWriter.java:189)
at com.aspose.words.fh.a(DocWriter.java:38)
at com.aspose.words.Document.a(Document.java:1320)
at com.aspose.words.Document.save(Document.java:713)
at com.aspose.words.Document.save(Document.java:685)
at com.bci.bulkexport.BulkExportProcedures.generateWordFile(BulkExportPr
ocedures.java:681)
at com.bci.bulkexport.BulkExportProcedures.exportSingleProcess(BulkExpor
tProcedures.java:1042)
at com.bci.bulkexport.BulkExportProcedures.main(BulkExportProcedures.jav
a:126)

Hi Jose,

Thanks for your inquiry. Unfortunately, it is difficult to say what the problem is without the html document and complete code. Please zip and attach/share the following resources here for testing:

  • HTML file/string you’re getting this problem with
  • Please create a standalone Java application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

It is safe to attach files in the forum. If you attach your files here, only you and Aspose staff members can download it. Also you can send the zip file to my e-mail as described here:
How to send your license file to an Aspose staff member?

You can also remove any sensitive information from HTML by replacing it with dummy data instead.

Best regards,