Bug 114991 - Pivot tables where there is no data don't update the table, leaving old and incorrect values
Summary: Pivot tables where there is no data don't update the table, leaving old and i...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 21:23 UTC by tim
Modified: 2019-02-09 11:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The database I mention in the report. (4.88 KB, application/vnd.oasis.opendocument.database)
2018-01-13 21:27 UTC, tim
Details
The calc sheet In mention (9.41 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-01-13 21:27 UTC, tim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tim 2018-01-13 21:23:50 UTC
Description:
I have a pivot table in a calc document accessing a query in a base database (HSQLDB). When the query returns data all is well. When the query returns no data the pivot table does not clear the old data out.  It used to return "(empty)" in the first cell, and clear the data.

Steps to Reproduce:
1. Open both the pivotDatabase and the pivotcalc documents
2. In pivotDatabase edit Query1 and in the criterion set the value to 1 for F1
3. Refresh the pivot in pivotcalc
4. You should see one row with f1 = 1
5. Now edit Query1 to set the criterion for f1 to 11
6. Refresh the pivot in pivotcalc

Actual Results:  
On step 6 I get an error message "Error creating the pivot table"

Expected Results:
On step 6 I would expect no error, and an (empty) word in A1. 


Reproducible: Always


User Profile Reset: No



Additional Info:
By leaving old and incorrect data when the result should be an empty dataset, other sheets that depend on getting correct or null data in the pivot are fooled into thinking there is real data, when there is not.


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.97 Safari/537.36 Vivaldi/1.94.1008.40
Comment 1 tim 2018-01-13 21:27:18 UTC
Created attachment 139082 [details]
The database I mention in the report.
Comment 2 tim 2018-01-13 21:27:42 UTC
Created attachment 139083 [details]
The calc sheet In mention
Comment 3 tim 2018-01-13 21:30:49 UTC
Just to be crystal clear, I'm running Version: 5.4.4.2
Build ID: 1:5.4.4~rc2-0ubuntu0.17.10.1~lo1
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: gtk2; 
Locale: en-GB (en_GB.UTF-8); Calc: group

THis used not to happen. I'm not sure when the behavioiur changed, but sometime in the last 6 months or so (I found it in a sheet I use for tax calculations, so I don't access it frequently, but it needs to be correct).
Comment 4 m_a_riosv 2018-01-14 22:59:12 UTC
For me doesn't crash with:
Version: 5.4.4.2 (x64)
Build ID: 2524958677847fb3bb44820e40380acbe820f960
CPU threads: 4; OS: Windows 6.19; UI render: default; 
Locale: es-ES (es_ES); Calc: group

but gives the 'Error creating the pivot table'

It not should be, and doesn't happen with a source in the spreadsheet.
Comment 5 tim 2018-01-15 08:11:48 UTC
(In reply to m.a.riosv from comment #4)
> For me doesn't crash with:
> Version: 5.4.4.2 (x64)
> Build ID: 2524958677847fb3bb44820e40380acbe820f960
> CPU threads: 4; OS: Windows 6.19; UI render: default; 
> Locale: es-ES (es_ES); Calc: group
> 
> but gives the 'Error creating the pivot table'
> 
> It not should be, and doesn't happen with a source in the spreadsheet.
That's what I said - it doesn't crash, but gives the error message.
Comment 6 tim 2018-02-08 15:29:08 UTC
In 6.0.0.3 it's OK - it now returns "(empty)" as it should.  This report can be closed.
Comment 7 QA Administrators 2019-02-09 03:44:33 UTC Comment hidden (obsolete)
Comment 8 tim 2019-02-09 11:10:56 UTC
This is fixed (as I said previously, but I don't like changing the status without confirmation).  I'm now on version:

Version: 6.1.4.2
Build ID: 1:6.1.4-0ubuntu0.18.10.1
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: x11; 
Locale: en-GB (en_GB.UTF-8); Calc: group threaded