SolvedPrivate

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

Posted on 2014-01-17
5
85 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

626 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