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
AnalyticsM1
New Member

Error updating data from .xlsx file generated by R

I already have my dataflow working just right. Now I'm just trying to automate my dataflow and here is where the problem starts, and I know when exactly happens. First of all, both my version of PowerBi Desktop and the Gateway are updated.

As I said before everything works fine as PowerBi collects the info from an .xslx and creates my dashboard. But this .xlsx archive PowerBi uses is generated by R. After generated by R, if I open the archive and I delete a blank column (it doesn't modifies absolutly nothing) and then save and close the .xslx, magically when I manually update in PowerBi is successful (and everything is completely right). But if I run my R script, creating the archive (it's an Excel file with multiple spreadsheets), and just go to PowerBi to update my .pbix, it always fails with the next message "The input couldn't be recognized as a valid Excel document".

 

My .xlsx doesn't have any kind of hyperlinks, it´s only numbers and letters like stats, with no reference to links of websites.

 

Does someone know a solution for this?

I don't know what else to do, please help.

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @AnalyticsM1 ,

 

Maybe there is something wrong with your R script, please check. And make sure that creating excel threads in your R process is followed by reading excel threads.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Solution Authors
Top Kudoed Authors