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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
merwijas
Frequent Visitor

AzureML R package fails to load in PowerBi, number of columns of matrices must match error

I can loaded other packages into PowerBi R scripts in Power Query but when I try to load AzureML I get a failed to load, columns of matrices must match error. Here is my script and error:

 

r script:

library(AzureML)

 

error:

DataSource.Error: ADO.NET: R script error.
Error: package or namespace load failed for 'AzureML' in rbind(info, getNamespaceInfo(env, "S3methods")):
number of columns of matrices must match (see arg 2)
Execution halted

 

Details:
DataSourceKind=R
DataSourcePath=R
Message=R script error.
Error: package or namespace load failed for 'AzureML' in rbind(info, getNamespaceInfo(env, "S3methods")):
number of columns of matrices must match (see arg 2)
Execution halted

 

ErrorCode=-2147467259
ExceptionType=Microsoft.PowerBI.Scripting.R.Exceptions.RScriptRuntimeException

 

I've tried installing AzureML directly from CRAN, tried older versions of it, and tried changing the version of R-studio that the PBi is pointing to. I don't understand what the "columns must match" part means so any explanation about the error type or suggestions on what to do about it would be greatly appreciated.

 

Many thanks!

 

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

Hi @merwijas ,

 

Below is the similar post for you to check if it could help you.

https://community.powerbi.com/t5/Desktop/R-Visual-Rcpp-package-error/td-p/471272

 

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 @merwijas ,

 

Below is the similar post for you to check if it could help you.

https://community.powerbi.com/t5/Desktop/R-Visual-Rcpp-package-error/td-p/471272

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.