Element Details: Load+DB+Table.Delete
 Back


Available in: Logi Info Source code name: LoadDbTable.Delete

Deletes rows from an existing database table based key columns and values. All rows with matching key values are deleted.

Requires a ColumnMap element to define the relationship between the input and database table columns.

Setting the EtlElementID attribute to the ID of an earlier Extract or Transform element determines which datalayer is loaded into the destination tables. If the EtlElementID is not specified, then the Load element will attempt to use the last Extract or Transform datalayer generated.

You can reference the number of rows affected with an ETL token.

For Example:
@Etl.myLoadID.rdRowsAffected~

Element Group:Load Data Elements



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
AddErrorMessage
True
False
Adds two new columns to each row of the exception data. rdErrorMessage is the reason the row could not be processed. rdErrorSource is name of the source that returned the error.
BatchSize
UserDefined
The BatchSize attribute can be used to control the number of items (or rows) of a single database transaction. You can optimize your database commands to fit your specific configuration. If set to zero, the system will process the entire datalayer as a single transaction. BatchSize defaults to 1,000 rows per transaction.
ConnectionID
UserDefined
Specifies a connection to a data source that is defined in the Settings. For elements connecting to relational databases, default is the first Connection element in _settings.lgx.
DbKeyDataColumns
UserDefined
(Required) A set of one or more key column names in the destination database table.
EtlElementID
UserDefined
Enter the ID of the Extract or Transform element that contains the data to be processed. If this attribute does not have a value, then the system will use the data from the last Extract or Transform element.
ExceptionDataID
UserDefined
Defines an ETL ID value that can be used to address the exception data that was removed by the filter. The value of this attribute may be referenced by a DataLayer.ETL, LoadDbTable, SaveData, or any other element that supports the EtlElementID attribute.
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
MaxErrors
UserDefined
The maximum number of errors allowed before the command will be stopped. The default is no limit.
TableName
UserDefined
(Required) The name of a database table.



PARENT ELEMENTS

Click element to drill down for more information.

Etl Job
If
If ETL Error
If File Exists
If Folder Exists Loop.Data Layer Rows


CHILD ELEMENTS

Click element to drill down for more information.

Column Map If ETL Error


 Back to top


 Chart Debug