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

Error with filters on a pivot table causes a corrupt sheet and memory error #1155

Open
fizgig opened this issue Aug 11, 2023 · 5 comments
Open

Comments

@fizgig
Copy link

fizgig commented Aug 11, 2023

Pivot table works great until we add a filter on a yes/no column, then it gives:
image

then this error:
image

The pivot table appears on the sheet but is not populated
image

Without the filter on the billable column it works fine:
image

And you can manually drag the billable column down to be a filter and it works fine.
image

pivotTable.AddReportFilter(filterIndex);
is the only relevant code added, the column is a yes/no text field.

@fizgig
Copy link
Author

fizgig commented Aug 11, 2023

We're getting a similar issue on
pivotTable.AddDataColumn(iDataCol, true);

@tonyqus
Copy link
Member

tonyqus commented Aug 11, 2023

Can you share the original Excel file?

@fizgig
Copy link
Author

fizgig commented Aug 14, 2023

Timesheet_Report_08-10-2023 (2).xlsx
Here's the file

@fizgig
Copy link
Author

fizgig commented Mar 7, 2024

Any update on this?

@tonyqus
Copy link
Member

tonyqus commented Mar 8, 2024

Timesheet_Report_08-10-2023 (2).xlsx Here's the file

This looks not to be the original file. It's a broken one. Can you upload the original one?

How did you add a filter? using C# by NPOI or Microsoft Office? If using C#, can you show me the code of adding this filter?

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

2 participants