dotnet / dotnet/machinelearning-modelbuilder

All scenarios: Training failed with error "Value cannot be null. (Parameter 'providerFactory')" when training SQL Server data.

Open
#3,005 8 comments 6 reactions 0 assignees View on GitHub
Priority:0 Reported by: Test
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**
![Image](https://github.com/user-attachments/assets/d08dd64c-dd79-4c28-9cfe-16dc11edd09d)

**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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.