Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Import Excel or CSV by Column Names

Prev Next

Overview

Step Details

Introduced in Version5.0.0
Last Modified in Version9.3.0
LocationData > Excel and CSV

The Import Excel or CSV by Column Names step takes in a CSV/Excel file and maps the desired columns to an Object List dynamically at runtime.


Properties

Error Handling

PropertyDescriptionData Type
Extra Columns in InputWill provide an error if extra columns are found in the input (Add Outcome: provides an outcome path, Throw Exception: throws an exception on reaching error, Ignore and Continue: will add an outcome path and ignore the error)---
Less Columns in InputWill provide an error if the columns found are less than expected (Add Outcome: provides an outcome path, Throw Exception: throws an exception on reaching an error, Ignore and Continue: adds an outcome path and ignores the error)---
Value Conversion ErrorWill send an error if a value can not be converted (Add Outcome: provides an outcome path, Throw Exception: throws an exception on reaching error, Ignore and Continue: add an outcome path and ignore the error)---

Import Raw Lines

PropertyDescriptionData Type
Import Raw LinesAdds data of the row into the specified field---

Into PropertySpecify the mapped data field---

Input Data

PropertyDescriptionData Type
Input File TypeDefines the data type of the input file---
CSV DelimiterDefines the delimiter specified in the CSV file---
Ignore Quotes (Do not treat as escaped)Ignores column names that contain quotesBoolean
Input File EncodingDefines the encoding type---
Number of ColumnsSpecifies the number of columns that will be importedInt32
Import All Worksheets (Available in v9.3+)This setting allows all worksheets of an Excel file to be imported at once.Boolean

Output Data

PropertyDescriptionData Type
Output Data TypeDefines the output data type---

Inputs

PropertyDescriptionData Type
File DataThe CSV or Excel fileFileData
Column MappingMapping data for columnsList of DynamicCSVMapping

Outputs

PropertyDescriptionData Type
Done

Imported DataReturns the data that was successfully importedList of [Data Type]
Extra Columns Error

Actual Columns NumberReturns the number of columnsInt32

Input LineReturns the input line or errorInt32

Line NumberReturns the line number of an errorInt32
Less Columns Error

Actual Columns NumberReturns the number of columnsInt32

Input LineReturns the input line or errorInt32

Line NumberReturns the line number of an errorInt32
Value Conversion Error

Column NumberReturns the column number of an errorInt32

Error MessageReturns the error messageString

Input LineReturns the input line or errorInt32

Line NumberReturns the line number of an errorInt32

Source ValueReturns what the source value isString

Target TypeReturns the expected data typeString

Feature Changes

DescriptionVersionDateDeveloper Task
Select Import Excel or CSV steps (excluding Runtime Mappings) now include a setting that allows all worksheets in an Excel file to be imported at once. 9.3October 2024[DT-041664]
Related Forum Posts

Training Video:
Dynamic Excel Creation