web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Execute SSIS in Ax2012 job

(0) ShareShare
ReportReport
Posted on by 950

Hi,

I want to execute SSIS package using X++ job in ax2012.

Any pointer please.

Thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    MukeshHirwani Profile Picture
    1,180 on at

    Hi,

    U can create C Sharp Project (Class library project) which executes SSIS package. Save to AOT, Build & Deploy and then u can call same inside AX using X++.

    Code for running SSIS in C# :

    using System;

    using Microsoft.SqlServer.Dts.Runtime;

    namespace RunFromClientAppWithEventsCS

    {

     class MyEventListener : DefaultEvents

     {

       public override bool OnError(DtsObject source, int errorCode, string subComponent,

         string description, string helpFile, int helpContext, string idofInterfaceWithError)

       {

         // Add application-specific diagnostics here.

         Console.WriteLine("Error in {0}/{1} : {2}", source, subComponent, description);

         return false;

       }

     }

     class Program

     {

       static void Main(string[] args)

       {

         string pkgLocation;

         Package pkg;

         Application app;

         DTSExecResult pkgResults;

         MyEventListener eventListener = new MyEventListener();

         pkgLocation =

           @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services" +

           @"\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx";

         app = new Application();

         pkg = app.LoadPackage(pkgLocation, eventListener);

         pkgResults = pkg.Execute(null, null, eventListener, null, null);

         Console.WriteLine(pkgResults.ToString());

         Console.ReadKey();

       }

     }

    }

    Refer for more info about SSIS in C#

    msdn.microsoft.com/.../ms136090.aspx

  • amarbabuboddu Profile Picture
    on at

    Hi Mukesh,

    Can you please extend your help on following:

    - How to save to AOT

    - How to call same inside AX using X++

    - CalculatedColumns.dtsx file

    Attach screenshots if possible.

    Thanks,

    Amar

  • Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    Amar, I suggest you read the documentation on MSDN: Visual Studio Development for Microsoft Dynamics AX. It's there for exactly this purpose.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans