Bug 159076 - Invalid database range if data filtered
Summary: Invalid database range if data filtered
Status: RESOLVED DUPLICATE of bug 127419
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-09 05:26 UTC by haribarusemangatbaru@gmail.com
Modified: 2024-01-24 05:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file xlsx (5.42 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-01-10 09:04 UTC, m_a_riosv
Details
file example with database range (223.23 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-01-10 09:05 UTC, haribarusemangatbaru@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description haribarusemangatbaru@gmail.com 2024-01-09 05:26:00 UTC
Description:
Hi Experts,

I've database range in $ThisSheet$A$1:$N$5609 and the total row number is 5611
The value in cell A5610 is 'x123'

This is step by step how the problem is occured :
1. Opened file with database range (example => database range = $ThisSheet$A$1:$N$5609, but = 5611 row total exist with data)
2. Filter the column A with value = 'x123' (x123 is in cell A5610)
3. The data filtered only show 2 row (1 row header dan 1 row data)
4. Click 'Data'->'Define Range'. The cell range is $ThisSheet$A$1:$N$5611
5. If I clear the filter and click 'Data'->'Define Range'. The cell range is still $ThisSheet$A$1:$N$5611

If I closed this file, reopen and without filter the data, I click 'Data'->'Define Range'. The cell range is show correct range $ThisSheet$A$1:$N$5609

Why the range has changed? The correct range is $ThisSheet$A$1:$N$5609 but it show $ThisSheet$A$1:$N$5611 after I filtered the column

Sincerely,
Oviedityanto

Steps to Reproduce:
1.Opened file with database range (example => database range = $ThisSheet$A$1:$N$5609, but = 5611 row total exist with data)
2.Filter the column A with value = 'x123' (x123 is in cell A5610)
3.The data filtered only show 2 row (1 row header dan 1 row data)
4.Click 'Data'->'Define Range'. The cell range is $ThisSheet$A$1:$N$5611
5.If I clear the filter and click 'Data'->'Define Range'. The cell range is still $ThisSheet$A$1:$N$5611

Actual Results:
Incorrect database range cell => $ThisSheet$A$1:$N$5611

Expected Results:
Correct database range cell => $ThisSheet$A$1:$N$5609


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.4.4.2 (x64) / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: CL
Comment 1 m_a_riosv 2024-01-09 12:06:03 UTC
Please attach your sample file.
Comment 2 haribarusemangatbaru@gmail.com 2024-01-10 01:16:06 UTC Comment hidden (obsolete)
Comment 3 haribarusemangatbaru@gmail.com 2024-01-10 01:16:39 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2024-01-10 03:12:38 UTC Comment hidden (obsolete)
Comment 5 m_a_riosv 2024-01-10 08:53:27 UTC Comment hidden (obsolete)
Comment 6 haribarusemangatbaru@gmail.com 2024-01-10 09:01:14 UTC Comment hidden (obsolete)
Comment 7 m_a_riosv 2024-01-10 09:04:46 UTC
Created attachment 191836 [details]
Test file xlsx

Maybe because your file is not a true xlsx, but other type with that extension.
Comment 8 haribarusemangatbaru@gmail.com 2024-01-10 09:05:24 UTC
Created attachment 191838 [details]
file example with database range
Comment 9 haribarusemangatbaru@gmail.com 2024-01-10 09:07:17 UTC
Oh it's because I input 'xlsx' in 'content type' field 
I choosed 'auto detect' and upload attachment worked
Comment 10 m_a_riosv 2024-01-10 10:02:05 UTC
Because of database range, it automatically expands to the last row before a blank row, from its current last row. What happen, in this case, when you applied the filter.

And for me after save without filter and reopen, the data range remains:
$ThisSheet.$A$1:$N$5611

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25276df12abd9d002f7f899900434617b256f745
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

I don't think it is a bug.
Comment 11 Stéphane Guillou (stragu) 2024-01-24 05:10:19 UTC
Thank you for the report.
This is already tracked in bug 127419, marking as duplicate.
Thank you!

*** This bug has been marked as a duplicate of bug 127419 ***