Groups | Blog | Home
all groups > sql server dts > may 2007 >

sql server dts : Another DTS Scheduling question


skyetech
5/14/2007 2:26:18 PM
SQL 2000 on Server 2003

I've created 8 different DTS packages and scheduled them by right
clicking on them. 6 of them work fine. However, 2 of them get the same
error when the job is run (they run fine if I right click on the
package and select 'Execute Package'). Here's the error:

DTSRun: Loading... Error: -2147221005 (800401F3); Provider
Error: 0 (0) Error string: Invalid class string Error
source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 713. Process Exit Code
1. The step failed.

I'm thinking the error must be inside the dts since my other jobs run
fine. I'm wondering if someone knows some typical errors that I can
look for in my code. Thanks
Allan Mitchell
5/15/2007 7:23:19 AM
Hello skyetech,

Looks very much like you may be seeing this

http://support.microsoft.com/kb/288910

http://www.google.co.uk/search?q=%22Invalid+class+string%22+and+dts

--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

skyetech
5/15/2007 8:40:45 AM
I've determined my problem is with "SMTP Mail Task" from sqldev.net.
This is the first time I've used it in a scheduled dts. I'm using it
to send success/failure emails. The scheduled job works if I remove it
from my package. Hopefully I can find something else without resorting
to using MAPI. Any ideas?
skyetech
5/15/2007 9:40:04 AM
Allan,

Yes it's installed on the server. The emails work fine if I execute
the steps from within the dts package but I get the error when I run
the scheduled job.
skyetech
5/15/2007 9:52:41 AM
I tried scheduling the job using DTSRUNUI but I get the same error.
skyetech
5/15/2007 10:29:26 AM
Allan,

I'll keep reading Microsoft's article but my first thought is we
remote desktop to our sql server and use enterprise manager from there
instead of from our desktops. Would there still be a ownership issue
in that case?
skyetech
5/15/2007 10:53:25 AM
I looked at the properties of both the scheduled job and the package.
The owner of the scheduled job is the same as the creator of the dts
package and the computer name for the package is the sql server, not
any workstation.
skyetech
5/15/2007 12:37:20 PM
Allan,

I decided to uninstall and reinstall SMTP Mail Task. During
installation I made it available to everyone instead of just me. I'm
not sure if that is what I did last time, but now everything works
fine.

Sorry I wasted your time, but hopefully this thread will help someone
else.
Allan Mitchell
5/15/2007 4:24:31 PM
Hello skyetech,

Do you have it installed on the server as that is where DTS will be looking
for it.

--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

Allan Mitchell
5/15/2007 5:14:18 PM
Hello skyetech,

Remember that DTS is a client app so even when you retrieve a package from
a SQL Server and execute it then it still comes to you on your PC wherever
that is.

If you are on the server and the package interactively executes fine but
not as a scheduled job then I would look to this article


http://support.microsoft.com/?kbid=269074

--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

Allan Mitchell
5/15/2007 6:15:59 PM
Hello skyetech,

Owner of the package matters little. It is the owner of the job that counts.
It is this guy's credentials that get used. Can you log on to the TS session
as the account that will run the job

Job Owner == Sysadmin then the service account else the proxy account

See if you can run the package interactively now.



--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

AddThis Social Bookmark Button