Creating Layers Without Data Features

Always Create Layers

After running a translation, there can be some scenarios when an expected layer was not created because no data features reached the writer.

The Always Create Layers parameter allows writers to create tables when no data features arrive, or if the writer is not connected to anything. This parameter is disabled (set to No) by default, but can be enabled (set to Yes) under the Advanced parameters for supported formats.

The creation of layers without data features relies on the writer's ability to determine how a table should look with the available information. If the available information is insufficient, the table will not be created.

Dynamic Feature Types

Dynamic Feature Types means that the feature type name and its attributes are determined during the translation.

In this case, tables will only be created without data features if the Schema Source is Schema From Schema Feature.

At the end of a translation, any schema features which were not used for any data features will have a table created using the value of fme_feature_type_name from the schema feature. Note that schema features can be used for tables that have a different name.

Geometry

On formats where the geometry type of a table can be selected, the geometry type can be inferred from the schema feature. However, if the type cannot be determined unambiguously, then the table will not be created.

This is done by setting the Geometry type to From Schema Definition.

Tip  To tell whether the geometry type can be inferred from the schema feature. Look at the value of fme_geometry{}. If it contains more than one geometry type, then it is ambiguous which one is wanted. If there is only one, then it is clear which one should be used.