SSIS Package error- SSIS Error Code DTS_E_PROCESSINPUTFAILED

MSM picture MSM · Jan 31, 2018 · Viewed 14.1k times · Source

SSIS job has failed and posting the below error

[Product Sales [749]] Error: An exception has occurred during data insertion, the message returned from the provider is: The given value of type String from the data source cannot be converted to type float of the specified target column.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Product Sales" (749) failed with error code 0xC020844B while processing input "ADO NET Destination Input" (752). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

Can some one please advise if you have come across this kind of error

Thank you

Answer

Brandon Church picture Brandon Church · Jan 31, 2018

Your error message is explaining the issue to you: "The given value of type String from the data source cannot be converted to type float of the specified target column."

Open the component that is failing and review the metadata. You have a float column somewhere and you are passing this column a string that can't be converted to a float, such as empty space or an alphanumeric value.

If you want to ensure these values are floats, you can add a script component above the one that is failing and write some code to ensure the value is properly sanitized:

string input = "1.1"; //Replace with your input buffer value
float result;
float.TryParse(input, out result); //Result = 0.0 if value was not parsed