x
login about faq Site discussion (meta-askssc)

SSIS package fails when running as a Job

Hi

I have an SSIS package that is extremely simple...

1 - A Script task that connect to a website (using webclient) to download a csv file

2 - A data flow task that takes that file into a SQL staging table.

When running via BIDs and SSIS (even the Execute Package utility work fine) it works a treat, but when i run it via a job it failed with the error below.

Started:  15:19:35
Error: 2009-11-25 15:19:36.28
   Code: 0x00000000
   Source: Download File 
   Description: An exception occurred during a WebClient request.
End Error
Error: 2009-11-25 15:19:36.28
   Code: 0x00000004
   Source: Download File 
   Description: The Script returned a failure result.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  15:19:35
Finished: 15:19:36
Elapsed:  0.796 seconds

This Agent Service is setup as a local admin of the server... is there something missing when I setup the job? Could it be a IE proxy thing???

Also... If i create a batch file that calls the package, it works... But if I call the batch file from xp_CMDShell it fails with the same error.

Cheers

JL

more ▼

asked Nov 25 '09 at 12:28 PM in Default

sp_lock gravatar image

sp_lock
8.1k 20 26 29

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Make a credential that uses a domain user account (in SSMS, Database Engine, Security). Then go into SQL Agent and make a proxy that uses this credential, allowing the proxy to be used for SSIS tasks. Then try running the job step as this proxy.

My guess is that being Local Admin, it can't get out of the box. A low-privilege domain account, with just enough permissions to do what the package does should be enough.

more ▼

answered Nov 26 '09 at 06:23 AM

Rob Farley gravatar image

Rob Farley
5.7k 13 17 19

Rob thanks for your response... The Agent Service is setup as a domain user and that users is a local admin on the box.

Tried enabling the proxy for that user... but still getting the same error :-(

Nov 26 '09 at 08:16 AM sp_lock

Can you make a credential so that it runs using your account? (just temporarily for testing)

Nov 26 '09 at 09:52 PM Rob Farley
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x751
x25

asked: Nov 25 '09 at 12:28 PM

Seen: 1941 times

Last Updated: Nov 25 '09 at 12:42 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.