Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. To run a SSIS package outside of SQL server data tools you must install populate filecollection of integration services or higher

To run a SSIS package outside of SQL server data tools you must install populate filecollection of integration services or higher

Scheduled Pinned Locked Moved Database
databasesql-serverhelpsysadmintools
2 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    Hi, I have been going through a tough time in resolving this issue, I am getting the following error when I am trying to execute a package that's on the MSDB database, it says "Source : Microsoft.SqlServer.Dts.Runtime.TaskHost, ErrorCode : -1073679321, Description : To run a SSIS package outside of SQL Server Data Tools you must install Populate FileCollection of Integration Services or higher." My code is as below:

        static void Main(string\[\] args)
        {
            Application app = new Application();
            Package loadedPkg = app.LoadPackage(@"\\\\bsc\\cscm\\edh\_imdb\\DataExchange\\ShieldLink\\NewFolder\\Brandon\\TestSSISPackage\\SgLgReporting\_SLNewBusinessInProgress.dtsx", null);
    
            // Save the package to SQL Server.
            //app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);
            app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);
    
            ////Application integrationServices = new Application();
            //Package myPackage = app.LoadFromSqlServer(@"\\MSDB\\Data Collector\\SAW\\Load\_MEET\_Errors\\SgLgReporting\_SLNewBusinessInProgress.dtsx", "WSQL569S,50101", String.Empty, String.Empty, null);
    
    
            var temp = LaunchPackage("sql", string.Empty, "SgLgReporting\_SLNewBusinessInProgress.dtsx");
    
    
            //myPackage.Execute();
        }
    
    
        public static int LaunchPackage(string sourceType, string sourceLocation, string packageName)
        {
    
            string packagePath;
            Package myPackage;
            Application integrationServices = new Application();
    
            // Combine path and file name.  
            packagePath = Path.Combine(sourceLocation, packageName);
    
            switch (sourceType)
            {
                case "file":
                    // Package is stored as a file.  
                    // Add extension if not present.  
                    if (String.IsNullOrEmpty(Path.GetExtension(packagePath)))
                    {
                        packagePath = String.Concat(packagePath, ".dtsx");
                    }
                    if (File.Exists(packagePath))
                    {
                        myPackage = integrationServices.LoadPackage(packagePath, null);
                    }
                    else
                    {
                        throw new ApplicationException("Invalid file location: " + packagePath);
                    }
                    break;
                case "sql":
                    //
    
    I 1 Reply Last reply
    0
    • I indian143

      Hi, I have been going through a tough time in resolving this issue, I am getting the following error when I am trying to execute a package that's on the MSDB database, it says "Source : Microsoft.SqlServer.Dts.Runtime.TaskHost, ErrorCode : -1073679321, Description : To run a SSIS package outside of SQL Server Data Tools you must install Populate FileCollection of Integration Services or higher." My code is as below:

          static void Main(string\[\] args)
          {
              Application app = new Application();
              Package loadedPkg = app.LoadPackage(@"\\\\bsc\\cscm\\edh\_imdb\\DataExchange\\ShieldLink\\NewFolder\\Brandon\\TestSSISPackage\\SgLgReporting\_SLNewBusinessInProgress.dtsx", null);
      
              // Save the package to SQL Server.
              //app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);
              app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);
      
              ////Application integrationServices = new Application();
              //Package myPackage = app.LoadFromSqlServer(@"\\MSDB\\Data Collector\\SAW\\Load\_MEET\_Errors\\SgLgReporting\_SLNewBusinessInProgress.dtsx", "WSQL569S,50101", String.Empty, String.Empty, null);
      
      
              var temp = LaunchPackage("sql", string.Empty, "SgLgReporting\_SLNewBusinessInProgress.dtsx");
      
      
              //myPackage.Execute();
          }
      
      
          public static int LaunchPackage(string sourceType, string sourceLocation, string packageName)
          {
      
              string packagePath;
              Package myPackage;
              Application integrationServices = new Application();
      
              // Combine path and file name.  
              packagePath = Path.Combine(sourceLocation, packageName);
      
              switch (sourceType)
              {
                  case "file":
                      // Package is stored as a file.  
                      // Add extension if not present.  
                      if (String.IsNullOrEmpty(Path.GetExtension(packagePath)))
                      {
                          packagePath = String.Concat(packagePath, ".dtsx");
                      }
                      if (File.Exists(packagePath))
                      {
                          myPackage = integrationServices.LoadPackage(packagePath, null);
                      }
                      else
                      {
                          throw new ApplicationException("Invalid file location: " + packagePath);
                      }
                      break;
                  case "sql":
                      //
      
      I Offline
      I Offline
      indian143
      wrote on last edited by
      #2

      I needed to have SSIS run time on my machine where I am executing the Console app, or reinstall SQL Server along with Integration Services.

      Thanks, Abdul Aleem "There is already enough hatred in the world lets spread love, compassion and affection."

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups