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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
perezm27
New Member

R Script readxl error

Hello, I am still fairly new to Power BI and mainly have been using it on the desktop app but I am having some issues with the online service. In the R script editor I am using the readxl package to read in excel files as dataframes which I am then using to make my visualizations. It all works fine in Desktop but I get a script runtime error that reads:

 

Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, : Evaluation error: zip file 'C://Users//perezm27//Documents//data.xlsx' cannot be opened.

 

The file is not open anywhere and it is not zipped. You can review the code I used to pull it down below:

data <- read_xlsx("C://Users//perezm27//Documents//data.xlsx", 1)
 
If anyone were to have any leads on where I'm going wrong please let me know! 
 
Thank you!
2 REPLIES 2
lbendlin
Super User
Super User

try with single forward slashes.

Sorry for the late reply. Forward slashes does get rid of the error code but the only thing is now it's telling me "Couldn't retrieve the data for this visual" which I assume means that it is not creating that dataframe from the function. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.