Read from Sheet
Operation name
Read from Sheet
Function overview
Reads Excel data from a sheet.
Data model
The data model of this component is table model type.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
File |
Required |
Available |
Enter the Excel file path.
|
Note
|
Sheet name |
Optional |
Available |
Select or enter a sheet of the Excel file specified in File. |
|
Column list |
Optional |
- |
Specify the columns. Each column in the column list can be operated with the following buttons:
|
|
Column list/Column name |
Required |
Available |
Enter the column name. |
|
Column list/Type |
Required |
Not available |
Select the type of Column name.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Open Excel Wizard |
Open the Excel Wizard with the file specified in File. = Remarks =
For how to configure settings, refer to Excel Read Wizard. |
|
Update column list |
Get column names and types from the first row values of the file specified in File and set them in Column list. |
Note
When the value of a target cell is empty, a different type from that of the target cell might be set to Column list/Type. |
Start/End condition
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Specify reading start condition |
Optional |
Not available |
Select whether to specify a condition to start reading.
|
|
Start condition |
Optional |
Not available |
Select a condition to start reading.
|
|
Match string |
Optional |
Available |
Enter the matching string as the condition to start reading. |
|
Cell address |
Optional |
Available |
Enter the cell address as the condition to start reading. Example: A1 |
|
Specify reading end condition |
Optional |
Not available |
Select whether to specify a condition to end reading.
|
|
End condition |
Optional |
- |
Specify the condition to end reading. Each column can be operated with the following buttons:
|
|
End condition/Column name |
Required |
Not available |
In Column Name, select the column to check for the condition to end reading. |
|
End condition/Row number |
Optional |
Available |
Enter the number of the row to check for the condition to end reading. When (Not specified) is selected, all rows are checked for the condition to end reading. |
|
End condition/Condition value |
Optional |
Available |
Enter the value of the condition to end reading. If (Not specified) is selected, regardless of the value of the cell, the row specified in Row Number is the row to end reading. |
|
End condition/And/Or |
Required |
Not available |
Select a boolean operator for Condition value.
|
|
Read settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Do not get first row as value |
Optional |
Not available |
Select whether or not to handle the first row of the specified file as data.
|
|
Read cell formula |
Optional |
Not available |
Select whether or not to read cell formula as data.
|
Note
Disabled when an Excel workbook is specified in File. |
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Schemas
Input schema
None.
Output schema
The number of columns varies depending on the Column list settings.
For schema structure, refer to Table model type .
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
When the file specified in File is an Excel workbook, mass data processing can't be performed.
Parallel Stream Processing
PSP is supported.
For details on PSP, refer to Parallel Stream Processing.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of read data records is stored. |
Note
Value isn't stored when using PSP. |
filePath |
The file path is stored. |
Note
Value isn't stored when using PSP. |
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
-
When multiple OR boolean operators are specified in And/Or, the following row is the row to end reading.
-
The row that matches any of the conditions
-
-
When multiple AND boolean operators are specified in And/Or, the following row is the row to end reading.
-
If (Not specified) is selected for every Row number, the first row that matches all conditions
-
If a row number is specified in Row number, the last row by which all conditions are matched
Example:
Target file
Row number
Column 1
Column 2
Column 3
Column 4
1
AAA
BBB
CCC
DDD
2
EEE
FFF
GGG
HHH
3
III
JJJ
KKK
LLL
4
AAA
BBB
CCC
DDD
5
EEE
FFF
GGG
HHH
6
III
JJJ
KKK
LLL
Condition to end reading (When row numbers aren't specified)
Column name
Row number
Condition value
And/Or
Column 1
(Not specified)
EEE
AND
Column 2
(Not specified)
FFF
AND
The row to end reading is the second row and only the first row is read.
Condition to end reading (When row numbers and condition values are specified)
Column name
Row number
Condition value
And/Or
Column 1
2
EEE
AND
Column 2
5
FFF
AND
The row to end reading is the fifth row and four rows are read.
Condition to end reading (When row numbers are specified and condition values aren't specified)
Column name
Row number
Condition value
And/Or
Column 1
2
(Not specified)
AND
Column 2
7
(Not specified)
AND
The row to end reading is the seventh row and six rows are read.
Condition to end reading (When a condition with one row number specified and one not specified are mixed)
Column name
Row number
Condition value
And/Or
Column 1
4
(Not specified)
AND
Column 2
(Not specified)
FFF
AND
-
-
The row to end reading is the fifth row and four rows are read.
-
When (Not specified) is selected in both Row number and Condition value, processing will end without reading even a single row.
-
In an Excel 2003 workbook, when no value nor format is set after the column specified in end condition, it won't match the end condition.
Null and empty strings
-
When the target cell value is empty, the read data will be null.
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|