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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
wolfk0
New Member

Error displaying custom visual in Power BI Service

Hello,

 

I have created a custom visual utilizing ggplot2 and lubridate libraries, it is a gantt chart where projects are listed with dates on the x-axis. It displays correctly both in Power BI Desktop, as well as in R Studio, However, once I publish it to the Power BI Service I get the following error:

 
Script Runtime Error
Attaching package: 'lubridate' The following object is masked from 'package:base': date Loading required package: sysfonts [1] "font in use: arial.ttf" Error in Ops.Date((x - from[1]), diff(from)) : / not defined for "Date" objects In addition: Warning message: Removed 2 rows containing missing values (geom_segment).
Please try again later or contact support. If you contact support, please provide these details.
Activity ID1b768dfb-a4a6-4662-8e35-b53fc0344579
Request ID39efdd1d-6394-8793-b813-7b058823008a
Correlation IDde5f43c1-2a8a-aa8f-878f-2656aa634acd
TimeTue Aug 14 2018 10:53:37 GMT-0500 (Central Daylight Time)
Version13.0.6289.161
 
I am fairly new to Power BI, so if anyone can help me understand what might be going wrong (and ideally a fix for it) I would appreciate it greatly!!
2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @wolfk0,

 

Firstly, please check if you have hit these known limitations.

 

In addition, if the package you used is not supported in Power BI Service, you will get an error.

 

Please check if your packages are supported in Power BI Service with this document.

 

Best Regards,

Cherry

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

Hi  Cherry - thaks for your response. I double checked, and all packages I am using are supported in Power BI, and I don't think I have run into any of the known limitations you pointed out to me. I am using the as.Date() functionality in order to pass in dates, and have no times associated with anything. The rest of the limtations seem not to apply...

 

I'm not sure, but it seems as though there is an operation that is being executed that isn't possible with the date format from the error that says:

Error in Ops.Date((x - from[1]), diff(from)) : / not defined for "Date" objects

However, I do not understand why I only get this error when I publish my Power BI Desktop session, but don't ge **bleep** when I run the code in either the Power BI Desktop application, or if I run it within R Studio - in both those cases I get my graphic displayed as it should.

 

Any insights are welcome!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors