Export to Word fails with ExporterException: messages.asposeexception.maxlistlevel

Problem

When exporting to Word the export fails with the following stacktrace in the Error.ZIP:

java.lang.RuntimeException: RuntimeException ocurred while processing page 'Testpage':
    at com.k15t.scroll.confluence.model.export.ExportLogic.performExport(ExportLogic.java:123)
    ...
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Exception when exporting page.
    at com.k15t.scroll.confluence.model.export.ExportLogic$3.doInTransaction(ExportLogic.java:272)
    at com.k15t.scroll.confluence.model.export.ExportLogic$3.doInTransaction(ExportLogic.java:229)
    at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
    at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:88)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
    ...
    at com.k15t.scroll.confluence.model.export.ExportLogic.exportRecursively(ExportLogic.java:229)
    at com.k15t.scroll.confluence.model.export.ExportLogic.exportAllPages(ExportLogic.java:218)
    at com.k15t.scroll.confluence.model.export.ExportLogic.performExport(ExportLogic.java:106)
    ... 10 more
Caused by: com.k15t.scroll.core.extension.exporter.ExporterException: com.k15t.scroll.words.messages.asposeexception
    at com.k15t.scroll.words.exporter.AbstractWordsExporter.export(AbstractWordsExporter.java:212)
    at com.k15t.scroll.words.exporter.DelegatingWordsExporter.export(DelegatingWordsExporter.java:121)
    at com.k15t.scroll.confluence.model.export.ExportLogic$3.doInTransaction(ExportLogic.java:245)
    ... 49 more
Caused by: java.lang.RuntimeException: Error writing to output stream
    at com.k15t.scroll.core.renderer.AbstractWordsRenderer.start(AbstractWordsRenderer.java:28)
    at com.k15t.scroll.words.exporter.AbstractWordsExporter.exportElementWithRenderer(AbstractWordsExporter.java:363)
    at com.k15t.scroll.words.exporter.AbstractWordsExporter.exportContent(AbstractWordsExporter.java:339)
    at com.k15t.scroll.words.exporter.AbstractWordsExporter.exportElementWithRenderer(AbstractWordsExporter.java:366)
    at com.k15t.scroll.words.exporter.AbstractWordsExporter.exportContent(AbstractWordsExporter.java:339)
    ...
    ... 51 more
Caused by: com.k15t.scroll.core.extension.exporter.ExporterException: messages.asposeexception.maxlistlevel
    at com.k15t.scroll.words.DocumentBuilder$ListBuilder.startList(DocumentBuilder.java:1436)
    at com.k15t.scroll.words.DocumentBuilder.startList(DocumentBuilder.java:1265)
    at com.k15t.scroll.words.renderer.ListRenderer.startList(ListRenderer.java:42)
    at com.k15t.scroll.words.renderer.ListRenderer.writeStart(ListRenderer.java:23)
    at com.k15t.scroll.words.renderer.ListRenderer.writeStart(ListRenderer.java:18)
    at com.k15t.scroll.core.renderer.AbstractWordsRenderer.start(AbstractWordsRenderer.java:25)
    ... 99 more

CODE

Environment

  • Scroll Office
  • All Confluence versions

Resolution

  • Use maximal 9 list levels on the Confluence pages you want to export.

Cause

Microsoft Office only allows up to 9 list levels. If you've more than 9 list levels, the export fails.

Cookie Notice

We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information:
Click Here

OK Don't track me.