SolvedPrivate

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

Posted on 2014-01-17
5
52 Views
Last Modified: 2016-02-10
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
Comment
Question by:blossompark
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:tim_cs
Comment Utility
Are you sure that your SQL Server Agent account has permissions to that folder/file?  I would start by looking at that.
0
 

Author Comment

by:blossompark
Comment Utility
Hi tim_cs,
thnks for your input,
will investigate your suggestion
0
 

Author Comment

by:blossompark
Comment Utility
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
 
LVL 15

Accepted Solution

by:
tim_cs earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:blossompark
Comment Utility
Perfect! thanks :-)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now