cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Error in exporting data from power bi to csv file using R

I am trying to export data from power bi to csv file using R

I am giving the below command

write.csv(ALL_Data, "C:\\Users\\username\\Documents\\folder 1\\folder 2\\folder 3\\folder 4\\filename.csv")

I am getting the below error please help

DataSource.Error: ADO.NET: R script error.
Error in is.data.frame(x) : object 'ALL_Data' not found
Calls: write.csv ... eval.parent -> eval -> eval -> write.table -> is.data.frame
Execution halted

Details:
    DataSourceKind=R
    DataSourcePath=R
    Message=R script error.
Error in is.data.frame(x) : object 'ALL_Data' not found
Calls: write.csv ... eval.parent -> eval -> eval -> write.table -> is.data.frame

1 ACCEPTED SOLUTION

Accepted Solutions
Resolver III
Resolver III

3 REPLIES 3
Resolver III
Resolver III

Community Support
Community Support

Hi @Ankitamalhotra 

 

You might refer to these similar posts:

https://community.powerbi.com/t5/Desktop/Error-when-Exporting-data-Using-R-Script/m-p/70156 

https://community.powerbi.com/t5/Service/Error-while-exporting-data-in-csv-file-using-R-script-in-po... 

 

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

Thanks @JirkaZ, it solved the issue

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors