FOR EACH ERROR "User::order_ref" differs from the current variable type.
-
Monday, January 21, 2013 8:49 AM
Hi All
I need your help in SSIS ForEach task
I'm have one some rows from SQL and i need to process them one by one.
what i want that it should take first row and processed it then take second row processed it and so on.
during updating tbale i get error
[Execute SQL Task] Error: Executing the query "Update Input_Account_FPROT
set ORDER_URL='https://..." failed with the following error: "No value given for one or more required parameters.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
and on FOR EACH I GET THIS ERROR.
Error: The type of the value being assigned to variable "User::order_ref" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
kindly suggest something needful.
All Replies
-
Monday, January 21, 2013 8:54 AMModerator
1) Show the query and parameters (screenshot?) from the Execute SQL Task.
2) What type of connection are you using OLE DB / ODBC / ETC
3) And what is the data type of User::order_ref and what is the datatype of the column you want to update
Also see http://msdn.microsoft.com/en-us/library/ms140355.aspx
Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com | Twitter
- Edited by SSISJoostMicrosoft Community Contributor, Moderator Monday, January 21, 2013 8:55 AM
- Marked As Answer by Eileen ZhaoMicrosoft Contingent Staff, Moderator Monday, January 28, 2013 5:02 AM
-
Monday, January 21, 2013 3:32 PM
The variable you have created for For Each Loop will be of diff type than expected. Please follow the example in link provided to get the correct settings:
Thanks,
hsbal
- Marked As Answer by Eileen ZhaoMicrosoft Contingent Staff, Moderator Monday, January 28, 2013 5:02 AM

