You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class JobValidationResult
{
public Guid Id { get; set; }
public Guid JobId { get; set; }
public string Validator { get; set; } = string.Empty;
public int RowIndex { get; set; }
public bool IsSuccess { get; set; } = true;
public string Message { get; set; } = string.Empty;
public Job Job { get; set; } = new();
}
--------
var bulkConfig = new BulkConfig
{
PropertiesToInclude = new List<string>
{
nameof(JobValidationResult.JobId),
nameof(JobValidationResult.Validator),
nameof(JobValidationResult.RowIndex),
nameof(JobValidationResult.IsSuccess),
nameof(JobValidationResult.Message)
}
};
await _dbContext.BulkInsertAsync(failedResults, bulkConfig);
The "failedResults" variable is a List<JobValidationResult>. An example of one of the entries in the list:
Id: {00000000-0000-0000-0000-000000000000}
IsSuccess: false
Job: {ETLSchema.Job}
JobId: {65857f48-dbea-4bf4-80ac-fb829b602a66}
Message: "TestField is blank/empty"
RowIndex: 1
Validator: "CheckNonEmpty : Row 1, Field TestField"
The "Id" field is an auto-generated UUID on the database so it doesn't need to be inserted.
The "Job" is a navigational property
No matter what I do, I get the following error:
The binary import operation was started with 5 column(s), but 6 value(s) were provided.
I have tried both the 'PropertiesToExclude' and 'PropertiesToInclude' BulkConfig options
The text was updated successfully, but these errors were encountered:
Version 8.0.3
Code in question:
The "failedResults" variable is a
List<JobValidationResult>
. An example of one of the entries in the list:Id: {00000000-0000-0000-0000-000000000000}
IsSuccess: false
Job: {ETLSchema.Job}
JobId: {65857f48-dbea-4bf4-80ac-fb829b602a66}
Message: "TestField is blank/empty"
RowIndex: 1
Validator: "CheckNonEmpty : Row 1, Field TestField"
The "Id" field is an auto-generated UUID on the database so it doesn't need to be inserted.
The "Job" is a navigational property
No matter what I do, I get the following error:
The binary import operation was started with 5 column(s), but 6 value(s) were provided.
I have tried both the 'PropertiesToExclude' and 'PropertiesToInclude' BulkConfig options
The text was updated successfully, but these errors were encountered: