Follow these steps to clean up the field
layout on your lookup stream so that it matches the format and layout of the other
stream going to the Write to Database step.
- Add a Select Values step to your transformation by expanding the Transform folder and clicking Select Values.
-
Create a hop from the
Lookup Missing Zips to the Select Values step.
- Double-click the Select Values step to open its properties dialog box.
- Rename the Select Values step to Prepare Field Layout.
- Click Get fields to select to retrieve all fields and begin modifying the stream layout.
-
In the Fields list, find the #
column and click the number for the ZIP_RESOLVED
field.
Use CTRL UP (MacOS, COMMAND UP ) to move ZIP_RESOLVED just below the POSTALCODE field, which is the one that still contains null values.
- Select the old POSTALCODE field in the list (line 20), right-click in the line, and select Delete Selected Lines
- The original POSTALCODE field was formatted as a 9-character string. You must modify your new field to match the form. Click the Meta-Data tab.
-
In the first row of the Fields to alter table the meta-data
for section, click in the Fieldname
column and select ZIP_RESOLVED. Perform the following
steps:
- Enter POSTALCODE in the Rename to column.
-
Select String in the Type
column and enter 9 in the
Length column.
- Click OK to exit the edit properties dialog box.
- Draw a hop from the Prepare Field Layout (Select values) step to the Write to Database (Table output) step.
- When prompted, select the Main output of the step option.
-
Save your transformation.