SAP Knowledge Base Article - Preview

2889105 - "Error converting data type varchar to numeric" error occurs during reading data from MS SQL database - SAP Data Services


  • The following error occurs after running Data Services job which is reading data from MS SQL database datastore:

    SQL submitted to ODBC data source <<server name>,11221> resulted in error <[Microsoft][ODBC Driver 17 for SQL
    Server][SQL Server]Error converting data type varchar to numeric.>. The SQL submitted is <<SELECT statement with global variable(s) included>>.

  • The WHERE clause contains global variable(s) with NULL value.



  • SAP Data Services 4.2
  • MS SQL Server 2016


SAP Data Services 4.2


EIM-DS-EXE, EIM, Data Services, SQL, MS SQL, error, varchar, numeric, ODBC, WHERE , KBA , EIM-DS-SAP , SAP Interfaces , LOD-HCI-DS , HANA Cloud Integration for Data Services , 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.