January 8, 2013 at 1:26 pm
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
January 9, 2013 at 5:27 am
This is most likely down to permissions.
Check your root folders on file structure.
January 9, 2013 at 7:19 am
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.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply