Table of Contents

Search

  1. Preface
  2. Workflows
  3. Workflow Variables
  4. Workflow Parameters
  5. Cluster Tasks
  6. Command Task
  7. Human Task
  8. Mapping Task
  9. Notification Task
  10. Gateways
  11. Workflow Recovery
  12. Workflow Administration

Developer Workflow Guide

Developer Workflow Guide

Configure the Mapping to Remove Target Rows

Configure the Mapping to Remove Target Rows

If the mapping writes to a file or a table that does not contain data that you need to keep, you can configure the mapping to remove all data from the target file or table. If the mapping writes to a shared table that a Human task does not read, you can configure the mapping to run an SQL command to remove the rows written in the original run.
Configure the mapping to use one of the following methods to remove target rows:
Truncate a flat file target.
If you can remove all data from the target file, configure the mapping to truncate the target file before it writes to the file.
Truncate a relational target table.
If you can remove all data from the target table, configure the mapping to truncate the target before it loads data.
Run an SQL command on a relational target table.
If you need to keep some of the data in the target table, write an SQL command that the Data Integration Service runs to remove the rows written in the interrupted mapping run before it reads the source. For example, if the mapping writes sales data to a table that multiple departments share, write an SQL command that deletes all rows written for the Sales department. Or, if the mapping runs once daily, write an SQL command that deletes all rows written on the current date.

0 COMMENTS

We’d like to hear from you!