Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Error: "Type mismatch" using ExecutePackageTask

Author  Topic 

kleinklausi
Starting Member

2 Posts

Posted - 2005-07-11 : 11:18:56
Hi,

I've got a strange error message when I try to use an ExecutePackageTask within an DTS-Package. This error only comes up, when the Package is scheduled and owned by 'sa'. When I execute the package manually, everything works fine. (I use outer global variables.)

Any Ideas?
Thanks in advance, Moritz



Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Type mismatch.
Type mismatch.

Step Error code: 80020005
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100

kleinklausi
Starting Member

2 Posts

Posted - 2005-07-12 : 06:35:57
hi,

I figured out the problem:
The package B which is executed by package A have some global variables of type 'Date'.
The package B was designed in an german environment and the value for the global variable was "01.01.1900".
But the Scheduler runs under the 'sa' account, which takes usually an english environment.
When the scheduler execute the package B, he tries to cast "01.01.1900" into a Date value.

You have to use the same environment to design the package or to leave out global variables with type Date.

by
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2005-07-12 : 06:41:29
Afrikaans or Dutch?
Go to Top of Page
   

- Advertisement -