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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Ania_Learn
Frequent Visitor

Getting Error when publishing a R script that is working in the desktop version !

Hello,

my R visual is working on the power bi desktop (it is a radar chart) but when publishing the report i got an error on the visual : what's wrong please ?

THanks

 

ERROR :

 

PRICE1_mean 6.233333 7.450000 7.050000 PRICE2_mean 7.10 7.20 7.15 'data.frame': 4 obs. of 3 variables: $ 3: Factor w/ 3 levels "6.233333","7.10",..: NA NA 1 2 ..- attr(*, "names")= chr NA NA "PRICE1_mean " "PRICE2_mean " $ 3: Factor w/ 3 levels "7.20","7.450000",..: NA NA 2 1 ..- attr(*, "names")= chr NA NA "PRICE1_mean " "PRICE2_mean " $ 3: Factor w/ 3 levels "7.050000","7.15",..: NA NA 1 2 ..- attr(*, "names")= chr NA NA "PRICE1_mean " "PRICE2_mean " 3 3 3 1 2 PRICE1_mean 6.233333 7.450000 7.050000 PRICE2_mean 7.10 7.20 7.15 Error in `$<-.data.frame`(`*tmp*`, Froid, value = numeric(0)) : replacement has 0 rows, data has 4 In addition: Warning messages: 1: funs() is soft deprecated as of dplyr 0.8.0 Please use a list of either functions or lambdas: # Simple named list: list(mean = mean, median = median) # Auto named with `tibble::lst()`: tibble::lst(mean, median) # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE)) This warning is displayed once per session. 2: In max(dataset2$Froid, dataset2$Inconnu, dataset2$`UT Ind`) : no non-missing arguments to max; returning -Inf 3: In min(dataset2$Froid, dataset2$Inconnu, dataset2$`UT Ind`) : no non-missing arguments to min; returning Inf 4: In `[<-.factor`(`*tmp*`, ri, value = -Inf) : invalid factor level, NA generated 5: In `[<-.factor`(`*tmp*`, ri, value = -Inf) : invalid factor level, NA generated 6: In `[<-.factor`(`*tmp*`, ri, value = -Inf) : invalid factor level, NA generated 7: In `[<-.factor`(`*tmp*`, ri, value = Inf) : invalid factor level, NA generated 8: In `[<-.factor`(`*tmp*`, ri, value = Inf) : invalid factor level, NA generated 9: In `[<-.factor`(`*tmp*`, ri, value = Inf) : invalid factor level, NA generated

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Ania_Learn 

Firstly, do you use the lastest version of power bi?

Secondly, Do you have a pro license as R visual needs a pro liscense to render?

Next, please check limitations below:

Which package do you use? please check if your packages are in the support list of power bi service.

https://docs.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

Chinese, Japanese, and Korean fonts require all of the additional following steps to work properly in the Power BI service, more details please refer to the link.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Ania_Learn 

Firstly, do you use the lastest version of power bi?

Secondly, Do you have a pro license as R visual needs a pro liscense to render?

Next, please check limitations below:

Which package do you use? please check if your packages are in the support list of power bi service.

https://docs.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

Chinese, Japanese, and Korean fonts require all of the additional following steps to work properly in the Power BI service, more details please refer to the link.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.