SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS runs in debug but not from job


SSIS runs in debug but not from job

Author
Message
tanyadavidg
tanyadavidg
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 6
We have this SSIS where one of its components, reading a flat file and writing to a database table, runs fine when I execute the package in VS (debug) but when I run it using a job this specific step fails on the error:

Error: 2012-09-09 15:31:58.43
Code: 0xC0204026
Source: Copy date from Folder file into FolderTable Save the file in the database [14]
Description: The metadata for "[dbo].[FolderTable]" cannot be retrieved. Make sure the object name is correct and the object exists.
End Error
Error: 2012-09-09 15:31:58.43
Code: 0xC004706B
Source: Copy date from Folder file into FolderTable SSIS.Pipeline
Description: "component "Save the file in the database" (14)" failed validation and returned validation status "VS_ISBROKEN".
End Error

I've looked around and tried various suggestions fixing the problem,like redefining the column and its length, changing the ValidExternalMetadata.

Didn't help.
What could help me with the problem ?
How come it runs fine within VS but from a job it fails ?

Thanks
David
Rob Taylor
Rob Taylor
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3906 Visits: 1616
I'd guess a permissions issue. What account is the SQL Agent job running under? Does that user have permissions to see the folder where the flat file is?

HTH,
Rob
Brandie Tarvin
Brandie Tarvin
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39028 Visits: 9290
We've had the same issue due to permissions and we've had the same issue due to missing or out of date dll files on our server.

Was this package developed by you? Are there any special "accessory" files (like dlls, webservice calls, etc) that are required to go along with it that perhaps don't live on the server?

What account is running the job? Does it have access to both the database and the file share location?

Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Ignacio A. Salom Rangel
Ignacio A. Salom Rangel
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6674 Visits: 1439
Have you check the permissions of the account that runs the SQL Server Agent as already suggested? In order to be sure it is a permission issue you can also try to set your account to run the SQL Server Agent on a development Server and run the package from there.




My blog

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search