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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors