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
Anonymous
Not applicable

Getting the below error while loading R script

DataSource.Error: ADO.NET: R script error.
Error: unexpected symbol in:
"# Epilog - Auto Generated #
rm"
Execution halted

Details:
DataSourceKind=R
DataSourcePath=R
Message=R script error.

 

 

I am getting this error while running my R script

# 'dataset' holds the input data for this script
.libPaths(.libPaths()[3])
wsid = "##################" #this is an Azure ML workspace id
auth = "################################" #this is an Azure ML authentication id
servicename = "Experiment created on 06/04/2021 [Predictive Exp.]"
library(AzureML)
ws <- workspace(wsid,auth)
ds <- consume(servicces(ws, name = servicename,dataset)

 

What could be the reason?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I got the solution, I forgot to put a ')', here. ds <- consume(servicces(ws, name = servicename),dataset)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I got the solution, I forgot to put a ')', here. ds <- consume(servicces(ws, name = servicename),dataset)

v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

It is because some symbols cant be recognized,check the similar threads below:

https://community.rstudio.com/t/unexpected-symbol-with-code/61944

https://community.powerbi.com/t5/Developer/Query-Editor-R-Script-Date-Time-Issues/td-p/90540

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

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 Kudoed Authors