Symptom
- Loading to a SQL Server varchar column either fails with an error or silently truncates, depending on which repository is used and whether a Query transform is present.
- Error code: DBS-070401
- Error message pattern: ODBC data source error during SQLExecute: "String or binary data would be truncated." (SQL Server message indicating truncation in target table/column)
- With the same job, job server, source data, and target table:
– Repository A: load completes; data is truncated without warning.
– Repository B: job fails with DBS-070401.
- Extended Events show sp_prepare parameter for the affected column declared as varchar(255) in one repository and varchar(768) in the other.
- ODBC trace shows SQLBindParameter with ValueType=SQL_C_WCHAR, ParameterType=SQL_VARCHAR, BufferLength same, but ColumnSize differs by repository (e.g., 255 vs 768).
- Repository metadata (AL_COLUMN) shows LENGTH=255 in both, but PREC differs (e.g., 255 vs 0).
- When a Query transform is used, sp_prepare may declare larger varchar sizes (e.g., 602), leading to DBS-070401; removing the Query transform can revert ColumnSize to the PREC value and avoid the error via truncation.
Read more...
Environment
SAP Data Services 4.3 and higher version
Product
SAP Data Services all versions
Keywords
DBS-070401, string , binary, truncated, SQLBindParameter, ColumnSize, BufferLength, truncation behavior , KBA , EIM-DS-EXE , Job Execution , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview