Read Sheet
Operation name
Read Sheet
Function overview
Reads a worksheet from the spreadsheet on Google Drive.
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 |
---|---|---|---|---|
Connect To |
Required |
Not available |
Select a connection resource.
|
|
Folder Path |
Optional |
Available |
Select or enter an absolute path of a folder on Google Drive which starts with slash "/". |
|
File Name |
Required |
Available |
Enter the file name of the spreadsheet. |
|
Sheet Name |
Optional |
Available |
Select or enter the sheet name of the spreadsheet. |
|
Columns |
Optional |
|
Specify the columns. Each column in the column list can be operated with the following buttons:
|
|
Columns/Column Name |
Optional |
Available |
Enter the column name. |
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Refresh folder path list |
Get folder paths in the specified destination and set them to Folder path. |
|
Refresh file list |
Get file names in the specified folder path and set them to File name. |
|
Refresh sheet list |
Get sheet names from the specified file and set them to Sheet name. |
|
Refresh columns |
Retrieve the column names from the first row values of the specified spreadsheet and set them to Columns. |
|
Start/End condition
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Specify Condition To Start Reading |
Optional |
Not available |
Select whether to specify a condition to start reading.
|
|
Start condition |
Optional |
Not available |
Select a condition to start reading.
|
|
Matched 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. |
|
Specify Condition To Stop Reading |
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:
|
= Remarks =
For details, refer to Conditions to end reading. |
End Condition/Column Name |
Optional |
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 |
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/Logical Operator |
Required |
Not available |
Select a boolean operator for Condition.
|
|
Setting Of Reading
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Ignore The First Row |
Optional |
Not available |
Select whether or not to handle the first row of the specified spreadsheet as data.
|
|
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 Columns settings.
For schema structure, refer to XML Framework.
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
In mass data processing, when you save the result data in a file, data is temporary stored in the memory. Therefore, when the data amount is huge, OutOfMemoryError may occur even with mass data processing enabled.
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 rows read is returned. |
Note
Value isn't stored when using PSP. |
folderPath |
The folder path to the spreadsheet read is returned. |
|
fileName |
The name of the spreadsheet read is returned. |
|
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. |
|
-
If Specify Condition To Stop Reading isn't selected or End Condition isn't specified, all rows in the spreadsheet will be read.
-
When multiple OR boolean operators are specified in End Condition/Logical Operator, 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 End Condition/Logical Operator, 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:
Spreadsheet to be read
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
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
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
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
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, processing will end without reading even a single row.
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|