Microsoft Excel: Writer Feature Type Parameters

To access feature type parameters, click the gear icon on a feature type in the workspace to open the Feature Type Parameter Editor. To always display the editor in Workbench, you can select View > Windows > Parameter Editor.

General

All feature types share similar General parameters, which may include the Feature Type Name, Reader or Writer Name, and Geometry.

In most Writer Feature Type parameter dialogs, you can also control Dynamic Schema Definitions. Some database formats accept a Table Qualifier prefix on the output table feature type.

Features written to the database have the destination table as their feature type, and attributes as defined on the feature type.

These parameters apply only to a selected feature type, not to the entire writer.

Note: If a feature type parameter listed here conflicts with a writer-level parameter, then the writer parameter will be ignored and this feature type parameter will be used.

Sheet Settings

Writer Mode

The writer mode can be specified on the feature type or on individual features.

At the feature type level, the writer mode is specified by this parameter. It may be superseded on individual features by the fme_db_operation format attribute.

Valid feature type writer modes are listed below:

Mode Description
Insert

Appends features to the end of the sheet, or writes them to an exact row and/or column.

Any data that already exists in that location will be overwritten. If there is a row value specified for the Row Number Attribute, that row will be used instead.

Update

Causes the row corresponding to the feature’s value specified in the Row Number Attribute to have its data changed to the values on the incoming feature.

If an attribute is missing on the incoming feature, the existing cell value will not be overwritten.

Delete

Deletes the values in the row corresponding to the feature’s value specified in the Row Number Attribute.

Only a number of columns equal to the amount of columns on the incoming feature will have their data and formatting removed.

Output Field Names

This parameter specifies whether or not to write the attribute names when inserting data.

If no template file is used, this parameter has an effect only if the sheet or named range is being created or has been dropped or truncated prior to insertion. Otherwise, attribute names will not be added to existing worksheets or named ranges.

Use Attribute Names as Column Positions

Set to Yes to treat attribute names, such as A, B, or C as the column name in which to write the data. If set to No (the default), the columns will be written in the order on the schema.

Row Number Attribute

The writer allows you to specify an input attribute to contain the value of the row number identifier to be used for per-feature Update and Delete operations.

The default row number attribute is the xlsx_row_id attribute produced by the Excel reader to hold the row number, but it can be changed to any attribute.

Note: Unlike databases, where row IDs may not be ordered, the row number identifier corresponds to the number of rows from the top of the sheet (similar to the row number in a CSV file).