SQL Server - Bulk load from on-prem file action

This action efficiently loads an on-prem CSV data file into a specific table in SQL Server. The source CSV data file should be accessible by the On-prem files connector.

OPA required

This action requires a connection using Workato on-prem agent. Refer to On-prem connectivity for more information.

Input

FieldDescription
Table nameThe name of the target table to load the data. The table schema should be identical to the schema of the input CSV file.
File URLThe on-prem file url that references a CSV file located in the on-prem agent.
Allow partial inserts on error?If No, then no data is inserted if an error occurs. If Yes, then all the data up to the point of the errored row is inserted. Defaults to No.

Advanced configuration

FieldDefaultDescription
First row number1The first row where your data begins. This is 1-based index. If your data contains a header row, set this to 2 to skip the header row.
Field quotedouble-quote The quote character for the source CSV.
Field terminatorTab character The field terminator for the source CSV.
Batch size10,000Sets the number of rows in each transaction. Rows will be gradually inserted across multiple transactions, batch by batch. Advanced users can customize this to control memory usage and optimize loads.
Insert in a single batch?NoIf set to Yes, then all rows are inserted in a single batch and Batch size is ignored.
Last row number0Zero-indexed last row number, represented as an offset from the actual last row of the CSV file. Use this to omit rows from being loaded.
Fire triggersNoIndicate if triggers on the table should be fired after the data has been loaded successfully.
Keep null valuesYesIndicate how to treat empty values in the file. If No, default values will be inserted. If Yes, NULL values are inserted.
Data file typecharDefines the character encoding for the data file.

Output

FieldDescription
Destination tableName of the table where the rows were inserted.
Rows parsedNumber of rows read from source file
Rows loadedNumber of rows loaded
StatusLoaded - all rows loaded successfully
Load failed - Unsuccessful load, and nothing was loaded
Partially loaded - Unsuccessful load, and some rows were loaded
Timeout - Execution timed out (24 hour timeout)
First error lineFirst row where the error occurred, if any
First error characterThe index of the character where the error occurred, if any
First error column nameThe name of the column for the field where the error occurred, if any

Last updated: