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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.