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

Cannot create ActiveX component.

$
0
0

Hi All, I have inherited numerous VS packages and one of them has given me nothing but grief since taking it on. I have worked through numerous bugs on it to where I can run the package manually in VS but when running the package on Microsoft SQL Server (SSIS) I get:

Microsoft (R) SQL Server Execute Package Utility  Version 14.0.3023.8 for 64-bit  Copyright (C) 2017 Microsoft. All rights reserved.    Started:  10:49:25 AM  Error: 2020-02-19 10:49:26.76    Code: 0xC0047062     Source: Script Component    Description: System.Exception: Cannot create ActiveX component.     at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)     at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.PreExecute()     at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPreExecute(IDTSManagedComponentWrapper100 wrapper)  End Error  Error: 2020-02-19 10:49:26.76     Code: 0xC004701A     Description: Script Component failed the pre-execute phase and returned error code 0x80131500.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  10:49:25 AM  Finished: 10:49:26 AM  Elapsed:  0.953 seconds.  The package execution failed.  The step failed.,00:00:01,0,0,,,,0

SQL Server 2017 is 64bit, SQL SSIS 2017 is 64bit, and Visual Studio 2017 is 64bit.

I have looked up the error codes and "Cannot create ActiveX component" and still nothing that makes sense. The process is connecting to a website and uploading the data. It runs perfectly fine when ran in Visual Studio - but spits this out in SQL...



Error 80040E4D Login Failed for user ' '

$
0
0
I executed this package successfully yesterday. Today I ran it again and it gave me this error. My coworker moved the database to a new server and so I thought I could change the connection manager info to reflect the new database. So I right click on the project and edit the information and test connectivity and it it says connected succesfully. Then I execute the package but it fails right away and gives the error "an error occurred while connecting Datawarehouse... Login failed for the user ' '". What am I supposed to do to change the source to the new database server? 

Issue with Balance Data Distributor dll

$
0
0
I have a package with BDD component. I have tried to run this package in SQL Server 2012 after placing the TxBDD.dll (belongs to SQL Server 2014) in pipeline components. It shows error as "The managed pipeline component "Microsoft.BDD" could not be loaded.  The exception was: Could not load type 'Microsoft.BDD' from assembly 'Microsoft.SqlServer.PipelineHost, Version=11.0.0.0, Culture=neutral, PublicKeyToken"

Now I replaced the TxBDD.dll with SQL Server 2012 TxBDD.dll still getting the same error.

I have compared this package with one of my working package. The difference is "componentClassID". The failing package contains componentClassID="Microsoft.BDD" and working package contains componentClassID="DTSTransform.BalancedDataDistributor.2"

So I have replaced my failing package's classid with DTSTransform.BalancedDataDistributor.2 and run with SQL Server 2012 TxBDD.dll this time the package executed successfully but not working with SQL Server 2014 TxBDD.dll.

Please clarify the following if anyone knows.

1. Is BDD require specific version of TxBDD.dll to run in different SQL Server ? 
2. What is the purpose of componentClassID.
3. Why the classid is differs like Microsoft.BDD and DTSTransform.BalancedDataDistributor.2 for same component?

Thanks in advance.

Erroneous Exception When Running a Script Task

$
0
0

Good morning, all -

I'm having a very strange problem with SSIS on VS2017.

Yesterday, I was having a problem with a script that corrected. It was throwing an exception - giving me that wildly useful popup dialog[/sarc] - on sending an email and failing when attaching a signature that I subsequently corrected.

Today, I'm running a different package that has a script to return the oldest file in a selected folder. This script has worked perfectly for about five years now on earlier versions of VS; VS2015 or earlier. But, today, it threw an exception.

When I examined the contents of that popup dialog, I noticed something strange and verified it by examining my notes from yesterday; it was the exact same exception that I had already corrected - in a different script in a different package.

I told myself, "Self, this looks odd."

So, I put a breakpoint in the script to see what on Earth was causing this issue and stepped through the whole script. It ran through to completion successfully; no errors at all.

I stopped the package, removed the breakpoint and reran it. This time, it ran fine with no exceptions, even though I changed nothing.

There are four similar packages in this project that do the same basic thing, but on different folders. Each uses the same script, but with the baseline folder changed to provide the proper template for the path to the necessary files. Each of the four do this same thing;

  1. They throw an exception giving the error from yesterday from an entirely different project,
  2. I add a breakpoint to the script,
  3. Step through it, it runs fine,
  4. I make no changes,
  5. I remove the breakpoint and run again,
  6. It runs fine with no exceptions.

Any ideas on what may be happening? I get it to work, but I'm worried something else is going on somewhere, hidden from me, that may cause other, more serious problems down the road.

Many thanx for any assistance!

check for rows in oracle source query before truncate sql destination table

$
0
0

Hi,

I am working on optimizing a package where it has following steps in seqence:

  • truncate table sqlTable 
  • DFT : oracle attinuity source query from sql command followed by ole db destination to load sqlTable 

The reason why i optimize is in above case we simply first truncate the SQL table and then when source query has no rows returned for some reason,we are left with no data in SQL table and model/reports break.This is not a good design.

So i want to do the following in ssis :

  1. check oracle query and see if it returns any rows.Pls remember we use attinuity tool
  2. If Step 1 returns rows,then proceed to Step 3
  3. Truncate SQL table
  4. Load the SQL table from Oracle query

Dased on Parameter value run data flow task

$
0
0

Based on the Paramater value I wan to start the data flow excecuation A or B.

For example lets say the parameter name is InputFlag

when i set the precedience constraint to   InputFlag== "ABC"||InputFlag== "PQR"||InputFlag== "XYZ" THEN it should run the task 1 else it should run the task 2

SQL Server: Overflow of float data type during simple transfer operation...

$
0
0

I have a SSIS that copies data from one database to the other. The tables are created using identical script and contain a number of float columns with default precision.

Is it possible for an overflow error to occur while copying data because data in the source column (float) is larger than space available in target column (also float with same default precision)?

How to download files from sharepoint (On-Line) from SSIS 2008 R2

$
0
0

Hi,

i have to connect to the SharePoint online via SSIS 2008 R2 via VB Scripts 2008 and have to perfrom below activity.

1. Download files from SharePoint (On-Line) (some time all files, some time based on filename only)

2. Delete the file  from SharePoint (On-Line) (some time all files, some time based on filename only)

3. Upload files  from SharePoint (On-Line) (some time all files, some time based on filename only)

Please share your thought.



Amit Srivastava,

NIIT Technologies

Please mark as answer if helpful

Blog:fascinatingsql.blogspot.in




SSIS Lookup Component Error -"Row yielded no match during lookup"

$
0
0

I am processing/upload a simple csv file with few columns. In each column I have simple text data with no more 50 characters.

but SSIS Lookup Component Error -"Row yielded no match during lookup" for one simple column

It is confirmed that data correct and no issue with matching values.

When I tried with very small set of data (few hundred) it works but I need to upload data (any number of records like few around 3 to 4 thousands) I also tried with cache type = partial and Null but it didn't work with even 1000 no. of records. What I can try to fix this

Thanks

SSIS Package hangs while performing validation on execution

$
0
0
I have a SSIS package which just transfers the data from Excel file to SQL server data base table. When i execute the package in SSDT it works fine but scheduling it through a SQL Server job it just hangs while exeuction. I enabled logging for my package and observed that during On Progress validation, the job is struck in execution. I have performed numerous checks like SQL Server agent account permissions, dcom permissions and etc but nothing seems to be resolving the issue. Any help will be appreciated.

Can we store SSIS package Google Drive and use in as a file ?

Wrong generated bufferwrapper.cs

$
0
0

Hi and thanks in advance for reading my problem:

I've created a dtsx-file, put there in a data flow task and in the data flow task a script component. The bufferwrapper.cs of any scriptcomponent gets generated wrong. 

Here is a sample of a property that is generated wrong:

public bool LineHeader_IsNull
    {
        set
        {
            if (value)
            {
                SetNull(0);
            }
            else
            {
                throw new InvalidOperationException("Die IsNull-Eigenschaft kann nicht auf "False" festgelegt werden. Ordnen Sie stattdessen der Spalte einen Wert zu.");
            }
        }
    }

As you can see the string gets generated wrong. "False" shouldnt get written in quotation marks. But they are, and it seems to me that it's a bug. I've installed the most up to date version of SSDT but that didnt has any effect.

My question is: How can I get rid of this error or how to change the language of generated strings (Because I think that maybe this erorr concerns only the german version)? I wouldnt mind to change the language from german to english if I would only know how. Of course I can correct it my self, but as soon as save the script exit visual studio and click again on "edit script" the errors appear again. That means that the correction fo all output columns have to be made eversytime when I change anything in the script. :(

Please help. 


How to write case statement in SSIS expression Derived Column.

$
0
0

Hello ,

I have a data flow task where I am getting a flat file and importing into our staging table. But before I import I am trying to remove the domain from the field called computer name.  Here is the expression written in SQL -

Update table A
set [Computer Name]=case when CHARINDEX('.',[Computer Name])>0 
                         then case when [Computer Name] like '[1-9]%.[1-9]%.[1-9]%' 
						 then [Computer Name]
						 else SUBSTRING([Computer Name],0,CHARINDEX('.',[Computer Name])) end
                         else [Computer Name] end

This works if I run this outside of dataflow. But due to requirement change I need to include this inside data flow and have derived column that will use this expression.

How do I rewrite this under derived transformation?


The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009

$
0
0

I have deployed my packages into Sql Server and I am using Configuration File. As my Data Source is Excel, I have changed the connection string during deployment with Server Path. But I am getting the following errors. Actually the File Exist in Path. May I know What is cause of the issue? Do I need to give any permission to execute the package.

 

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed. 

 

component "Excel Source Service Contract Upload" (1) failed validation and returned error code 0xC020801C. 

One or more component failed validation. 

 

There were errors during task validation. 

DTS_E_OLEDBERROR, Error Code: 0x80004005 Source: "MS JET DB Engine" Description : Path is not valid


 

How to import data 5 crore records batch wise ?

$
0
0

Dear Folks,

How to import 5 crore records data ( 500 Gb Size ) total 15 tables.

what is the login import btachwsie ?

can you assist.

Thanks In advance.

Thanks,

Reddy



Webservice not working as excpected

$
0
0

For the first time i’m trying to use a webservice in SSIS.

The webservice I’m trying to use is: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

To test this webservice I use: https://wsdlbrowser.com/

I want to use the function CheckVat. There are two input fields, countrycode and vatnumber. The method returns the requestdate, valid, name and adress.

Request XML:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ec.europa.eu:taxud:vies:services:checkVat:types">

 <SOAP-ENV:Body>

   <ns1:checkVat>

     <ns1:countryCode>NL</ns1:countryCode>

     <ns1:vatNumber>801837236B01</ns1:vatNumber>

   </ns1:checkVat>

 </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Result:

<soap:Envelope

   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

   <soap:Body>

       <checkVatResponse

           xmlns="urn:ec.europa.eu:taxud:vies:services:checkVat:types">

           <countryCode>NL</countryCode>

           <vatNumber>801837236B01</vatNumber>

           <requestDate>2020-01-20+01:00</requestDate>

           <valid>true</valid>

           <name>GEMINI TECHNIEK B.V.</name>

           <address>

METAALSTRAAT 00022

7483PD HAAKSBERGEN

</address>

       </checkVatResponse>

   </soap:Body>

</soap:Envelope>

After checking this I created a simple test SSIS Package.

At first I create an Execute SQL Task that executes this query:

select 'NL' as countrycode, '801837236B01' as vatnumber.

Resultset: full result set

The resultset name = 0 and the variable name is use is User::Relations

The next step is to create a foreach loop that loops through the recordset. (Foreach ADO Enumerator)

In the loop I’ll add the web service task. In this task I’ll create an new HTTP connection with server URL: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

I downloaded the WSDL file and stored this file in the projectfolder. When i choose to overwrite the WSDL file and click download: the specified web services description language file was downloaded successfully.

Then I defined the Inputs. So I selected CheckVatService as the service and i’ve chosen CheckVat as a method.

Instead of only the countryCode and the vatNumber, SSIS displays 5 input variables: countryCode, vatNumber, valid, name and adress. These are the output columns?!?

For this test I use a file connection as output.

The package does now look like this:


When I run the package I get an error:

[Web Service Task] Error: An error occurred with the
following error message:"Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException:
Could not execute the Web method. The error is: Could not create an object of
the type ProxyNamespace.Boolean&. Check whether the default constructor
exists..   at
Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo
methodInfo, String serviceName, Object connection)   at
Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo
methodInfo, String serviceName, Object connection, VariableDispenser
taskVariableDispenser)   at
Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".

The first field that I didn’t map tot the input fields is of type boolean… If I map ‘dummy’ variables with no value to the remaining input fields I get no error, but no output either. The output file consist of only the xml header:

<?xml version="1.0" encoding="utf-16"?>

<dateTime>2020-01-20T00:00:00+01:00</dateTime>

Is there something I'm missing? or is the webservice not suitable to use in SSIS.

The component metadata for "Script Component" could not be upgraded the the newer version

$
0
0

Hello,

I have install on my machine SQL Server Data Tools 2015, i create a new "Integration Service Project", Create a new package with a few script and other ETL work.

On my machine everything is working fine, meaning when i hit play all the action of the package are work fine.

Now, i wanted to run it through a SP on the server and when i execute the SP it gave me the error:

"The component metadata for "Script Component" could not be upgraded the the newer version"

I know that on the server installed SSTD version 2014.

What is the problem and how to solve it?

thank's


Call Rest Api and store data in Azure Sqlserver Database

$
0
0

Hi

I am trying to collect data from a call to a rest api controlled by basic authentication (authenticate pre-emptively).
I cannot use third party products.

It seemed relatively easy
but I am missing a component: System.Net.Http.Formatting.

Any open source product that is easier to work with?

Strange not to be a component included in the product.

I have visual studio 2019.

ssis and excel file

$
0
0

Hi there,

I have the SSIS package to generate the excel file.
Currently, the SQL task with the query below to create the excel sheet.  I need to add the additional column 'Discount Amount' but it kept getting the syntax error.  Can you please tell me what is the better and easy way to accomplish this?

CREATE TABLE `SalesOrders` (
`Order Date` date,
`Sequence` varchar(50),
`Item` varchar(50),
`Description` varchar(50),
`Open Qty` varchar(50),
`Discount Amount` int
)
GO


SSIS filter ADO .NET source query based on results from another query

$
0
0

a newbie to SSIS here, so if you are able to help.. please add as much detail to your answer as possible :)

My goal is to be able to parameterise my ado.net source based of values already in a table in my destination DB.

I've managed to test the functionality of the first part of this using a hard-coded value in my variable but i'm obviously going to need this flow to be dynamic (based on what existing in my lookup table).

Here is some detail of the steps i have taken so far.

  • I have a dataflow task in my a package, within this i have the ado net source connected to a lookup no match to a ole db destination.
  • I have set up a package level variable (with the hardcoded value)
  • After clicking on the dataflow task, i have placed my source query in the ADO NET Source.SqlCommand expression with the variable in the where clause. As like below.

"SELECT columm1 ,columm2 ,columm3 ,columm4

FROM table_a

WHERE columm1 in ='"+ @[User::varibable1] +"'

ORDER BY columm3 ,columm4"

I run the package and the only the records with the value name in my variable are returned! Perfect! Just what I need.

Now the second part... I need my ado.net source to receive the values from another query that should run prior. So somehow I need maybe another task that passes the values into this variable for the ado.net source but im not sure how to go about this.

Please let me know if you need anymore info.

Your help is much appreciated!

Thanks OluwaT

im using SSDT version 15.9.16

Viewing all 24688 articles
Browse latest View live