------------
I'm trying to read several table/views from a third party database and combine them into one table in our sql database.
I think I got the ssis package built the way I think it should be.
but I'm getting error when I debug it.
I think I got the variable setup correctly for what I'm trying to do.
I'm trying to built the sql statement (sample at the bottom) and use each as the input souce in the data flow.
--------------
I'm getting the following error:
SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC001F009 at Package: The type of the value being assigned to variable "User::ViewName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
Error: 0xC002F210 at Get VeiwNames, Execute SQL Task: Executing the query "select 'select * , CLYEAR + CLMONTH + CLDAY + CLAC..." failed with the following error: "The type of the value being assigned to variable "User::ViewName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Get VeiwNames
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
ssis info:
cant seem to post with sql not preceeded by --
exec sql task:
-- select 'select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from ' + CLGROUP
from luminxclaimsBuildGroupMaster
where transid > 577 and
jobname = 'part1'
result set : User::ViewName
variable: User::ViewName package string value "select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1215 " (without quotes)
Foreach Loop Container:
Foreach ADO Enumerator
ado object source: User::ViewName
enum mod: first rows in table
data flow source:
I was able to get this data the first time I tried to post this. but no I can get past "validation foreach container"
If needed I try to post it later.
exec sql results ( should be)
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FR1213
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_s210413o
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1214
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_S212112S
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_S210212S
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_eapc0813
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1215
I'm trying to read several table/views from a third party database and combine them into one table in our sql database.
I think I got the ssis package built the way I think it should be.
but I'm getting error when I debug it.
I think I got the variable setup correctly for what I'm trying to do.
I'm trying to built the sql statement (sample at the bottom) and use each as the input souce in the data flow.
--------------
I'm getting the following error:
SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC001F009 at Package: The type of the value being assigned to variable "User::ViewName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
Error: 0xC002F210 at Get VeiwNames, Execute SQL Task: Executing the query "select 'select * , CLYEAR + CLMONTH + CLDAY + CLAC..." failed with the following error: "The type of the value being assigned to variable "User::ViewName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Get VeiwNames
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
ssis info:
cant seem to post with sql not preceeded by --
exec sql task:
-- select 'select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from ' + CLGROUP
from luminxclaimsBuildGroupMaster
where transid > 577 and
jobname = 'part1'
result set : User::ViewName
variable: User::ViewName package string value "select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1215 " (without quotes)
Foreach Loop Container:
Foreach ADO Enumerator
ado object source: User::ViewName
enum mod: first rows in table
data flow source:
I was able to get this data the first time I tried to post this. but no I can get past "validation foreach container"
If needed I try to post it later.
exec sql results ( should be)
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FR1213
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_s210413o
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1214
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_S212112S
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_S210212S
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_eapc0813
--select * , CLYEAR + CLMONTH + CLDAY + CLACLMNO as claim from v_FV1215