On Saving workbook exception - Item has already been added

Hi Team,

I am getting an error which is very similar to this thread:

http://sialkot.aspose.com:8045/forums/4/354145/exceptions-on-loading-valid-excel-file-every-time/showthread.aspx



In that post the user complained that it only affected his debugging.

In my case it is affecting the production servers - normal running (not debugging alone).

So mine is more serious.



Aspose version 5.1.4.0



The stacktrace is as follows:

Source: Aspose.Cells Item has already been added.

Key in dictionary: ‘file:///C:\Users\Public\Symbols\BK.bmp’

Key being added: ‘file:///C:\Users\Public\Symbols\BK.bmp’

Stack Trace:

at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)

at Aspose.Cells.Workbook.Save(String fileName, SaveFormat saveFormat)

at xxxSummary.xxxSummaryCheckOut.xxxSummaryCheckOut(xxxSummaryQueue xxxSummaryQueue)

in C:\Projects\xxx\Class Libraries\xxxSummary\xxSummaryCheckOut.vb:line 976



Notice that the exception is thrown while saving the Workbook object !



Any help?

Hi,


In latest version v7.1.1 we resolved similar issue, so, we recommend you to kindly try this version:
http://www.aspose.com/community/files/51/.net-components/aspose.cells-for-.net/entry360981.aspx


If you still find any issue using the latest version v7.1.1, please provide us complete details, screen shots, sample application etc. We will check it soon.

Thank you.

Alright,

I found the root cause of this issue. One of the users had copy pasted a small bmp file multiple times. [BK.bmp].



Still - it might help you in recreating.



Sunil

Hi,

It’s good to know, your problem is sorted out. If you get any other question, please feel free to ask, we will help you asap.