Bug 143186 - pivotcaches - BASIC runtime error 423
Summary: pivotcaches - BASIC runtime error 423
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-VBA-Error423
  Show dependency treegraph
 
Reported: 2021-07-04 18:25 UTC by johnks
Modified: 2024-10-18 22:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of error (144.03 KB, image/png)
2021-07-04 18:28 UTC, johnks
Details
file which throws pivot table errors (210.85 KB, application/vnd.ms-excel.sheet.macroEnabled.12)
2021-07-04 18:31 UTC, johnks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnks 2021-07-04 18:25:44 UTC
Description:
i am trying to run an excel file with macros and one of them has a line containing pivotcaches which libreoffice is saying is 423.

Steps to Reproduce:
1. open this file. enable macros. 
2.click on instructions tab
3. click on summary button on right side

Actual Results:
423 error

Expected Results:
macro should run


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Flatpak
Calc: threaded
Comment 1 johnks 2021-07-04 18:28:06 UTC
Created attachment 173349 [details]
screenshot of error
Comment 2 johnks 2021-07-04 18:29:59 UTC
  ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
        "Reco!R2C1:R99948C17", Version:=xlPivotTableVersion12).CreatePivotTable _
        TableDestination:="Pivot!R2C2", TableName:="PivotTable1", DefaultVersion _
        :=xlPivotTableVersion12
Comment 3 johnks 2021-07-04 18:31:09 UTC
Created attachment 173350 [details]
file which throws pivot table errors
Comment 4 johnks 2021-07-04 18:48:51 UTC
this file contains more code which throws errors so i am going to club them together otherwise i have to write the same error, upload same file multiple times. let me know if i am supposed to upload new bugs for each error separately


second bug is 
ShowPivotTableFieldList- Basic runtine error 423

here is the code which throws basic error.

 ```` ActiveWorkbook.ShowPivotTableFieldList = True ````
 
it looks like this function isnt enabled or something.
attached screenshot of the error as well




----
third bug is 

"basic runtime error 1

no such elementexception

the offending code is

````ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables ````

and this code 

````ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _ ````


and this code
```` ActiveSheet.PivotTables("PivotTable1").TableStyle2 = "PivotStyleDark4" ````

and this one
 ```` .ThemeColor = xlThemeColorDark1 ````
Comment 5 johnks 2021-07-04 18:50:48 UTC

and more errors
.TintAndShade = 0


i work on this file by clicking on summary button, waiting for the error to pop up and deleting that line and running the macro again.
Comment 6 Buovjaga 2021-07-19 08:16:58 UTC
It's looking for an external .xls file that you did not provide, but I do get the error.

Btw. you don't have to keep uploading the same file when creating new reports. You can reference it by saying: open attachment 173350 [details]

We have a policy of one issue per report.

NixOS
Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 7 johnks 2021-07-21 13:04:33 UTC
(In reply to Buovjaga from comment #6)
> It's looking for an external .xls file that you did not provide, but I do
> get the error.
> 
> Btw. you don't have to keep uploading the same file when creating new
> reports. You can reference it by saying: open attachment 173350 [details]
> 
> We have a policy of one issue per report.
> 
> NixOS
> Version: 7.1.4.2 / LibreOffice Community
> Build ID: 10(Build:2)
> CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
> Locale: fi-FI (fi_FI.UTF-8); UI: en-US
> Calc: threaded

i do not have any other external file. the file is supposed to be self contained.it should show the bugs as you say you have seen
Comment 8 QA Administrators 2023-09-13 03:17:20 UTC Comment hidden (obsolete)
Comment 9 johnks 2023-09-13 05:56:09 UTC
i am on the latest software and 2 bugs are still present 423 on both pivotcaches and showpivottablefieldlist 

and the following lines as well

ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _



got to the third bug by deleting the offending lines from the vba code and trying to run the macro again and again.


   With ActiveSheet.PivotTables("PivotTable2").PivotFields("Remarks")
        .Orientation = xlRowField
        .Position = 1
    End With

with the offending line 

   .Orientation = xlRowField

.....



also the following error lines

Selection.Style = "Comma"

ActiveSheet.PivotTables("PivotTable1").TableStyle2 = "PivotStyleDark4"
ActiveSheet.PivotTables("PivotTable2").PivotSelect _
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0

and some more but yeah, the problem still exists






Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Flatpak
Calc: threaded
Comment 10 QA Administrators 2023-09-14 03:05:47 UTC Comment hidden (obsolete)
Comment 11 Charles Williams 2024-10-18 22:03:04 UTC
Still present:

Version: 24.8.2.1 (AARCH64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 8; OS: macOS 15.0.1; UI render: Skia/Metal; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded