SolvedPrivate

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

Posted on 2014-01-17
5
63 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
ID: 39788795
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
ID: 39788825
Hi tim_cs,
thnks for your input,
will investigate your suggestion
0
 

Author Comment

by:blossompark
ID: 39788881
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
ID: 39788953
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
ID: 39789073
Perfect! thanks :-)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

777 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