Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
Solved! Go to Solution.
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
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!