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

Adding rows of data into existing xlsx file with pivot tables and charts result with unusable file. #1293

Open
rafinewman opened this issue Mar 13, 2024 Discussed in #1292 · 5 comments
Labels
bug file_error file format generation/writing issue xlsx
Milestone

Comments

@rafinewman
Copy link

Discussed in #1292

Originally posted by rafinewman March 13, 2024
hi,

i have designed am excel file XLSX with a table of data in sheet1 and pivot table , pivot charts and slicer on sheet2
after it works fine. i have deleted the rows of data and save the file with no data. i have configured the objects to refresh with new data when file is opened.
when i open this empty file and paste rows of data to the empty table, all pivot objects are refreshed and i see new data as expected in the pivot tables and charts and slicer and it functions as expected
BUT,
When I use NPOI with .net 4.8 to fill in the rows ( i checked it separately and it worked fine) and the i open the file, i get an error msg from excel that "we found a problem with some content in file.xlsx. do you want to recover?"
if i answer no, the file is closed, when i answer yes, i get a none usable workbook while data exists in the table but slice and pivot table are not usable and sometimes slice even removed.

is it a known problem? can it be solved? maybe NPOI doesn't support such combination?

@Bykiev
Copy link
Collaborator

Bykiev commented Mar 13, 2024

Hi, what is NPOI version?
Possible dupes #1155, #1201

@rafinewman
Copy link
Author

rafinewman commented Mar 13, 2024

latest 2.6.2

i adding the files.
before=original template file with pivot tables and slicer
after=file with data inserted by NPOI
before.xlsx
after.xlsx

it is very similar to #1201

@tonyqus
Copy link
Member

tonyqus commented Mar 13, 2024

Pivot part of NPOI is not so stable for now because very few NPOI users are using it. We are collecting feedbacks for pivot table. Hope we can stablize the pivot part before 2.9.0.

@rafinewman
Copy link
Author

thanks. when this expected?

@tonyqus
Copy link
Member

tonyqus commented Mar 14, 2024

Not shortly, I guess 1-2 years since very few NPOI users uses Pivot in Excel. NPOI improvements are mainly based on bug report and feedbacks. It takes about 4 years to stablize OpenXML basic features (there used to a few file broken issue)

@tonyqus tonyqus added file_error file format generation/writing issue bug and removed need-investigation labels Apr 15, 2024
@tonyqus tonyqus added this to the NPOI vNext milestone Apr 15, 2024
@tonyqus tonyqus changed the title Adding rows of data into existing xlsx file with pivot tables and charts result with unusable file. How to solve? Adding rows of data into existing xlsx file with pivot tables and charts result with unusable file. May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug file_error file format generation/writing issue xlsx
Projects
None yet
Development

No branches or pull requests

3 participants