Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
SolvedPrivate

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

Posted on 2014-01-17
5
Medium Priority
?
91 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

715 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