Premium Excel Destination Component

The Premium Excel Destination Component is an SSIS data flow pipeline component that can be used to write data to an Excel File. There are three pages of configuration:

  • General
  • Columns
  • Error Handling

The General page is used to specify general settings for the Premium Excel 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 Premium Excel Destination Component

Connection Manager
The Premium Excel Destination Component requires a connection. The Connection Manager drop-down will show a list of connection managers that are available.
Worksheet
Specify the Excel Worksheet you want to work with.
Write Mode Setting
There are four options available:
  • Clear and write new data: choose this option to clear the whole sheet and write rows.
  • Append at end: choose this option to append new rows at the end of existing rows.
  • Overwrite existing cells: choose this option to overwrite the existing rows.
  • Write to specified rows: choose this option to specify the rows to write
    • Start from row: enter the row number of start row
    • End at row: check this option to specify the end row number
Set Password for Write Access
Select this option to set the “Password to modify” in Excel Files and enable the “Read-only recommended” option.
First row has column names
Select this option if you would like the first row to contain column names.
Refresh Component Button
Clicking the Refresh Component Button will bring up a prompt for you to confirm the refresh. After clicking “Yes”, it will remove any existing columns and add any columns it can find in the Excel File.
Reset Columns Button
Clicking the Reset Columns button will bring up a prompt for you to confirm the reset. After clicking “Yes”, 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 Premium Excel Destination Component allows you map the columns from upstream components to the Premium Excel Fields.

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

SSIS Premium Excel Destination Component - Columns Page

  • Input Column – You can select an input column from an upstream component for the corresponding Premium Excel Field.
  • Premium Excel Field – The 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.
  • Properties window for the field listed. These value are configurable:
    • Name – Specify the Column name.
    • Data Type – The data type can be changed according.
    • Format String – Specify the format codes to utilize the TEXT function that allows you to change the way a number appears. For more information of format codes visit TEXT function.
    • 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.
  • + 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 Premium Excel Destination Component - 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 Excel File 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 Premium Excel Error Output