Amazon DynamoDB Destination Component

The Amazon DynamoDB Destination Component is an SSIS data flow pipeline component that can be used to write data to Amazon DynamoDB. You can Insert, Update, Upsert, and Delete records using this component. There are three pages of configuration:

  • General
  • Columns
  • Error Handling

The General page is used to specify general settings for the Amazon DynamoDB Destination component. The Columns page is used to manage columns from the upstream component. The Error Handling page allows you to specify how errors should be handled when they occur.

General page

The General page allows you to specify general settings for the component.

SSIS DynamoDB Destination

Connection Manager
The Amazon DynamoDB Destination Component requires a connection. The Connection Manager option will show all Amazon DynamoDB connection managers that have been created in the current SSIS package or project.
Table
The Table option allows you to specify which object to write data to. A drop down with the available objects are listed here.
Action
The Action option allows you to specify how data should be written to Amazon DynamoDB. There are currently four (4) supported action types, and for some actions the primary fields (Partition Key and Sort Key) are required.
  • Create – Create new record(s).
  • Update – Update existing record(s).
  • Upsert – Update an existing record if it exists, otherwise it creates a new one.
  • Delete – Delete record(s).
Refresh Component Button
Clicking the Refresh Component Button will bring up a prompt for you to confirm the refresh. After clicking “OK”, it will remove any existing columns and add any columns it can find in the specified table.
Reset Columns Button
Clicking the Reset Columns button will bring up a prompt for you to confirm the reset. After clicking “OK”, it will remove any existing columns and replace them with that of the Input Columns.
Map Unmapped Fields Button
By clicking this button, the component will try to map any unmapped attributes by matching their names with the input columns from upstream components.
Clear All Mappings Button
By clicking this button, the component will reset (clear) all your mappings in the destination component.

Columns page

The Columns page of the Amazon DynamoDB Destination Component allows you map the columns from upstream components to the DynamoDB Fields.

In the Columns page, you would see a grid that contains four columns as shown below.

SSIS DynamoDB Destination - Columns Page

  • Input Column – You can select an input column from an upstream component here.
  • DynamoDB Field – The DynamoDB field that you are writing data to.
  • Data Type – This column indicates the type of value for the current field.
  • Unmap – This column can be used to unmap the field from the upstream input column, or otherwise it can be used to map the field to an upstream input column by matching its name if the field is not currently mapped.
  • Rows to scan to detect fields – option to specify the number of rows to scan in order to detect the metadata.
  • Properties window for the field listed. These value are configurable.
    • Name – Specify the Column name.
    • DynamoDB Type – Specify the data types in DynamoDB, which include scalar types, document types, and set types.
    • Data Type – The data type can be changed according.
    • Length – if the data type specified is a string, the length specified here would be the maximum size. If the data type is not a string, the length will be ignored.
    • Precision – Specify the number of digits in a number.
    • Scale – Specify the number of digits to the right of the decimal point in a number.
    • CodePage: Specify the Code Page of the field.
  • Import External Column – option to import the Columns and its properties from a file.
  • Export External Column – option to save the Columns and its properties to a JSON file later for reuse.
  • + sign – Add field to Excel File
  • - sign – Remove field from Excel File
  • Arrows – Move the fields to a desired location in the file.

Error Handling page

The Error Handling page allows you to specify how errors should be handled when they happen.

SSIS DynamoDB Destination - Error Handling

There are three options available.

  1. Fail on error
  2. Redirect rows to error output
  3. Ignore error

When the Redirect rows to error output option is selected, rows that failed to write to the Amazon DynamoDB will be redirected to the ‘Error Output’ output of the Destination Component. As indicated in the screenshot below, the blue output connection represent rows that were successfully written, and the red ‘Error Output’ connection represents rows that were erroneous. The ‘ErrorMessage’ output column found in the ‘Error Output’ may contain the error message that was reported by server or the component itself.

SSIS DynamoDB Error Output