BulkLoadFileImporter
The exception thrown when the extracted text file does not exist.
The exception thrown when the extracted text file length exceeds the max extracted text length.
When the encoding is not specified or is UTF8, the max length is 1GB
otherwise, the max length is MaxValue.
The exception thrown when the identity field value is null or empty.
public const string ERROR_MESSAGE_FOLDER_NAME_TOO_LONG = "Error occurred when importing the document. The folder name is longer than 255 characters."
public BulkLoadFileImporter(LoadFile args, ProcessContext context, IIoReporter reporter, ILog logger, int timeZoneOffset, bool initializeUploaders, Guid processID, bool doRetryLogic, string bulkLoadFileFieldDelimiter, CancellationTokenSource tokenSource, Func<string> correlationIdFunc, IRunningContext runningContext = null)
Constructs a new importer that will prepare a bulk load file from a provided file.
public BulkLoadFileImporter(LoadFile args, ProcessContext context, IIoReporter reporter, ILog logger, int timeZoneOffset, bool autoDetect, bool initializeUploaders, Guid processID, bool doRetryLogic, string bulkLoadFileFieldDelimiter, CancellationTokenSource tokenSource, Func<string> correlationIdFunc, IRunningContext runningContext = null)
Constructs a new importer that will prepare a bulk load file from a provided file.
public BulkLoadFileImporter(LoadFile args, ProcessContext context, IIoReporter reporter, ILog logger, int timeZoneOffset, bool autoDetect, bool initializeUploaders, Guid processID, bool doRetryLogic, string bulkLoadFileFieldDelimiter, CancellationTokenSource tokenSource, bool initializeArtifactReader, Func<string> correlationIdFunc, IRunningContext runningContext = null)
Constructs a new importer that will prepare a bulk load file from a provided file.
protected virtual void _processContext_HaltProcessEvent(object sender, CancellationRequestEventArgs e)
Safely deletes all temporary load files that are auto-generated when this object is created.
public FieldInfo[] GetMappedFields(int artifactTypeId, IList<int> ObjectFieldIdListContainsArtifactId)
protected string PrepareFieldCollectionAndExtractIdentityValue(ArtifactFieldCollection record, int CurrentLineNumber)
Loads all the documents in a load file
public void WriteObjectLineToTempFile(string ownerIdentifier, string objectName, int artifactID, int objectTypeArtifactID, int fieldID)