Write Sheet
Operation name
Write Sheet
Function overview
Writes input data to an Excel file.
Data model
The data model of this component is table model type.
If Specify format/comment in Mapper to write is selected, it's XML 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. |
|
Input data |
Required |
Not available |
Select a component on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
File path |
Required |
Available |
Enter the Excel file path. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Sheet name |
Required |
Available |
Select or enter the sheet name. |
|
Column list |
Required |
- |
Specify the columns. Each row can be operated with the following buttons:
|
|
Column list/Write target |
Required |
Not available |
Select whether to write in this column. |
|
Column list/Columns |
Required |
Available |
Specify the column to be written. |
|
Column list/Heading |
Optional |
Not available |
Enter the heading of the column. |
|
Column list/Type |
Required |
Not available |
Select a type of Columns.
|
|
Column list/Number settings |
Required |
Not available |
Select the setting method of the number format.
|
|
Column list/Number |
Optional |
Available |
Select or enter the number format to set to the write target cell. |
|
Specify format/comment in Mapper to write |
Optional |
Not available |
Select whether or not to set elements for writing format/comment in the input schema.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Get sheet name list |
Get sheet names from the file specified in File path. |
|
Get the column list |
Get the column information from Sheet name of the file specified in File path and set it to Column list. |
Note
When a file with large size is specified in File path, OutOfMemoryError may occur. |
Start condition settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Enable start condition settings |
Optional |
Not available |
Select whether or not to enable the start condition settings.
|
|
Start condition |
Optional |
- |
Specify the condition to start writing. Each row can be operated with the following buttons:
|
|
Start condition/Column(Heading) |
Required |
Not available |
Select or enter the columns to check for the condition to start writing. |
|
Start condition/Row number |
Required |
Available |
Enter the number of the row to check for the condition to start writing.
|
|
Start condition/Condition value |
Required |
Available |
Enter the condition value of the condition to start writing.
|
|
Rule for multiple conditions |
Required |
Not available |
Select the rule for determination of fulfillment when multiple conditions are set in Start condition.
|
|
Number of rows to skip to start writing |
Optional |
Available |
Specify the number of rows to skip from the starting row for writing that is set in Start condition, to the row from which writing actually starts. |
|
Write settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Write heading in the first row |
Optional |
Not available |
Select whether to write the heading in the first row where the writing is started.
|
|
Overwrite |
Optional |
Not available |
Select whether or not to overwrite when data exists in the specified file.
|
|
Insert |
Optional |
Not available |
Select whether or not to insert data when writing data to the specified file.
|
|
Delete target sheet |
Optional |
Not available |
Select whether or not to delete the specified sheet before writing data to the specified file.
|
|
Position where you add a sheet |
Required |
Not available |
When you create a sheet, select the position where you add it.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Schemas
-
When Specify format/comment in Mapper to write isn't selected
-
It's table model type.
-
The number of columns varies depending on the Column list settings.
= Remarks =For schema structure, refer to Table model type .
-
-
When Specify format/comment in Mapper to write is selected
-
It's XML type.
-
The schema structure is as follows:
<?xml version="1.0" encoding="UTF-8"?> <table> <row> <column> <format></format> </column> <column> <format></format> </column> : </row> <row> : </row> : </table>
Element name
Attribute name
Description
Remarks
table
-
row
-
column
-
Represents the value to be written in the cell.
-
Appears once for each column set in Column list.
format
-
Represents the format/comment to be written in the cell.
-
In this element, enter a string that is output from "Generate Excel Format" logic.
-
Only the format/comment that is output from "Generate Excel Format" logic will be written.
-
When format isn't written, the format of the write destination cell is used.
-
-
-
Output schema
None.
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Transaction
Transaction is supported.
Parallel Stream Processing
-
When Specify format/comment in Mapper to write isn't selected
-
PSP is supported.
-
-
When Specify format/comment in Mapper to write is selected
-
As the input schema is XML type, it can't be used in PSP.
-
For details on PSP, refer to Parallel Stream Processing.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of written data records is stored. |
|
filePath |
The file path is stored. |
|
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. |
|
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|
Notes
-
When this operation is placed in a loop operation, refer to Notes of Loop by Number of Data.