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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

R script error. Error in data.frame : Object not found Execution Halted

I am using the R script editor in Power BI. I selected the fields need for my visualization in the values section in the Visualization pane. When I ran the code to just sent test, I . got a message stating, "Can't display this visual. R Script error. Error in data.frame(Date, Tracking): object 'Date not found Execution halted.

 

Afterwards, I pasted the full code for my visualization and I got the same answer. I already tested the code in RStudio and it worked fine on that program. 

 

I'm unsure why Power BI is not detecting the columns in the data frame, because clearly the fields I selected are in the data frame generated by Power BI. How do I resolve this issue?

 

Screen Shot 2019-09-26 at 6.07.03 PM.png

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please update the R version to supported version R 3.3.1, R 3.3.0, MRO 3.3.1, MRO 3.3.0, MRO 3.2.2 then test again.

 

If issue persists, please enable desktop trace log, repeat steps until error occurs, share trace log files with us.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi,

I have R-3.6.1 so I will un-install and download the versions you mentioned. Thanks for your quick response.

Best

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.