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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Error in running an R script in Power Query

Hello,

 

I am trying to follow the example in Microsoft website

Using R in Query Editor

 

I have installed R 3.5.1 and latest RStudio.

I have installed the "mice" package.

I have loaded the file EuStockMarkets_NA and from within Power Query inserted the "Run R Script" step.

I have copied and pasted the code in the example and while running it, got an error message, :

 

DataSource.Error: ADO.NET: R script error.
Loading required package: lattice

Attaching package: 'mice'

The following objects are masked from 'package:base':

cbind, rbind

Error in parse(text = x, keep.source = FALSE) :.........

 

Please find the file in this link: Running R script error

 

Thank you for the help,

Regards,

Tamir

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found the problem...

 

The script in the Microsoft Demo should have an extra line to set the dataset parameter

dataset <- read.csv(file="C:/Users/user/Google Drive/PowerPivot Power BI/EuStockMarkets_NA.csv", header=TRUE, sep=",")

 

Tamir

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I found the problem...

 

The script in the Microsoft Demo should have an extra line to set the dataset parameter

dataset <- read.csv(file="C:/Users/user/Google Drive/PowerPivot Power BI/EuStockMarkets_NA.csv", header=TRUE, sep=",")

 

Tamir

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.