Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 run ssis package as a job

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-10-06 : 11:20:51
I am running a SSIS package as a job.
It is selected to run as "sql server agent service account" in the job step properties.
But when running the job it gives the following error.
I think it is to do with file or folder permissions but not sure what to do.
Any suggestions please?
Thanks

Description: The file name "\\servername\myfolder\filename.csv" specified in the connection was not valid

And it also says:
Description: Connection "Filename_connection" failed validation.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-06 : 12:21:44
is the path accessible from server where you created the job using proxy account?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-10-06 : 12:34:06
I did a test to confirm the permission issue.

1- In BI the ssis package runs fine and access the network file which points to a Dev server...
2- Set up a job for this ssis package and works fine.
3- In BI changed the path to point to the production server and still the package runs fine and accesses the file on the production server.

3- setup a job for the package which points to the production server, BUT it gives the error as mentioned previously.

The path I have setup for the ssis package to access is \\servername\myfolder\filename.csv

Does this mean that in the production folder ie. \\productionServername\myfolder" I have to give read rights to the localSystem user (Which is the user that runs the sql server agent(MSSQLSERVER)?

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-06 : 12:41:38
yep. you need to if its the login under which agent runs and executes the package.
In actual scenario you will be creating a seperate proxy account with reqd folder permissions and it will be used by sql agent to execute the package. and this will be having seperate credentials b/w environments so that nobody will be able to get access through this account in production.
I didnt understand why you're running package pointing to production server from your BI though. its certainly not a good thing to do as you might end up manipulating live data.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-10-07 : 13:01:08
thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-07 : 13:07:44
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -