Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 99
  • Last Modified:

SQL SERVER 2008 SSIS package executes successfully from MSDB but not from the file system

I have a SQL Server Agent  job that has one step which executes an SSIS package that is stored in the MSDB database.
This works fine.
There has been a change in our company policy and now all dtsx packages need to be stored in the file system.
I repointed the Job at the dtsx package in the file system , which is a copy of the dtsx package from the development environment.
When I run the job now I get the following error
Executed as user: OMEGA\DHX33683$. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 32-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  15:27:07  Error: 2014-01-17 15:27:07.90     Code: 0xC0011007     Source: {BE2C315B-D503-43ED-8BFA-31470293E171}      Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted.  End Error  Error: 2014-01-17 15:27:07.90     Code: 0xC0011002     Source: {BE2C315B-D503-43ED-8BFA-31470293E171}      Description: Failed to open package file "C:\Users\ABCD123\Documents\Visual Studio 2008\Projects\Move-Package_from_MSDB_to_File_System\Move-Package_from_MSDB_to_File_System\Copy_Delete_File.dtsx" due to error 0x80070005 "Access is denied.".  This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.  End Error  Could not load package "C:\Users\ABCD123\Documents\Visual Studio 2008\Projects\Move-Package_from_MSDB_to_File_System\Move-Package_from_MSDB_to_File_System\Copy_Delete_File.dtsx" because of error 0xC0011002.  Description: Failed to open package file "C:\Users\ABCD123\Documents\Visual Studio 2008\Projects\Move-Package_from_MSDB_to_File_System\Move-Package_from_MSDB_to_File_System\Copy_Delete_File.dtsx" due to error 0x80070005 "Access is denied.".  This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.  Source: {BE2C315B-D503-43ED-8BFA-31470293E171}  Started:  15:27:07  Finished: 15:27:07  Elapsed:  0.016 seconds.  The package could not be found.  The step failed..
Any guidance appreciated.
0
blossompark
Asked:
blossompark
  • 3
  • 2
1 Solution
 
tim_csCommented:
Are you sure that your SQL Server Agent account has permissions to that folder/file?  I would start by looking at that.
0
 
blossomparkAuthor Commented:
Hi tim_cs,
thnks for your input,
will investigate your suggestion
0
 
blossomparkAuthor Commented:
The job is Run as “SQL Server Agent Service Account”
Looking at the Permissions for the dtsx file I do not see any sql server agent type account.
  SQL Server is installed on my windows 7 laptop, and all files are on my laptop.
 how can I confirm that  the Agent has the correct access to the dtsx  file?
0
 
tim_csCommented:
Since it's all local right click the file, go to properties, security, Edit, select "Users", click full control, then ok.   Try again after that.
0
 
blossomparkAuthor Commented:
Perfect! thanks :-)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now