Cross Reference Target Mapping

  1. From the Data object drop-down list, select the target object from which to get the target key value. Select from the list of distinct objects that appear in target steps.

    If the same object appears multiple times in the step list, the value for the cross reference field will be taken from the last step. If the last step has a null value, it will continue searching through the steps, working backwards until the value is not null.

  2. In the Key Field(s) text box, do one of the following:
  3. If applicable, in the Field in Cross Reference Table drop-down list box, select the field in the table specified in the Cross reference table field to store the source key value.

    Note: If you are using a SQL source with a SQL target, verify that the Key Cross Reference target is mapped to a unique field whose value comes from the source. Otherwise, the Key Cross Reference table may not be populated as expected.

    Only valid fields display, as follows:

    OperationValid fields
    • Update Source result set
    • Update Source shadow or base table
    • Insert into Other source table
    • Insert into Target table

    Select the field in the table to store the target key value.

    • Insert into Internal Database Table and
      Cross Reference table = KEYCROSSREFERENCE
    Field defaults to TARGETKEY and cannot be changed.
    • Insert into Internal Database Table and
      Cross Reference table = KEYCROSSREFERENCETWOWAY
    Select either APP_A_KEY or APP_B_KEY.

    When you choose one of these values, the setting for the source Field in Cross Reference Table is automatically set to the other one
  4. If the operation is Insert into Internal database, use the Name Field(s) text box to provide a human-readable, "friendly” name for the field that is stored in the cross reference table. To add a name to the Name field, you can either:

    Entering a name in the Name Field(s) text box is optional. If you don’t specify a field name, no value is stored. The name of the field in the Scribe Internal Database is determined by the cross reference table you select. If you selected:

    Note: Name values in cross reference entries are only updated when the cross reference entry itself is updated. Keep in mind that the name stored with the entry may become out-of-date if it is changed in the application at a later time.

  5. If desired, select a cross reference lookup variable. If you have a step in this DTS that requires the cross reference you defined here, select Cross reference lookup used in the DTS.

    For example, consider a DTS that inserts a customer into the target, and then inserts an address which is keyed to the customer. The address step needs to know the key of the newly inserted customer.

    If you select this option, Insight generates a calculated variable which performs the appropriate cross-reference lookup for you. See About Calculated Variables.

    In the Select or enter variable name text box, you can either:

  6. Click OK to save your cross reference key and close the Cross Reference Keys dialog box.

See also

About Cross Reference Keys

Field Keys

Operations

Specifying a Source Key and Name

Viewing Field Properties

Updating or Deleting source rows

XREFLOOKUP

XREFLOOKUPINTERNAL

XREFLOOKUPLOCK_AKEY

XREFLOOKUPLOCK_BKEY

XREFLOOKUPNOLOCK_AKEY

XREFLOOKUPNOLOCK_BKEY