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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Script Runtime Error with R custom visual (bupaR library) in Power BI Service

Hi everyone, 

 

I made a R custom visual with Power BI Desktop, it worked well on my computer. 

But when I published it in my workspace on the Power BI app, I got a script runtime error:

 

Script Runtime Error
Attaching package: 'bupaR'

The following object is masked from 'package:utils':

timestamp

Error in filter_activity_frequency(., percentage = filter_activity_frequency) :
unused argument (percentage = filter_activity_frequency)
In addition: Warning message:
package 'bupaR' was built under R version 3.4.2

 

You can find below my R code to produce the visual:

 

 

library(bupaR)
library(eventdataR)
library(xesreadR)
library(edeaR)
library(processmapR)
library(processmonitR)
library(DiagrammeR)
library(ggplot2)
library(png)

dataset$A_Timestamp <- as.POSIXct(dataset$A_Timestamp, origin="1970-01-01 00:00:00 GMT", tz = "FR")

eventlog = simple_eventlog(eventlog = dataset, case_id = 'A_Request ID', activity_id = 'OPERATION', timestamp = 'A_Timestamp')


eventlog %>%
  filter_activity_frequency(percentage = .7) %>% 
  filter_trace_frequency(percentage = .7) %>%   
  process_map(render = F) %>%   
  export_graph(file_name = 'processmap_values.png',
             file_type = 'PNG')

img <- readPNG("processmap_values.png")
grid::grid.raster(img)

Can you help me please ? 

 

Dimitri

 

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @DCabaud,

 

Would you please share a pbix file with some sample data with us? If it is, you can upload the pbix file to your OneDrive and send the share link to me via private message. 

 

Best Regards,
Qiuyun Yu 

DCabaud
Frequent Visitor

Hi @v-qiuyu-msft,

 

Did you find an explaination ? 

 

Regards,

Dimitri

v-qiuyu-msft
Community Support

Hi @DCabaud,

 

I already consulted this issue again internally, will update here once I get any information. 

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support

Hi @DCabaud,

 

I have reported this issue internally: CRI 105048543. Will update here once I get any information. 

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support

Hi @DCabaud ,

 

The PG team already created a bug item to track this issue. Will keep you update once I get any information. 

 

Best Regards,
Qiuyun Yu 

DCabaud
Frequent Visitor

Thank you @v-qiuyu-msft Smiley Happy

Rajatt
Employee

Hi Dimitri ,

Can you try now?

 

Thanks

Rajat

Anonymous
Not applicable

@DCabaud@v-qiuyu-msft,@Rajatt 

Hi everyone, 

I'm also having a similar problem.

I did a custom R look with Power BI Desktop using a ggplot2 and ggtern library, it worked fine on my computer.

But when publishing to my workspace in Power BI PRO, I also got a script runtime error:

Script runtime error

Attaching package: 'ggtern'

The following objects are masked from the 'package: ggplot2':

%+%, aes, annotate, calc_element, ggplot, ggplot_build,

ggplot_gtable, ggplotGrob, ggsave, layer_data, theme, theme_bw,

theme_classic, theme_dark, theme_gray, theme_light, theme_linedraw,

theme_minimal, theme_void

Error in f (..., self = self): unused argument (<environment>)

Also: warning message:

The plyr ::rename operation created duplicates for the following names: (``, ``)

Please try again later or contact support. If you contact support, please provide these details.
hidden details
Activity ID4940ac19-9669-4fa3-b755-2abf544a1bed
Request ID266b09bd-a1f1-d0af-2076-ac9098377e68
correlation id b00d485b-47dc-d0d8-f62e-612d92bede00
Time Thu 23 Sep 2021 12:03:16 GMT-0300 (Brasilia Standard Time)
Service version 13.0.16813.83
Customer version 2109.2.07785-train
Cluster URIhttps: //wabi-north-europe-e-primary-redirect.analysis.windows.net/

 

Does anyone know how to solve?
How do I contact support?

https://drive.google.com/file/d/1izqQU-OSRB4O-P5fuBpzui_eOqH1cBr0/view?usp=sharing