Changed from XSSFSheet to Sheet as parameter when creating Pivot Table.