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: 2023-09-14 03:05 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
Dear johnks,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug