Specified argument was out of range of valid values in pivot table report

We use code to generate a pivot table report defined by a user in our UI. When running this report sometimes we get an aspose cells error message “Specified argument was out of the range of valid values.
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)”

How do I go about debugging this. We need more specific error info from aspose cells to find which part of the code causes the error.

@gebakkenei,

Please share your sample file and code snippet with us for our testing. We will reproduce the problem and provide our feedback after analysis.