Data Check
Operation name
Data Check
Function overview
Checks the values and formats of input data and outputs the result in selected format.
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 |
---|---|---|---|---|
Use a connection setting for data check condition |
Required |
Not available |
Select whether or not to use a connection resource for the data check condition.
|
|
Data check condition definition |
Required |
Not available |
Select a data check condition definition registered in a connection resource. = Remarks =
Items that can be set in a connection resource are the same as those of Data check condition list.
|
|
Data check condition list |
Optional |
- |
Specify conditions with which input data columns will be checked. Each column can be operated with the following buttons:
|
|
Data check condition list/Column number |
Required |
Available |
Enter a column number of input data to be checked. |
|
Data check condition list/Required |
Optional |
Not available |
Select whether or not entry of data for Column number is required.
|
|
Data check condition list/Type |
Required |
Not available |
Select the type to check the data for Column number with.
|
|
Data check condition list/Minimum |
Optional |
Available |
Enter the minimum number of digits, minimum byte count, or minimum value to allow for data for Column number. |
|
Data check condition list/Maximum |
Optional |
Available |
Enter the maximum number of digits, maximum byte count, or maximum value to allow for data for Column number. |
|
Data check condition list/Option |
Optional |
Available |
Specify the option to check the data for Column number with. |
|
Data check condition list/Regular expression |
Optional |
Available |
Specify the regular expression to check the data for Column number with. |
|
Output record |
Required |
Not available |
Select a record type to be output.
|
|
Condition evaluation settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Evaluation method of multiple conditions |
Required |
Not available |
Set how to evaluate conditions when multiple data check conditions exist.
= Remarks =
When there are multiple data check conditions for one column number in Data check condition list, you can set the evaluation method for that using Specify evaluation method of multiple conditions for same column number and Evaluation method for same column number. |
|
Specify evaluation method of multiple conditions for same column number |
Optional |
Not available |
Select whether or not to specify how to evaluate conditions when multiple data check conditions exist for one column number.
|
|
Evaluation method for same column number |
Optional |
Not available |
Set how to evaluate conditions when multiple data check conditions exist for one column number.
|
|
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. |
|
In the Option item, type-specific settings can be assigned in the "key=value" format. When setting multiple keys, delimit them using "," (comma).
Options that can be set for each type are as follows:
Corresponding type |
Key |
Meaning |
Value |
Remarks |
---|---|---|---|---|
String (byte count) |
CS |
Set the encoding to be used in calculation of byte count. |
Specify the encoding supported by Java SE Runtime Environment 8. = Remarks =
For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html). |
|
Integer |
AF |
Set whether to allow multibyte numeric values. |
|
|
Decimal |
I |
Set the maximum number of digits for the integer part. |
Allowed values are from 1 to 2147483647. |
|
Decimal |
D |
Set the maximum number of digits for the fractional part. |
Allowed values are from 1 to 2147483647. |
|
Date/Time |
DF |
Set the date format. |
Date formats supported in java.text.SimpleDateFormat can be set. = Remarks =
For further details about SimpleDateFormat, refer to "Java(TM) Platform, Standard Edition 8 API Specification" (http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html). |
|
Input schema
Same as the schema of input source component.
Output schema
Same as the schema of input source component.
When Output all records and check results is selected in Output record, a string type column is added to the schema of the result data, and the check result for the record will be output as "OK" or "NG".
For schema structure, refer to Table model type .
Loading schema in Mapper
The schema needs to be loaded manually.
Specify the schema of the data to be loaded.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of all read records is stored. |
|
matched_count |
The number of records that match the data check conditions is stored. |
|
unmatched_count |
The number of records that don't match the data check conditions 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. |
|
Exception name |
Cause |
Solution |
---|---|---|
ResourceNotFoundException Resource definition could not be found. Name: [] |
Data check condition definition isn't specified. |
Specify Data check condition definition. |
ResourceNotFoundException Resource definition could not be found. Name: [<connection resource name>] |
The resource definition selected in Data check condition definition isn't found. |
Check the connection resource specified in Data check condition definition. |
InvalidPropertyConfigurationException The value of [<item name>] in row [<row number>] of the check condition list is incorrect. |
The check conditions aren't specified properly. |
Confirm the check conditions. |
InvalidPropertyConfigurationException Value is not entered in [Column number] specified in row [<row number>] of the check condition list. |
Column number of the check condition list isn't entered. |
Enter Column number. |
InvalidPropertyConfigurationException The value of [Column number] specified in row [<row number>] of the check condition list exceeds the number of columns of input data [<the number>]. |
Column number of the check condition list isn't specified properly. |
For Column number, specify a number that is less than or equal to the number of columns in the input data. |