dotnet / dotnet/machinelearning-modelbuilder

Training a model throws error "Object reference not set tot an instance of an object" while training

Open
#2,957 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
- Model Builder Version (available in Manage Extensions dialog): 17.18.2.2415501
- Visual Studio Version 2022 17.10.5

**Describe the bug**
Training a model throws error "Object reference not set tot an instance of an object" while training
- On which step of the process did you run into an issue:
- During Finalizing the Model
-
- Clear description of the problem:
Training a model throws error "Object reference not set tot an instance of an object" while training

**To Reproduce**
Steps to reproduce the behavior:
1.Run through steps to train a model
2. Start Training

**Object reference not set to an instance of an object.

at Microsoft.ML.ModelBuilder.Utils.Utilities.NeedsCompileTagsAdded(Project project) in /_/src/Microsoft.ML.ModelBuilder/Utils/Utilities.cs:line 408
at Microsoft.ML.ModelBuilder.ViewModels.TrainViewModel.AddModelItemGroup(String stateFileNameWithoutExtension, CSharpCode pFICode) in /_/src/Microsoft.ML.ModelBuilder/ViewModels/TrainViewModel.cs:line 1195
at Microsoft.ML.ModelBuilder.ViewModels.TrainViewModel.d__98.MoveNext() in /_/src/Microsoft.ML.ModelBuilder/ViewModels/TrainViewModel.cs:line 1120**

**Expected behavior**
The Model to finish training

**Screenshots**
If applicable, add screenshots to help explain your problem.

![image](https://github.com/user-attachments/assets/a0b147af-09b0-4af6-aeab-f455a95b019a)

**Additional context**
Add any other context about the problem here.

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.