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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.