dbTalk Databases Forums  

Type Mismatch when Excuting Dynamicproperties

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Type Mismatch when Excuting Dynamicproperties in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Type Mismatch when Excuting Dynamicproperties - 06-22-2006 , 09:12 PM






I am loading a DTS from a local file, setting the DTS parameters, and
the executing the DTS.

When I call Execute on the package it gives me "Type mismatch" for
DTSStep_DTSDynamicPropertiesTask_1

If I run the package manually from Enterprise Manager, then it
completes succesffully.

If I remove that task from the package, then the package runs fine when
calling Execute.

I have two string Globalvariable that are assigned(by the dynamic
properties task) to the Catalog and DataSource of an OLEDB SQL Server
connection.

Not sure what's going wrong.


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Type Mismatch when Excuting Dynamicproperties - 06-22-2006 , 09:37 PM






I have also Loaded from the server, and the problem still occurs. I
recreated a new DTs package and added only a connection, a string
globalvariable, and a dynamicproperties task. The package runs fine
unless I add a variable assignment to the dynamicproperties task that
assigns to either DataSource or Catalog of the connection(I haven't
tried other types of assignments). In either case the error still
occurs.

shumaker (AT) cs (DOT) fsu.edu wrote:
Quote:
I am loading a DTS from a local file, setting the DTS parameters, and
the executing the DTS.

When I call Execute on the package it gives me "Type mismatch" for
DTSStep_DTSDynamicPropertiesTask_1

If I run the package manually from Enterprise Manager, then it
completes succesffully.

If I remove that task from the package, then the package runs fine when
calling Execute.

I have two string Globalvariable that are assigned(by the dynamic
properties task) to the Catalog and DataSource of an OLEDB SQL Server
connection.

Not sure what's going wrong.


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Type Mismatch when Excuting Dynamicproperties - 06-22-2006 , 09:44 PM



BTW, I'm using C# with 2005 Express IDE. Any help would be really
appreciated. I'm banging my head against a wall on this one.

shuma... (AT) cs (DOT) fsu.edu wrote:
Quote:
I have also Loaded from the server, and the problem still occurs. I
recreated a new DTs package and added only a connection, a string
globalvariable, and a dynamicproperties task. The package runs fine
unless I add a variable assignment to the dynamicproperties task that
assigns to either DataSource or Catalog of the connection(I haven't
tried other types of assignments). In either case the error still
occurs.

shumaker (AT) cs (DOT) fsu.edu wrote:
I am loading a DTS from a local file, setting the DTS parameters, and
the executing the DTS.

When I call Execute on the package it gives me "Type mismatch" for
DTSStep_DTSDynamicPropertiesTask_1

If I run the package manually from Enterprise Manager, then it
completes succesffully.

If I remove that task from the package, then the package runs fine when
calling Execute.

I have two string Globalvariable that are assigned(by the dynamic
properties task) to the Catalog and DataSource of an OLEDB SQL Server
connection.

Not sure what's going wrong.


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Type Mismatch when Excuting Dynamicproperties - 06-22-2006 , 09:50 PM



Fixed it, changed
packageVar.Value = databaseName;

to the corect way:

packageVar.let_Value(databaseName);

Hours of reading through unresolved posts on the same issue and trying
everything I could think of, and then 5 minutes after I post for help I
solve the problem.

Assigning in this way:
packageVar.Value = databaseName;
Causes the problem, even though the error doesn't show up until
Execute().


shuma... (AT) cs (DOT) fsu.edu wrote:
Quote:
BTW, I'm using C# with 2005 Express IDE. Any help would be really
appreciated. I'm banging my head against a wall on this one.

shuma... (AT) cs (DOT) fsu.edu wrote:
I have also Loaded from the server, and the problem still occurs. I
recreated a new DTs package and added only a connection, a string
globalvariable, and a dynamicproperties task. The package runs fine
unless I add a variable assignment to the dynamicproperties task that
assigns to either DataSource or Catalog of the connection(I haven't
tried other types of assignments). In either case the error still
occurs.

shumaker (AT) cs (DOT) fsu.edu wrote:
I am loading a DTS from a local file, setting the DTS parameters, and
the executing the DTS.

When I call Execute on the package it gives me "Type mismatch" for
DTSStep_DTSDynamicPropertiesTask_1

If I run the package manually from Enterprise Manager, then it
completes succesffully.

If I remove that task from the package, then the package runs fine when
calling Execute.

I have two string Globalvariable that are assigned(by the dynamic
properties task) to the Catalog and DataSource of an OLEDB SQL Server
connection.

Not sure what's going wrong.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.