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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

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
JirkaZ
Solution Specialist
Solution Specialist

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

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-power/m-p/739320 

 

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.
JirkaZ
Solution Specialist
Solution Specialist

Please see here: https://mitchellpearson.com/2018/07/15/quick-tips-export-data-from-power-bi-using-r/

 

the data is held in 'dataset' (not in ALL_Data)

Anonymous
Not applicable

Thanks @JirkaZ, it solved the issue

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

August Carousel

Fabric Community Update - August 2024

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