Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
HemanthKumarS
New Member

R Script Runtime Error

Script Runtime Error

An error occurred while running the script

Please try again later or contact support. If you contact support, please provide these details.

 

 

Activity ID: c1a6e9d0-e487-4316-9e2e-5e173f5b9144
Request ID: 65233943-c041-4c1e-a464-4919def52c0c
Correlation ID: 55ad4bc7-284f-0db9-0659-315481a059e3
Time: Mon Aug 29 2022 13:40:00 GMT+0530 (India Standard Time)
Service version: 13.0.18945.52
Client version: 2208.4.12891-train
Cluster URI: https://wabi-us-north-central-e-primary-redirect.analysis.windows.net/

 

Hi, i'm using R script to create a custom 3D scatter plot. It works fine in power BI desktop but not in the published version.

 

source('./r_files/flatten_HTML.r')

############### Library Declarations ###############

libraryRequireInstall("ggplot2");
libraryRequireInstall("plotly")
####################################################

################### Actual code ####################
x <- dataset$Attr_X
y <- dataset$Attr_Y
z <- dataset$Attr_Z
fig <- plot_ly(x =x , y =y , z =z , type="scatter3d", mode="markers", color=dataset$Cluster_Name,
               hovertemplate = ~paste(
                      'SKU:', dataset$Brand, dataset$SKU,
                      '<br>Power:', dataset$Attr_X,
                      '<br>Weight (lbs):', dataset$Attr_Z,
                      '<br>Price: $', dataset$Attr_Y),
               showlegend = TRUE)
       
#fig <- fig %>% layout(title = '3D Scatter Plot')
fig <- fig %>% layout(scene = list(xaxis = list(title = 'Power'),
                                   yaxis = list(title = 'Price'),
                                   zaxis = list(title = 'Product Weight')))  
####################################################

############# Create and save widget ###############
internalSaveWidget(fig, 'out.html');
####################################################

 

@v-viig any help on this please?

1 REPLY 1
Anonymous
Not applicable

Hi @HemanthKumarS ,

 

R visuals in the Power BI service have a few limitations, I suggest you to check the considerations and limitations from the offical blog.

For reference:

Considerations and limitations

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.