Export to markdown failures

Hello,

We’ve been seeing some failures with export to markdown sometimes related to column alignment padding or with inline images. We have retry mechanisms to disable these options to work towards a success. Below is an example from our log files and a copy of the Excel file that was converted to markdown.

2024- Sales Rep Scorecard as of 07_30_2026.zip (624.1 KB)

 public static MemoryStream ConvertToMarkdown(this Workbook workbook, StreamFactory streamFactory, bool alignColumnPadding = true, bool exportImagesAsBase64 = false, bool splitTablesByBlankRow = false)
    {
        workbook.Worksheets.ActiveSheetIndex = 0;

        var opts = new MarkdownSaveOptions
        {
            AlignColumnPadding = alignColumnPadding ? ' ' : '\0',
            ExportImagesAsBase64 = exportImagesAsBase64,
            SplitTablesByBlankRow = splitTablesByBlankRow,
            SheetSet = SheetSet.Visible,
        };
        
        var markdownStream = streamFactory.CreateStream();
        workbook.Save(markdownStream, opts);
        markdownStream.Rewind();
        return markdownStream;
    }

24
07/30/2026 14:44:01.11
00:00:05
Markdown export failed with requested options (ArgumentNullException); retrying with column-alignment padding disabled.
Value cannot be null. (Parameter ‘path1’)
Error Message: Value cannot be null. (Parameter ‘path1’)
Value cannot be null. (Parameter ‘path1’)

TRACE
Value cannot be null. (Parameter ‘path1’)
at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)
at Reportworq.Domain.Utils.Extensions.WorkbookExtensions.ConvertToMarkdown(Workbook workbook, StreamFactory streamFactory, Boolean alignColumnPadding, Boolean exportImagesAsBase64, Boolean splitTablesByBlankRow, ILogger logger) in /tmp/rw-lab-instref-ba731307/src/projects/Reportworq.Plugin.Common/Utils/Extensions/WorkbookExtensions.cs:line 418


Thank You,
-Andy

25
07/30/2026 14:44:01.12
00:00:06
Markdown export failed with column-alignment padding disabled (ArgumentNullException); retrying with padding disabled + images inlined as base64.
Value cannot be null. (Parameter ‘path1’)
Error Message: Value cannot be null. (Parameter ‘path1’)
Value cannot be null. (Parameter ‘path1’)

TRACE
Value cannot be null. (Parameter ‘path1’)
at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)
at Reportworq.Domain.Utils.Extensions.WorkbookExtensions.ConvertToMarkdown(Workbook workbook, StreamFactory streamFactory, Boolean alignColumnPadding, Boolean exportImagesAsBase64, Boolean splitTablesByBlankRow, ILogger logger) in /tmp/rw-lab-instref-ba731307/src/projects/Reportworq.Plugin.Common/Utils/Extensions/WorkbookExtensions.cs:line 418


@weissa

Hello Andy,

Thank you for providing the sample file “2024- Sales Rep Scorecard as of 07_30_2026.xlsx” and the code snippet illustrating your export process.

I have successfully reproduced the ArgumentNullException (path1) using Aspose.Cells for .NET 26.7. My investigation confirms that the error occurs specifically when calling the Save method to a Stream using MarkdownSaveOptions with this particular workbook. It appears the internal path logic for handling resources during the Markdown conversion is failing when a physical file path is not provided.

I have logged this behavior for further investigation by our development team. We will look into the root cause of the null parameter exception to ensure that saving to a stream works correctly regardless of the padding or image options selected.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-60440

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.