Skip to content

MLModel builder can not working with SQL Server?? #2084

Description

@nnhao14102000

System Information (please complete the following information):

  • Model Builder Version: 16.13.1.2210302
  • Visual Studio Version: 17.1.3
  • SQL Server 2019, SQL Server Basic type of Azure

Describe the bug
On which step of the process run into an issue:

  • Step 1: choose a scenario that is Recommendation.
  • Step 2: Choose the data source type is SQL Server, choose a table, columns all are OK.
  • Step 3: Start to train and it shows an error: Shuffle input cursor reader failed with an exception (Error 1)
  • Step 4: I try train again, and it shows an error: Training time finished without any models trained. (Error2)

Clear description of the problem:

  • Error 1:
    2022-04-01 13:40:48.7163 INFO Set log file path to C:\Users\Hao\AppData\Local\Temp\MLVSTools\logs\PtoRecommenderModelBuilder-HYOE5L.txt (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
    2022-04-01 13:42:01.1227 INFO start nni training (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
    2022-04-01 13:42:01.1227 INFO Experiment output folder: C:\Users\Hao\AppData\Local\Temp\AutoML-NNI\Experiment-XTJ16V (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
    2022-04-01 13:42:01.1227 DEBUG row count is unknown, count it explicitly (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
    2022-04-01 13:42:01.3651 DEBUG count elapse 240ms (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
    2022-04-01 13:42:01.3651 INFO | Trainer RSquared Absolute-loss Squared-loss RMS-loss Duration #Iteration | (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
    2022-04-01 13:42:01.4044 DEBUG Shuffle input cursor reader failed with an exception
    at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore()
    at Microsoft.ML.Data.RootCursorBase.MoveNext()
    at Microsoft.ML.Data.IO.BinarySaver.RowsPerBlockHeuristic(IDataView data, ColumnCodec[] actives)
    at Microsoft.ML.Data.IO.BinarySaver.SaveData(Stream stream, IDataView data, Int32[] colIndices)
    at Microsoft.ML.Data.DataSaverUtils.SaveDataView(IChannel ch, IDataSaver saver, IDataView view, Stream stream, Boolean keepHidden)
    at Microsoft.ML.BinaryLoaderSaverCatalog.SaveAsBinary(DataOperationsCatalog catalog, IDataView data, Stream stream, Boolean keepHidden)
    at Microsoft.ML.ModelBuilder.AutoMLService.Proposer.ResampleStrategyProposer.Initialize(String outputFolder) in //src/Microsoft.ML.ModelBuilder.AutoMLService/Proposer/ResampleStrategyProposer.cs:line 89
    at Microsoft.ML.ModelBuilder.AutoMLService.Proposer.ResampleStrategyProposer.Propose(TrialParameter trialParameter) in /
    /src/Microsoft.ML.ModelBuilder.AutoMLService/Proposer/ResampleStrategyProposer.cs:line 59
    at Microsoft.ML.ModelBuilder.AutoMLService.Proposer.Controller.Propose() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Proposer/Controller.cs:line 66
    at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.LocalAutoMLExperiment.d__15.MoveNext() in /
    /src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/LocalAutoMLExperiment.cs:line 163
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 160 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)

Error 2:
2022-04-01 13:59:32.4157 DEBUG Training time finished without any models trained.
at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.LocalAutoMLExperiment.d__15.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/LocalAutoMLExperiment.cs:line 202
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /
/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 160 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)

Expected behavior
Should success to build out the model

Screenshots
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions