Based on the example [Pivot Tables](https://closedxml.codeplex.com/wikipage?title=Pivot%20Table%20example) , do the following steps to reproduce the problem
Excellent example . It works perfect, but if you add more than one value will have a problem . Here I leave an example to reproduce the problem . Suppose Pastry class has one more property called "Amount" int
Step 1. Add two values
```
// The values in our table will come from the " NumberOfOrders " field
// The default setting is a full calculation of each row / column
pt.Values.Add ("NumberOfOrders");
// Another value ( THIS IS THE ONE THAT CAUSE THE PROBLEM )
pt.Values.Add ("Amount" ) ;
```
Step 2. Save the excel file
Step 3. Open the excel file , and throw the following message
We found a problem with Content ' Patry.xlsx ' . Do you want to try to recover as much content as possible ? If trusts origin of this book , please click yes .
Click yes, and I'll get the following message :
Removed Feature: PivotTable report from / xl / PivotTables / pivotTable.xml part ( PivotTable view)
Records removed : book Properties / xl / workbook.xml part ( Book)
Step 4. Final result , the pivot table is not generated
aTTACH project C# for reproduce problem.
Please expect your help to solve this problem .. thank you very much
Comments: ** Comment from web user: andreapoli **
Excellent example . It works perfect, but if you add more than one value will have a problem . Here I leave an example to reproduce the problem . Suppose Pastry class has one more property called "Amount" int
Step 1. Add two values
```
// The values in our table will come from the " NumberOfOrders " field
// The default setting is a full calculation of each row / column
pt.Values.Add ("NumberOfOrders");
// Another value ( THIS IS THE ONE THAT CAUSE THE PROBLEM )
pt.Values.Add ("Amount" ) ;
```
Step 2. Save the excel file
Step 3. Open the excel file , and throw the following message
We found a problem with Content ' Patry.xlsx ' . Do you want to try to recover as much content as possible ? If trusts origin of this book , please click yes .
Click yes, and I'll get the following message :
Removed Feature: PivotTable report from / xl / PivotTables / pivotTable.xml part ( PivotTable view)
Records removed : book Properties / xl / workbook.xml part ( Book)
Step 4. Final result , the pivot table is not generated
aTTACH project C# for reproduce problem.
Please expect your help to solve this problem .. thank you very much
Comments: ** Comment from web user: andreapoli **
Hi, I have the same problem. I performed the following test:
1. creating an excel file (A.xlsx) with a pivot with only one Values using ClosedXML;
2. opening the created excel file;
3. adding another Value to the pivot and save it;
4. creating an excel file (B.xlsx) with the same Values using ClosedXML;
After that:
5. I renamed A.xlsx and B.xlsx to A.zip and B.zip
6. I unzipped then I used DiffMerge to compare them:
6a. in A.xlsx there are data related to pivot table values written into the sheet which contains the pivot table itself.
6b. in B.xlsx the sheet which contains the pivot table hasn't that data.