Exceptions: "System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length."


#1

Hi Aspose team,

We are facing an exception while opening the .xlsb file with Aspose.Cells (with version 18.11.0)
The sample code is just simple as below:

try
{
Workbook wb = new Workbook(“sample1.xlsb”);
}
catch
{

}

System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length.

And here is our xlsb file
sample.zip (3.7 MB)

Could you please have a look and give us your opinions on this exception?

Thanks in advance,
dunghnguyen


#2

@dunghnguyen,

Thanks for the template file.

After an initial test, I am able to observe the issue as you mentioned by using your template file and sample line of code. I found an exception “System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length” when loading an XLSB file format. I have logged a ticket with an id “CELLSNET-46485” for your issue. We will look into it soon.

Once we have an update on it, we will let you know here.


#3

Thanks @Amjad_Sahi for your attention!
I am not meaning to push you and your team but could you please update anything new on this ticket so far?

dunghnguyen


#4

@dunghnguyen,

I am afraid, as the ticket is recently logged so you have to spare us little time (5-7 days or so). We will try to fix it soon.