Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
Attempting to display R visual using non R-base libraries grid and gridExtra.
The error message produced is listed next, followed by:
(1) a description of my computing environment
(2) Installed versions for Power BI and R
(3) List of R Script that produces error
(4) List of R Script that successfully displays
Anyone have any ideas about what may be causing the error? I do not believe the cause is an incorrect R installation as other stackoverflow forums suggest.
Error Message:
A problem occurred while processing your R script.
Here are the technical details:
Running the R script encountered the following error:
Failed to retrieve error code string from System ->317
Double-check that R is installed correctly on your machine.
R is correctly installed as I am also able to successfully display visuals that only require R-base libraries.
Computing Environment:
Host machine:
macbook pro late 2021 Apple Silicon M1 Max
macOS Ventura 13.4.1
Parallels VM:
Processor Apple Silicon 3.20 GHz (4 processors)
Installed RAM 32.0 GB
System type 64-bit operating system, ARM-based processor
Edition Windows 11 Pro
Version 21H2
Installed on 06/09/2022
OS build 22000.2057
Experience Windows Feature Experience Pack 1000.22001.1000.0
Power BI Desktop -- Version: 2.118.828.0 64-bit (June 2023)
R-4.3.1 (64bit)
Error occurs when I attempt to use gridExtra to display a table of data.
.libPaths()
[1] "C:/rPackages/4.3"
[2] "C:/Program Files (x86)/R/R-4.3.1/library"
R-4.3.1 is installed at folllowing location:
C:\Program Files (x86)\R\R-4.3.1
Power BI Options & Settings lists the R Home Path
Above path suggests 32bit install, but it is actually a 64bit install. This is the way R installs in this Win11 ARM VM environment, as proof, here is the startup message from Rgui:
R version 4.3.1 (2023-06-16 ucrt) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
Both of below scripts successfully execute and produce visuals in RStudio.
The script that produces the error is:
**** Code Snip Start ****
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |