Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Keys Item when use SXSSF #445

Closed
Warkanlock opened this issue Oct 22, 2020 · 5 comments
Closed

Duplicate Keys Item when use SXSSF #445

Warkanlock opened this issue Oct 22, 2020 · 5 comments

Comments

@Warkanlock
Copy link

Hey guys,

I've using XSSF mode like for 6 months but now my Excel file increase a lot of its size so I switch to Streaming Mode but I've been seeing a lot of weird issues related to "Cannot save item with duplicate Key".

Error comes exactly from the Dictionary object (C# exception actually), but why this does not implement the same structure as XSSF?

@tonyqus
Copy link
Member

tonyqus commented Oct 24, 2020

I think this is a bug of SXSSF. How many rows and columns do you have in your current Excel file in average?

@Warkanlock
Copy link
Author

So far more than 10000 keys, I see the code I think it's a bug from the Dictionary structure. I'll clon the project and check If I can think something.

Thanks Tony

@tonyqus
Copy link
Member

tonyqus commented Feb 13, 2022

Looks your company is using NPOI. Can you contribue your use case to #705 ?

@Warkanlock
Copy link
Author

Looks your company is using NPOI. Can you contribue your use case to #705 ?

I'm not working at PwC anymore 😭

@wjl1627
Copy link

wjl1627 commented Mar 17, 2022

I solved this bug by directly changing the source code in version 2.5.1. add code " if (!numberFormats.ContainsKey(formatId))"
image
cause:
image

tonyqus added a commit that referenced this issue Mar 18, 2022
@tonyqus tonyqus closed this as completed Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants