Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

SSIS Package Failure(CRM to SQLDb)

Posted on by 335

Hello

i am getting this error "To run a SSIS package outside of SQL Server Data Tools you must install Dynamics CRM Source of Integration Services or higher.\r\n" when i am excuting SSIS Package(package for data insert from crm to sql db) from .net C# code

here is my code..

using DTS = Microsoft.SqlServer.Dts.Runtime;


public class Call_SSIS_Package
{
public Call_SSIS_Package()
{

// Variables
DTS.Package dtsPackage = null;
DTS.Application dtsApplication = null;

dtsApplication = new DTS.Application();
//Load package by specifying SSIS package file path
dtsPackage = dtsApplication.LoadPackage(@"D:\Yash\All SSIS Package\ThriveQaQuotes(Thrive-to-sql)\ThriveQaQuotes(Thrive-to-sql)\Package.dtsx", null);
DTS.DTSExecResult packageResult = dtsPackage.Execute();
if (packageResult == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure)
{
string err = "";
foreach (Microsoft.SqlServer.Dts.Runtime.DtsError local_DtsError in dtsPackage.Errors)
{
string error = local_DtsError.Description.ToString();
err = err + error;
}
}
if (packageResult == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success)
{
string message = "Package Executed Successfully....";
}

}

}

Thanks,Regards.

*This post is locked for comments

  • Suggested answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: SSIS Package Failure(CRM to SQLDb)

    Well you dont seem to have installed instance of Integration Services on the machine. You need to install it before executing this code via C#.

    Download and install: docs.microsoft.com/.../install-integration-services

  • Yash Trivedi CRM Profile Picture
    Yash Trivedi CRM 335 on at
    RE: SSIS Package Failure(CRM to SQLDb)

    hy pranav,i have added these Microsoft.Xrm.Sdk.dll,Microsoft.Crm.Sdk.Proxy.dll and also files but i am getting same.

  • Suggested answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: SSIS Package Failure(CRM to SQLDb)

    github.com/.../download-dynamics-365-sdk-v9.md

    For CRM Online.

  • Yash Trivedi CRM Profile Picture
    Yash Trivedi CRM 335 on at
    RE: SSIS Package Failure(CRM to SQLDb)

    Hy Pranav,yes i install SQL Server Data Tools - Business Intelligence for Visual Studio ,where from i get CRM SDK??

  • Suggested answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: SSIS Package Failure(CRM to SQLDb)

    Did you install SQL Server Data Tools - Business Intelligence for Visual Studio and CRM SDK?

    Check and confirm.

    Hope this helps,

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans