dotnet / dotnet/machinelearning-modelbuilder
All scenarios: Training failed with error "Value cannot be null. (Parameter 'providerFactory')" when training SQL Server data.
- Dominant language
- Dockerfile
- Stars
- 285
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
**System Information (please complete the following information):**
Windows OS: Windows-11-Enterprise-24H2
ML.Net Model Builder 2022: 17.19.2.2511202 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.13.0)
.Net: 9.0
**Describe the bug**
- On which step of the process did you run into an issue:
Training failed with error "Value cannot be null. (Parameter 'providerFactory')" when training SQL Server data.
**TestMatrix**
https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv
**To Reproduce**
Steps to reproduce the behavior:
1. Select Create a new project from the Visual Studio start window.
2. Choose the C# Console App (.NET Core) project template.
3. Add model builder by right click on the project.
4. Select any scenario.
5. On the Data page, choose the **SQL Server** data source.
6. On the Train page. click "Start training".
**Expected behavior**
Training successfully.
**Screenshot**

**Additional context**
Value cannot be null. (Parameter 'providerFactory')
at Microsoft.ML.Runtime.Contracts.CheckValue[T](T val, String paramName)
at Microsoft.ML.Data.DatabaseSource..ctor(DbProviderFactory providerFactory, String connectionString, String commandText, Int32 commandTimeoutInSeconds)
at Microsoft.ML.Data.DatabaseSource..ctor(DbProviderFactory providerFactory, String connectionString, String commandText)
at Microsoft.ML.ModelBuilder.AutoMLEngine.StartTrainingAsync(ITrainingConfiguration config, PathConfiguration pathConfig, CancellationToken userCancellationToken) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 115
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.