SSIS ForEach Variable Mapping Error -


i want able send emails using ssis. followed instructions @ "how send records table in e-mail body using ssis package?". however, getting error:

error: foreach variable mapping number 1 variable "user::xy" cannot applied

while running package. source table has 5 columns (bigint, datetime, nvarchar, nvarchar, nvarchar types).

another error is:

error: type of value being assigned variable "user::xy" differs current variable type. variables may not change type during execution. variable types strict, except variables of type object.

what problem be?


update: trying find out problem, have done this: while taking data execute sql task, cast int data varchar , use variable string data type , works. how should set variable has int data type, not varchar?

i ran problem & resolved it, although don't know how.

running ssis sql server 2008 r2: a) query pulls rows object b) each trying loop through , pull values first 2 columns variables (this had been running fine--i had come edit query , each loop , add additional variable branching logic) c) error mapping variable '1', happened int , happened have same name column pulling from.

i tried deleting variable-to-column reference in foreach loop , re-adding it, , discovered variable not listed anymore in list of variables allowed mapping.
deleted variables, created new variable of same type (int32) , name, added it, , things ran fine.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -