Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

SSIS Script Task Error after adding Nuget Package Microsoft.ReportingServices.ReportViewerControl.WebForms

$
0
0

Hi Experts,

I am trying to add Microsoft.ReportingServices.ReportViewerControl.WebForms 150.900.148 to use interface Microsoft.ReportViewer.Webforms to export SSRS 2016 Reports. But when saving the SSIS Package it gives error as shown ( I am using Visual Studio 2019 Community Edition ) although the Script Task compiles successfully without error.

I tried using below version of packages also 

microsoft.reportingservices.reportviewcontrol.webforms.140.1000.523.nupkg 
microsoft.reportingservices.reportviewcontrol.webforms.preview.130.1700.305.nupkg

while using version 13 and 14 does not gives error but in this case the debugger stops hitting the breakpoints i,e if i use version 13 or 14 the SCRIPT Task gets compiled successfully and SSIS Package gets saved but if i try to execute it with breakpoints inside the script task, it gets executed and gets failed due to some error but i cannot debug it as the break point i set do not get hit and even the debug window does not gets opened.

If i remove the code using reportviewcontrol.webforms the Debugger starts working and it stops at breakpoints.

Any help will be greatly appreciated

P.S I am not sure to post this question in VS Forum or C# forum or SSIS Forum. So i request moderators to move this to relevant section if it is not proper section.

Thanks

Yuvraj 


Sequence Container Task - For Each Loop Container

$
0
0

I am getting Warning Error as below when I run the ssis package task

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Please help at the earliest

Running SSIS package with script component on SQL Server 2016 gives error Component Mismatch Exception

$
0
0

I have SSIS project deployed on SQL Sever 2016, the project has a package that uses script component, the package runs with no errors locally on VS 2017 but when deployed gives error.

Solutions that I tried

1)Changed the target version to SQL Server 2016 in SSIS project

2)Change the .NET runtime on script component to 4.6

,still no luck .Any help would be appreciated

error report-

Data Flow Task 1:Error: Microsoft.SqlServer.Dts.Pipeline.ComponentVersionMismatchException: The version of Script Component is not compatible with this version of the DataFlow.  [[The version or pipeline version or both for the specified component is higher than the current version.  This package was probably created on a new version of DTS or the component than is installed on the current PC.]]
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostCheckAndPerformUpgrade(IDTSManagedComponentWrapper100 wrapper, Int32 lPipelineVersion)

Data Flow Task 1:Error: The component metadata for "Script Component" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.


Runtime Column Propagation possible in SSIS ?

$
0
0

Hi,

I am a datastage guy for most of my life, so pardon me, if i am asking a stupid question.

Requirement : The csv file which is the source can different number of columns at different dates.

Currently it has 70 columns, but tomorrow it can come with 75 columns or 60 columns.

I have to read the csv file and load it to the table. The data volume is also huge.

In datastage, we have a schema file concept, which enables us to propogate column metadata on runtime.

Is it possible in SSIS or can you guide me in a proper direction as to how to handle the above situation. 

Thanks for your help in advance. Cheers!!!!!



Script Task not run when deployed in Integration Service Catalogs

$
0
0

I try using C# code to send an email by Script Task component, when I run it in SSDT, every thing is OK, but when I deployed it to catalog and execute it, it looks that run successful, but nothing happened. 

I'm sure that it can run well in catalog several weeks ago, and the package I deployed weeks ago also running well, but if I deployed the same package again, the script task do nothing. 

SQLSERVER EDITION: 2016 developer

SSIS Static Analysis

$
0
0

Hi All,

Is there any tool available in the market for SSIS static analysis and SSIS security analysis. We are trying to implement DevOps,

CI/CD we are trying to identify all the tools and integrate them to automate the process, please advise.

Thanks,

Narthan


nethan

Loading Local files into Azure database - Not able to connect - please help!!

$
0
0
Hi,
I have VS 2015 and  SSIS 2016. I have to load around 10 excel files into a one single table in Azure database.

From SSIS 2016, I am trying to connect into Azure database, but I can't. But the same Azure database, I can connect from SSMS. In SSMS, i provided the servername and in the Authentication,  I selected 'Active Directory Password Authentication' and provided the credentails and i am able to connect. But in SSIS, I can't connect. Can someone please help me on how to connect into Azure Database from SSIS with 'Active Directory Password Authentication'?

Using package execution time as a variable in next execute sql task

$
0
0

My requirement is i've to fetch the records that are populated after  last package execution date from a table.

To get Last package execution date I'm picking the end_time column from ssisdb -catalog.execution for a package .

Created  one exec sql task.

    Defined as Single row result set

SQL Statement-select max(end_time) from catalog.execution where package_name='package.dtsx' and project_name='Projectname'and status=7

   created a variable name Pkgexecdate .

    Maped this result set variable.

 

In  another exec sql task i've to use this result set variable value in a where condition for a sql statement .

connecton string for both exec sql tasks are not in same server.

How do i achieve this ?

 


SANTHOSH





Connecting Azure SQL database from SSIS

$
0
0

Hi,

I am using VS 2015 and SSIS 2016. I need to load few local flat files data into Azure database.
The problem is, I can connect to the Azure database in SSMS. But I can't connect to the same server while developing the package in SSIS 2015. 

Then I tried the same in my colleague's laptop and I am able to connect in SSIS 2015. I am really confused because , I can connect to the server through my SSMS and also from SSIS 2015 from my colleague's machine - but, when i try from my laptop, I am getting the below error - please suggest what might be the problem. Here is the server/credentials/authentications I tried and the error I got.

WinSCP Modifies file while sending to SFTP

$
0
0

Hi Everyone,

I have an ssis package that sends a file to an SFTP location using the WinSCP.dll, everything works well.

However, when I try viewing the file from the SFTP I noticed that the file format has changed. The original file is in ASCII and has black space inbetween rows but the one send to SFTP does not have blank space between rows anymore.

Below is my code

Thanks 

            string file = Dts.Variables["User::file"].Value.ToString();
            string winscpexe = Dts.Variables["User::WinSCPexe"].Value.ToString();

            SessionOptions sessionOptions = new SessionOptions
            {
                Protocol = Protocol.Sftp,
                // select ReadOnlyVariables, and tick the below properties.
                HostName = (string)Dts.Variables["host"].Value,
                UserName = (string)Dts.Variables["username"].Value,
                Password = (string)Dts.Variables["password"].GetSensitiveValue(),
                SshHostKeyFingerprint = (string)Dts.Variables["Fingerprint"].GetSensitiveValue(),
                PortNumber = (int)Dts.Variables["port"].Value
            };

            try
            {
                using (Session session = new Session())
                {
                    // As WinSCP .NET assembly has to be stored in GAC to be used with SSIS,
                    // you need to set path to WinSCP.exe explicitly,
                    session.ExecutablePath = @winscpexe;

                    // Connect
                    session.Open(sessionOptions);

                    // Upload files
                    TransferOptions transferOptions = new TransferOptions();
                    transferOptions.TransferMode = TransferMode.Ascii;
                    transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;


                    TransferOperationResult transferResult = session.PutFiles(
                        @file, "/", false, transferOptions);

                    // Throw on any error
                    transferResult.Check();

                    // Print results
                    bool fireAgain = false;
                    foreach (TransferEventArgs transfer in transferResult.Transfers)
                    {
                        Dts.Events.FireInformation(0, null,
                            string.Format("Upload of {0} succeeded", transfer.FileName),
                            null, 0, ref fireAgain);
                    }
                }

                Dts.TaskResult = (int)DTSExecResult.Success;
            }
            catch (Exception e)
            {
                Dts.Events.FireError(0, null,
                    string.Format("Error when using WinSCP to upload files: {0}", e),
                    null, 0);


me

Visual Studio 2017 & SQL Server 2017 - cannot run deployed SSIS package due to missing DLL

$
0
0

Hi All, 

I preface this by saying that I have the ability to change version of Visual Studio if I need to however SQL Server is a bit more restrictive. 

The problem I am having is that I am trying to execute a package that was modified in visual studio 2017 and deployed onto an SSIS catalog in SQL Server 2017. 

I am met with the following error: 

 The managed pipeline component "Microsoft.SqlServer.Dts.Pipeline.ADONETDestination, Microsoft.SqlServer.ADONETDest, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" could not be loaded.  The exception was: Could not load file or assembly 'Microsoft.SqlServer.ADONETDest, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified

I have been dealing with this issue on a different server that had VS2019, and literally rebuilt a server where I could dictate what versions of software I installed, I figured Visual Studio 2017 would have more luck.  I presume the issue is that windows has an older version of Microsoft.SqlServer.ADONETDest.dll. 

Software versions I am currently running are as follows: 

- SQL Server 14.0.1000.169

- Windows Server 2016

Microsoft Visual Studio Community 2017 Version 15.9.12
VisualStudio.15.Release/15.9.12+28307.665
Microsoft .NET Framework
Version 4.7.03062

Installed Version: Community

Microsoft Visual Studio Tools for Applications 2017   00369-60000-00001-AA780
Microsoft Visual Studio Tools for Applications 2017

ASP.NET and Web Tools 2017   15.9.04012.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   15.8.31590
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017   5.2.61435.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.9.03024.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.3.3000.2
Microsoft Azure Data Lake Tools for Visual Studio

Azure Stream Analytics Tools for Visual Studio   2.3.3000.2
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

Microsoft Azure HDInsight Azure Node   2.3.3000.2
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.3.3000.2
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.3.3000.2
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.20417.1

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   1.0
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

NuGet Package Manager   4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Project   1.0
Information about my package

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Redgate SQL Search   3.1.7.2062
Search functionality for SQL Server databases, from within Visual Studio

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

SQL Server Analysis Services   15.0.1300.108
Microsoft SQL Server Analysis Services Designer 
Version 15.0.1300.108

SQL Server Data Tools   15.1.61903.01040
Microsoft SQL Server Data Tools

SQL Server Integration Services   15.0.1300.371
Microsoft SQL Server Integration Services Designer
Version 15.0.1300.371

SQL Server Reporting Services   15.0.1300.108
Microsoft SQL Server Reporting Services Designers 
Version 15.0.1300.108

SsmsVsIntegration   1.0
Information about my package

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   15.9.30410.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Containers   1.0

Visual Studio Tools for Containers

I believe part of the problem i have is that it is difficult to find an older version if the SSIS plugin for visual studio. It is also very difficult to find any information on what versions of what are compatible with what. 

Can anybody provide any guidance, what I can install/uninstall/downgrade to fix the issue? At the moment I am restricted to using the ADONetDestination provider as the endpoint is an external system and the connection parameters that have been provided to me are for that provider (and unfortunately information to use a different provider is not exactly forthcoming)


SCD Type 2 Implementation with merge and merge join.. How to handle Primary key with multiple records from same source file

$
0
0

Hi All,

The Data from the source file looks like below. These are the only columns and there are no additional date columns.

Customer IDCustomer NameSegmentPostal Code
AA-10375Allen ArmoldConsumer85204
AA-10375Allen ArmoldConsumer68104
AA-10375Allen ArmoldConsumer90008
AA-10375Allen ArmoldConsumer97301
AA-10375Allen ArmoldConsumer30318
AA-10375Allen ArmoldConsumer91730
AA-10375Allen ArmoldConsumer37087
AA-10375Allen ArmoldConsumer10035
AA-10375Allen ArmoldConsumer2908

The requirement is to implement SCD type 2 implementation with merge join and merge task in SSIS.  please suggest how i can Implement SCD type 2 and update effective from date and Effective To Date for the above data. 

Thanks

Balaji



balaji

Unable to create the type with the name 'AzureStorage'

$
0
0

Im trying to deploy a project from my visual studio 2017 to my sql server integration services catalog.

My sql server is 2016, i have my ssis package set to target server compatibility 2016 and i have also installed the Azure integration services pack 2016 on the server, however when i click deploy it fails on the following error

Unable to create the type with the name 'AzureStorage'

I am now at a point where i cannot think what else to try

Any suggestions will be greatly appreciated

regards

Stewart


Working with a PostgreSQL database as a OLE DB destination

$
0
0

Hello:

I am using VS 2019 and trying to move data from SQL Server to PostgreSQL 11.3. When I try to create a OLE DB Destination pointing to a PostgreSQL database using PostgresSQL Ole DB Provider, the initial Catalog is disabled. 

Can someone tell me how I can enable it so I can choose the database table I am interested in?

As you may know, PostgreSQL structure is quite different. It can have multiple databases and each database can have any schemas.

Thank you.

Venki

Regarding the OLEDB Provider for the Postgres DB

$
0
0

Hi ,

Thanks in advance.

Please provide the link to get free provider to connect the Postgres DB Using SSIS.


How to move undeployed SSIS package to new dev server

$
0
0

What is the procedure to move an undeployed SSIS package from my current dev server to.  All version software, including OS is the same between servers.  OS Win2016, Visual Studio 2015, SSDT 2015

Any help would be appreciated.

kd

Sort transformation drops rows?

$
0
0

While debugging an SSIS package (SQL 2017 target, VS 2015 with SSDT), I noticed that one of the Sort transformations apparently "lost" about 85% of all the records - and the "Remove rows with duplicate sort values" is Unchecked.  Out of 471,226 rows in to the Sort transformation, only 66,899 are reported to be passed to the next transformation (a Merge Join). 

I think I saw that this (Sort -> Merge) may have been an issue in 2008, but I don't recall seeing anything more recent.

What gives?

(My VS shows the following:)

BI Developer Extensions v2.1.1 for Visual Studio 2015 - An add-in to extend SQL Server Data Tools

Microsoft SQL Server Data Tools 14.0.61712.050

Microsoft SQL Server Integration Services Designer
Version 14.0.1000.169

Configure SSIS Package with Environment variables

$
0
0

While Configuring SSIS Project on Environment Variable match, the drop down list is a mess, especially when you have a long list of vaiables, it is very hard to locate the one you need.

Anyone knows any solution?

It won't allow me to post screen shot, not sure how to validate my account.

Cannot drop a user from SSISDB Database

$
0
0

Hello,

Seeing following error when I try to drop a user from the said database:

Msg 15138, Level 16, State 1, Line 1

The database principal owns a certificate in the database, and cannot be dropped.

Here are the list when I run select * from sys.certificates inside SSISDB database:

namecertificate_idprincipal_idpvt_key_encryption_typepvt_key_encryption_type_descis_active_for_begin_dialogissuer_name
MS_SQLISSigningCertificate2561NANO_PRIVATE_KEY1MS_SQLISSigningCertificate
MS_Cert_Proj_Param_12586MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_Param_22606MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_32616MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_Param_32626MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_Param_42646MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_52656MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate
MS_Cert_Proj_Param_52666MKENCRYPTED_BY_MASTER_KEY1ISServerCertificate

Inside Master db, there are different certificates. Do I need to change the ownership of the certificates to some other user (for now, I would like to change the ownership to some other user who has either db_owner role or sysadmin role) and if so, how to identify who owns the certificates and any impact on the SSISDB or the deployed packages?

Will greatly appreciate your help.

Thanks.

Victor


Victor

Use CSOM to add values to Microsoft Project Server Lookup table

$
0
0

Hi everyone.  Hope this finds you well. Some background:  I have a requirement to integrate Microsoft Project Server (MPS) with a Project Management tool and send data from the PM tool to MPS.  The project data will be utilized as drop-down values in a Lookup Table.  From my understanding, writing data to MPS is done through the CSOM.  

Question:  

Can anyone provide guidance how to use the CSOM for Lookup table manipulation, i.e. inserting/deleting lookup values?  Do you have code that can be shared?

Thanks everyone.  Please let me know if there are questions.  Appreciate any assistance.

Hans 




Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>