Skip to content

Commit c025270

Browse files
authored
Error message for non-parsable datasets in AutoML (#5130)
* improve error message for unparsable files * whitespace nit
1 parent 91ae1a9 commit c025270

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Microsoft.ML.AutoML/ColumnInference/ColumnInferenceApi.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ private static TextFileContents.ColumnSplitResult InferSplit(MLContext context,
119119

120120
if (!splitInference.IsSuccess)
121121
{
122-
throw new InferenceException(InferenceExceptionType.ColumnSplit, "Unable to split the file provided into multiple, consistent columns.");
122+
throw new InferenceException(InferenceExceptionType.ColumnSplit,
123+
"Unable to split the file provided into multiple, consistent columns. " +
124+
"Readable formats include delimited files such as CSV/TSV. " +
125+
"Check for a consistent number of columns and proper escaping and quoting.");
123126
}
124127

125128
return splitInference;

0 commit comments

Comments
 (0)