When attempting to extract an MS SQL Server data source, one of the following errors might occur:
An error occurred while communicating with data source <Data Source Name>.
SQL Server database error 0x80040E07: Error converting data type varchar to float.
or
[Microsoft][SQL Server Native Client 11.0][SQL Server] Error converting data type varchar to float
Unable to create extract
This error occurs because MS SQL Server is unable to convert string values to a numeric value if the string contains the following:
Use one of the following options, as appropriate to your data:
RAWSQL_REAL("CASE WHEN ISNUMERIC(%1) = 1 THEN CAST(CAST(%1 AS MONEY) AS FLOAT) END", [<Your_String_Field>])
001498347

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.