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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

R scripting Error

Recently I started using R to import datasets into Power BI. This all went fine until I opened Power BI and wanted to refresh my data and it didn't work.

I get the following error message:

"Somethin went wrong

A problem occurred while processing your R Script. Here are the technical details: There is an error in XML document(0,0)."

 

I reversed my changed to the r script I made and the problem keeps occurring. I even opened earlier versions of my Power BI files and still the problem remained. Then I went looking at the r script options and noticed the directory for R was not selected. When I went on to select the correct directory (it was automatically detected), the same error would occur.

 

I have no idea what happened, but I suspect is has nothing to do with changes to my code but to changes to settings.

 

I also updated to a new version of Windows today. I don't think this should have anything to do with it, but knowing how computers work, it might just be the problem.

 

Does anyone have any ideas how to solve this?

 

Thanks in advance for the advice!

 

 

EDIT: SOLUTION:

The solution was quite simple. I just had to reinstall Power BI and it all worked again

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can delete the AppData folder for Power BI Desktop. In my case this folder was located at C:\Users\{user}\AppData\Local\Power BI Desktop. The folder is hidden, you need to set it to be visible. If it doesn't work, you can delete this folder and re-install Power BI.

 

 

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

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can delete the AppData folder for Power BI Desktop. In my case this folder was located at C:\Users\{user}\AppData\Local\Power BI Desktop. The folder is hidden, you need to set it to be visible. If it doesn't work, you can delete this folder and re-install Power BI.

 

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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