all groups > sql server dts > august 2006 >
You're in the

sql server dts

group:

Error only when running as a sub-package


Error only when running as a sub-package Pat
8/10/2006 9:57:01 AM
sql server dts:
Windows 2003 x64
SSIS 2005 x64 SP1 + hotfix 918222

I have a number of packages that import csv files from various sources. When
I run these packages independently from Visual Studio using "Execute
Package", they work fine.

I need to have them all run in sequence, so I created a super-package that
contains one "Execute Package Task" for each of those csv-import packages.

Now when running inside the super-packages, the csv-import packages come up
with casting errors, for instance:
Error: 0xC0047062 at Load CSV File, Script Component [1651]:
System.InvalidCastException: Conversion from string ":4" to type 'Integer' is
not valid.

Again, running the package on its own, with the same input file, causes no
error and the package terminates successfully.

Could it be a locale/region setting problem ?
Is a packet running inside another package running under another
windows/domain account ?

All of this inside Visual Studio, and all packages stored on the file
system, nothing deployed yet.

RE: Error only when running as a sub-package Charles Kangai
8/11/2006 12:56:01 AM
I have seen a similar error when a Unicode file was mistakenly specified as
non-unicode, or vice versa. This does not appear to be the problem in your
case as you have not changed anything in the file manager specification.

Check the LocaleID setting of the parent task to see whether it is
consistent with the child package's LocaleID property.

You can also try and change the ExecuteOutOfProcess property of the Execute
Package task to True and see whether that makes any difference.

Charles Kangai, MCT, MCDBA

[quoted text, click to view]
RE: Error only when running as a sub-package Pat
8/11/2006 1:11:01 AM
All have English(United States) as localeID.
However, changing ExecuteOutOfProcess to TRUE solves the problem.

Any idea what is going on ? The packages aren't running in parallel, they
are running one after the other, and just pumping the csv into an SQL table.
So I shouldn't think that there would be any side effects between packages.

[quoted text, click to view]
AddThis Social Bookmark Button