Truncation warnings at the OLE DB Destination mean that at least one data flow column is longer than the corresponding destination column, or the component is configured to treat truncation as an error.
Next checks and actions:
- Confirm which column is truncating
- In the OLE DB Destination Editor, open the Error Output page.
- For each input column, set Error (and, if applicable, Truncation) to Redirect row instead of Fail component.
- Connect the error output to a separate destination (e.g., a table or flat file) so that the rows and their values can be inspected.
- This lets the error output capture row-level errors and shows which column and data caused the truncation.
- Decide how to handle truncation
- For each column, choose one of the supported options:
- Fail Component: Data Flow fails on truncation (default).
- Ignore Failure: Truncation is ignored and the row continues.
- Redirect Row: Row goes to error output for separate handling.
- Configure this per column in the Configure Error Output dialog or the destination’s Error Output page.
- Align data types and lengths
- Compare the data flow column lengths with the target table column definitions.
- If the destination column is too short for the incoming data and truncation is not acceptable, increase the destination column length.
- If truncation is acceptable, keep the current length and set the truncation disposition to Ignore Failure or Redirect Row so the main flow does not fail.
- Check upstream transformations
- If a Derived Column or other transformation is creating longer strings (for example, concatenations), ensure the resulting data type/length matches or fits into the destination column.
- If needed, explicitly cast to a shorter type and then configure truncation handling as above.
- Use error outputs consistently
- Ensure that any component with an error output (including the OLE DB Destination) has its error output connected if rows are being redirected; otherwise, warning
DTS_W_REDIRECTWITHNOATTACHEDERROROUTPUTS indicates redirected rows are being lost.
By redirecting and capturing error rows, then aligning column lengths and truncation behavior, the truncation warnings can be controlled and the missing inserts into RepoStyleTransactionMembers identified and resolved.
References: