Write(BulkInsert)

Operation Name

Write(BulkInsert)

Function overview

Write input data to Dr.Sum EA table at high speed.
Because only insertion is processed, data can be written at high speed.
This is an operation available in Dr.Sum EA 3.0 SP1 or later.

Data Model

Data model of this type of component is table model type.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Input data Required Not available Select the component on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Remarks
Destination Required Not available Select Global Resources.
Refer to " Global Resource Properties"for global resource settings .
  • [Add]:
    Adds new global resource.
  • [Edit list]:
    Global resource settings can be managed from "Edit Resource list".
 
Table name Required Available Select or enter the name of the database table.
  • View, multi-table, link table are not shown.
Schema definition Required - Specify the schema definition of database.
  • Column name shown in [Schema definition] is displayed in schema of Mapper.
  • Schema definition cannot be viewed in the following cases.
    • If do not have read permissions to the specified table
    • If the specified table does not exist
    • If [Table name] is specified by variable
    • If [Table name] is not entered
    • If error occurs in [Table name]
Schema definition / Column name Required Not available Shows the column name of the table name specified in [Table name].  
Schema definition / Type Required Not available Select [Column name] type.
  • Displayed in the format of "Native type (Internal data type)" .
    • Native type:
      Dr.Sum EA specific data type.
    • Internal data type
      Data type used internally in DataSpider.
      Refer to " here " for details .
Property Action
Item name Description Remarks
Show table information Displays the structure, content and related information of tables of the database specified in [Destination].
Refer to "Table Information"for table information .
  • Enabled when [Destination] is selected.
  • View, multi-table and link table cannot be selected.
  • If a distributor is selected, the table contents will not be displayed.
  • Distributors are not shown in [Table name].
Update schema definition Refresh [Schema definition] and connection to the newest status.  
Comment
Item name Required/Optional Use of Variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

Depending on the settings for the [Schema definition] the number of columns may vary.
See " Schema of Table Model"for details regarding schema structure .

Output Schema

None.

Loading schema in Mapper

Schema is loaded automatically.
See "Edit Schema"for any details .

Transaction

Transaction is not supported.

PSP Usage

PSP is supported.
For details on PSP, refer to "Parallel Stream Processing".

Available Component variables

Component variable name Description Remarks
count The number of records written input.
  • The value defaults to null.
insert_count Returns the number of rows of data inserted.
  • The value defaults to null.
error_code When an error occurs, Dr.SumEA returns the error status in decimal value. If no error occurred, returns null.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version or the client application used.

Specification Limits

About specifications, please refer to the following page.

Main exceptions

Exception name Cause Solution
InputDataNotFoundException [Input data] is not specified. Specify the [Input data], or draw the data flow.
ResourceNotFoundException
Resource definition could not be found.Name: []
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource definition could not be found.Name: [<name of Global Resources>]
Resource definition selected in [Destination] is not found. Check the global resource specified in [Destination].
InvalidPropertyConfigurationException [Table name] is not set. Specify the [Table name].

Notes

About specifications, please refer to the following page.