Export File Specification: Configuration

Use the Configuration tab of the Export File Specification Property Editor to build a query that will be used to retrieve an input dataset. See: New Export File Specification

Input Dataset

SQL

SQL can be typed straight into this window, but it is preferable to use the Build... button. The main advantage of using the Build... option is that the Execute Script button with the Lightning icon can be used to test the script. The SQL query should return a list of values for the user's selection. If this option is selected, the user can only enter a value that is included in the list of values. If this option is not selected, the user may enter any value.

Run on Server

Select this option to run the export file process on the server.

Running on the PC requires that all data is stored in memory. This can cause crashes when dealing with large datasets (e.g. over 1 Gbyte)

The "Run on Server" option allows the data to be broken into manageable chunks. Each chunk of data is verified as it is received, so the process is more reliable.

There is an increased "per record" fetch time, so tasks like importing and exporting data will run slower.

Query does not return a result set

An export file specification can use a SQL statement that does not return a result set; i.e. insert, update, delete or any data definition queries.

This type of query is identified by selecting Query does not return a result set. When this option is selected, the output file prompts are disabled.

Insert queries can be used to populate temporary tables or parameter tables at the start of an export. Typically, the resulting table will be joined to other tables in subsequent queries in order to perform complex data extraction functions.

Output File

File Format Type

Use the File format type drop down to select the file format for the export output file. The following formats are available:

Options

Where available to the selected file format type, the Options button will be displayed. If you click Options, a prompt will be displayed from which you can set options for the export. The available options will vary according to the file format type, but will contain a combination of the following:

If you select the Include header row with column names option, column names will be included in your export as a header row.

Select the Enclose text field values in quotes option and set the character to use from the drop down to add "quotes" to any data in Text format fields.

Use the Delimiter drop down to select the character to be used to separate the columns. In the case of the Comma Separated Values format, this is a comma, so the option is not available.

File Name

Use the Browse button to enter the name and location for the Output file, or enter manually in the field provided. You can also use the Substitution button at the right to use a substitution parameter to create the output file name. See: File Name Substitutions.

Prompt for file name when task executes

Select this option to prompt for the file name when the Export task is run. If this option is selected, any substitution parameters entered in the File Name field will be invalid and a validation error will occur on saving the export configuration:

Preview records

Rather than show all records, this option allows you to specify the maximum of number of records to preview from the input dataset in the Column Mappings configuration.

Column mappings

Click the Column mappings button to set the column mappings between the input dataset and the output file. See: Export File Specification: Column Mappings

Advanced

On the Advanced tab of the property editor, you can configure the advanced options for the export file specification.

Export process has to be completed to continue

Select this option to specify that the Export process has to be completed to continue.

Each task has three possible states:

Advanced Setting Meaning Description
Export process has to be completed to continue = True Required You must import/export the task to continue. The task is shown in red alongside a checked check box. The check box cannot be unchecked.
Inactive at runtime = False Recommended It is recommended that you import/export the task before continuing. The task is shown alongside a check box which is checked by default, however the check box can be unchecked.
Inactive at runtime = True Optional It is optional that the task be imported/exported. The task is shown alongside a check box which is unchecked by default. The check box can be checked.

In this example, three tasks are shown as Required, while the first task is Recommended:

Multiple import/export file specifications can be combined in a single process. If the "Export process has to be completed to continue" check box is selected, the export process (as a whole) will be aborted if this file specification fails to complete.

Retry on file access denied

Select this option to retry the export task if access to a file is denied. Denial of access can occur if a file is open by another user and the export will complete when the file is available.

Record Count

Choose whether to export all records or a specified number of records from the database.

Inactive at runtime

When this option is set to true, the user will be required to select this export task at run-time if they want the task to run. This is a useful option for export tasks which are less frequently used.

This option will be disabled if the Export process has to be completed to continue option is selected.

Include all columns in the exported file

Select this option to include all columns from the data set in the exported file. If this option is not selected, only the mapped columns will be shown in the exported file.

Events

The Events tab of the Property Editor form is used to configure the messages to be shown, or the scripts to be executed when the task form is opened or closed.

For information on configuring Message Actions and Script Actions for the Export file specification, see Events.

Executing a Configured Import or Export