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


SSIS Not Working Under Credential


SSIS Not Working Under Credential

Author
Message
mitzyturbo
mitzyturbo
SSC Veteran
SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)

Group: General Forum Members
Points: 237 Visits: 579
Hi guys

Hoping someone can point me in the right direction.

I have an SSIS package that reads in a number of flat files and dumps the data into database tables. This is running as a SQL Job (SQL 2008 R2 server) under a credential which has db_owner access to the db it connects to. The credential has the necessary access to the file path location. However, the job doesn't run under the credential.

If I open the package in visual studio under my login and run it, it runs fine, if I open it as the credential the package runs fine but no data is dumped into the tables and errors thrown. The package step itself appears with a green progress indicating that there were no errors.

The flat file connection string is set by an expression, a variable contains the location of the file path.

When I run the package in the job, the job fails with the error "The file name property is not valid. The file name is a device or conatins invalid characters".

This doesn't make sense if the package runs under my account. This would appear to be a permissions issue but I've given the credential sa access on the db server and given it full access to the file location.

Just as a side note, the package was initially a 2005 package but was upgraded to 2008 as part of a project. In the test environment everything with the package running as the newly created credential ran fine
GavD
GavD
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 557
This is most likely down to permissions.
Check your root folders on file structure.
mitzyturbo
mitzyturbo
SSC Veteran
SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)

Group: General Forum Members
Points: 237 Visits: 579
All down to permissions alright, permission had to be explicitly allocated at the root folder into a read/write group.

Fairly misleading error message when ran as a job, also seems very strange that the account was able to run the first step that renamed the files but couldn't run the step to open the file and copy the data.
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