Document fails to save when saved > 10 times


#1

Hello,

Our application makes frequent modifications to a file and after 10 modifications/saves I receive the following error on the attached document

System.ArgumentException : Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
   at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)

I have scrubbed most of the data from the document for confidentiality reasons but the attached document does still cause the error with the following code.

var filePath = "attachedFilePath";
for (int i = 0; i < 15; i++)
{
	using (var workbook = new Workbook(filePath))
    {
        workbook.Save(filePath);
    }
}

Let me know if there is any additional information you need. Thanks!

BreaksAfter10Saves.zip (7.8 KB)


#2

@jacobmalliet,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-46856 – Document fails to save when saved more than 10 times


#3

@jacobmalliet,

This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.


#4

@jacobmalliet,
Please try our latest version/fix: Aspose.Cells for .NET v19.7.7:

Aspose.Cells19.7.7 For .Net4.0.Zip (4.9 MB)
Aspose.Cells19.7.7 For .Net2_AuthenticodeSigned.Zip (4.9 MB)

Your issue should be fixed in it.

Let us know your feedback.


#5

Thank you, will test this out today!


#6

@jacobmalliet,

Sure, take your time to evaluate the new fix/version. Hopefully it will pass your test cases.


#7

Everything seems to work as expected now. Thank you very much for the fast response!


#8

@jacobmalliet,

Good to know that your issue is sorted out by the latest version/fix. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.


#9

The issues you have found earlier (filed as CELLSNET-46856) have been fixed in Aspose.Cells for .NET v19.8. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi