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

Why Ole Db Command (ssis 2012 data flow) not recive the output parameter value from procedure ?

$
0
0

Hi everybody ,

I'm new with ssis 2012 and i happy to see the "OLE DB COMMAND" in the data-flow ,

in my data-flow in the "OLE DB COMMAND"  i am calling to sp : 'exec ? = dbo.tst_sclr_prc  @p1=? ,@p2=?' or

'exec ? = dbo.tst_sclr_prc  ? , ?'

sp looks like:

ALTER procedure  [dbo].[tst_sclr_prc] (@p1 int   , @p2 int output )

AS 
BEGIN
    set @p2  = @p1 + 1 ;
END;

in the column mappings  : int field name "ProgramCode" => @p1 ,

and the @p2, @RETURN_VALUE  - goes to 2 field that added before in "Derived Column".

look very simple BUT when executing the pkg it seems that  @p2, @RETURN_VALUE have no effect !

am i missing something ? do i need to change or to add a property in a component or at the pkg level ?

hope to solve this mitery with yours great    HELP     !!

Thanks.


SSIS package hangs on validation in Visual Studio

$
0
0
When I push my SSIS packages up to my production server (which has a different data source than my developement environment) and I try to open the package on the production server, it takes forever for to validate all the steps of the SSIS package because it's trying to validate against a datasource that isnt there, so it just waits for each element it's validating to time out. This is exceptionally annoying.

Is there a way to turn off this validation 'feature'?

The component metadata for component sharepoint list source could not be upgraded

$
0
0

I am trying to execute an existing SSIS package there is an error displaying

Error   1   Validation error.DataFlowTask:DataFlowTask:The component metadata for

"SharePoint List Source, clsid {874F7595-FB5F-40FF-96AF-FBFF8250E3EF}" could not be

upgraded to the newer version of the component.ThePerformUpgrade method failed.     


Harish

ASG Zena to execute SSIS

$
0
0
Anyone has experience in having Zena scheduler to execute SSIS packages? What is the best way Zena is able to execute SSIS package as well as to know when the SSIS package job completes?

The "component "Lookup" (138)" failed because truncation occurred

$
0
0

Hi,

I have a package below that does incremental load from production table to DW.  When running the package the first time, all runs well, the initial load of the records are done successfully without any issues.  If I rerun the package without any changes in the source data, the package somehow fails giving error below at the lookup step.  The source data has not changed, please note.  I researched online hoping finding some similar posts without much success.  Can you help shed some lights on this?  I am not sure why with the same source data, running at different time the package would give errors.   thank you

"Error: 0xC020902A at Data Flow Task, Lookup [138]: The "component "Lookup" (138)" failed because truncation occurred, and the truncation row disposition on "output column "Dest_PART_DESCRIPTION" (2064)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component."


Thank You Warmest Fanny Pied

Reg: CDC in SSIS 2012

$
0
0

Hi Team,

I was working in SQL Server 2005,2008R2 but I'm new to SQL Server 2012. CDC related tasks can be done now in SSIS 2012. I'm going thru the below link for CDC

http://www.mattmasson.com/2011/12/cdc-in-ssis-for-sql-server-2012-2/

I need to understand below parts:

1) It is mentioned that cdc related system tables will be created for a table. Will these tables be created for every table?

2) By using this, we can replace Table Difference (3rd party task). Am i right?

 

Rgds,
Shree

ODBC connection to Avaya database

$
0
0

Hi All ,

I created a ODBC connection to Avaya(CMS ) database and tested the connection , It is successful .

Then I created a SSIS package , But it was failing at "Data reader SOURCE"  saying error as  "

Error at Hal[DataReader CMS [1]]: System.Data.Odbc.OdbcException: ERROR [HY000] [Informix][Informix ODBC Driver][-11302] Insufficient Connection information was supplied ~

Please any body has any pointer to help me for this .

Thanks for the help .

Cheers,

Sandy

Looking for thoughts on the best way to repeat the header row at the top of the exported file.

$
0
0

I have a request to create an extract and they need the header row to be written twice at the top of the file.

I thought maybe a for each loop with a script that reset the increment variable one time before looping through the rest of the dataset, I am curious to hear what other options there are.

Thanks,

P


Data flow tasks over SSL

$
0
0

I am working with a vendor where I need to import data into their system. They are using some oracle based rdms as long as I have the appropriate drivers installed I can create the necessary data flow tasks to import records.

My question is a security related. The target system is outside of my network domain so I would be opening a data stream over the internet.

I came across this article http://support.microsoft.com/kb/316898/en-us talking about how to enable SSL for SQL Server.

I assume if we get SSL enabled, then I can set some SSL property to TRUE on the connection string. Will this only encrypt the login to the connection or will it also encrypt the following data stream as well? I need the data stream to be encrypted.

SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database

$
0
0

When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :

"Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."

Clicked on View button, the source data is retrieved correctly.
Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
===================================
Column information for the source and destination data could not be retrieved.
"Test" -> [dbo].[Test]:
- Cannot find column -1.
(SQL Server Import and Export Wizard)
===================================
Cannot find column -1. (System.Data) 
at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions) at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

SSIS and timestamp comparison for selection

$
0
0
Hi all.

I have a situation I do not understand how to fix.

I have two tables - one to store settings and another one the store some data.

My SQL Server is of 2008 R2 version.
My Visual Studio is of 2008 version (I tried to work in VS 2013 with SSDT of the latest version installed - all the same).

The data table has a column of timestamp data type. 

I'm using the timestamp column as determinator and I put max value of the timestamp column in the settings table after my process completes.
Then I need to get that stored value and select from the data table only records which timestamp value is bigger than one stored in the settings table.

What do I do to reproduce the situation.

I created SSIS package.

I added new variable of string data type, called it "LastTS".
Then added new "Execute SQL Task", entered "SELECT CONVERT(VARCHAR(18), LastTimestamp) FROM Parameters", mapped result set to User::LastTS variable.
Then I added new "Data Flow Task".
In that task I added "OLE DB Source" and entered "SELECT c.ProtocolType, c.[Timestamp] AS StatusChangeTime FROM Command AS c WHERE c.[RowVersion] > cast(? as binary(8))" and mapped its resultset for next processing.

Everything is ok.

Now I start my package.
My LastTS variable gets its right value.
But my "OLE DB Source" fails with message as follows:
[OLE DB Source [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E21  Description: "Invalid character value for cast specification".

What is the problem?
I found a lot of answers like "you can use string variable to work with timestamp data" but nothing helped.
What should I do to resolve my problem?
  


I want to learn SSIS

$
0
0

Hii all ..

I want to Learn SSIS ..

I have searched it on so many websites but found difficult ..

i think there should be a way to approach step by step to learn this easily ..

please guide me .. from where i can start this

Thanks 


Dilip Patil..

[Load data from excel file [1]] Error: 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 messa

$
0
0

Error

[Load data from excel file [1]] Error: 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 message

I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .

My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.

But the error still occurs .

I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work


Mudassar

Errors running SQL Agent Jobs for 64 bit SSIS packages on a 64 bit server, but Source server 32 bit

$
0
0

Hi,

I can able ran the SSIS package in BIDS, since set to false in Run64BitRuntime property.

Then I created SQL server Agent job I tried the following ways

Step 1:

Type is set as SQL Server Integration Services Packages,
Run as - SQL Server Agent Service Account
Package source - FileSystem
then Execution option tab I selected 32 bit runtime
and then run the job I am getting the below error

Message
Executed as user: CIT\svc_CS_SS2008Agent. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  7:29:17 AM  Error: 2013-11-28 07:29:18.57     Code: 0xC0014020     Source: Example Connection manager "DataSource.DataExtract"     Description: An ODBC error -1 has occurred.  End Error  Error: 2013-11-28 07:29:18.57     Code: 0xC0014009     Source: Imports20_OAC_Gifts Connection manager "DataSource.DataExtract"     Description: There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.  End Error  Error: 2013-11-28 07:29:18.59     Code: 0x0000020F     Source: DFT_Example ODBC_SRC Example [11]     Description: The AcquireConnection method call to the connection manager DataSource.DataExtract failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2013-11-28 07:29:18.59     Code: 0xC0047017     Source: DFT_Example SSIS.Pipeline     Description: ODBC_SRC Example failed validation and returned error code 0x80004005.  End Error  Error: 2013-11-2

Step 2:

Type - Operating sytem (CmdExec)
Run as - Sql Server agent service account
Command - C:\Program Files\Microsoft SQL Server\110\DTS\Binn\dtexec.exe /FILE "D:\Example\Example.dtsx" /x86  /CHECKPOINTING OFF /REPORTING E

then run the job I am getting the below error

Message
Executed as user: MIS\svc_CS_SS2008Agent. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  6:37:58 AM  Error: 2013-11-28 06:37:58.94     Code: 0xC0014020     Source: Example Connection manager "DataSource.DataExtract"     Description: An ODBC error -1 has occurred.  End Error  Error: 2013-11-28 06:37:58.96     Code: 0xC0014009     Source: Example Connection manager "DataSource.DataExtract"     Description: There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.  End Error  Error: 2013-11-28 06:37:59.01     Code: 0x0000020F     Source: DFT_Example ODBC_SRC Example [11]     Description: The AcquireConnection method call to the connection manager DataSource.DataExtract failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2013-11-28 06:37:59.07     Code: 0xC0047017     Source: DFT_Example SSIS.Pipeline     Description: ODBC_SRC Example failed validation and returned error code 0x80004005.  End Error  Error: 2013-11-28 06:37:59.12     Code: 0xC004700C     Source: DFT_Example SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2013-11-28 06:37:59.16     Code: 0xC0024107     Source: DFT_Example      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).Started:  6:37:58 AM  Finished: 6:37:59 AM  Elapsed:  1.373 seconds.  Process Exit Code 1.  The step failed.

Note:

My source server is 32 bit and development environment in 64 bit

if anybody have idea please share your knowledge

SSIS How to test SSIS packages for integration/unit testing

$
0
0

Hi Team,

Could you please guide me to understand about SSIS Testing. Is there is provision to add new Unit Test project to do it.

Thanks


XML to Flat File design issue

$
0
0

Hi,

A newbie to SSIS but was able to create an SSIS package which extracts XML data from one of the SQL server columns using "Execute SQL Task" and passes that to a for each loop container which contains an XML task for apply transform to each input xml and append it to a flat file(additonally using a script task within for each container).

All good so far but now I want to apply conditional splitting to "Execute SQL Task" in the above and additionally pipe it to the exact similar additional process(For each container doing xml task as described above) for a different kind of flat file.

If I alter the design to use the data flow approach and apply OOTB conditional split, I run into not knowing how to connect and execute more than one  foreach container and embedded XML and script task (dataflow to control flow connection)

It is easy to put everything in a sequence container and repeat the Execute SQL Task . But to me that is very inefficient.

Any creative ideas or pointers to some internet content which tells me how can this be done most efficiently.

Hope my question makes sense and let me know if you need more clarification.

Thanks in advance.



SM

How to Load excel data having fields with more than 4000 characters

$
0
0

Hi,

I am trying to load excel data which has fields with more than 4000 character, but since the output columns can accommodate maximum of 4000 characters, how can get rid of this issue.

Appreciate your help.

Thanks!

Shamsuddeen

System.Web.Services.SoapHeaderException error in script task

$
0
0

HI,

My requirement is I have to create a XML of each row from a table and push one XML data of each row to a web services. This is a syncronous call to web services where it will send the response of each row XML.

The WSDL file is having a method called MATCHXML having 4 parameters namely ControlXML, BatchXML, Username, Password. I have created the ControlXML & BatchXML through code and storing into a string variable seperatly. The WSDL alos contains 4 input called RequestUUID, ChannelID, ServiceRequestID & ServiceRequestVersion which has to be send to web services compulsory along with the method. In order to implement this, first I have added Web reference of the Web service URL into library, then invoked the method to hit the web services. The code looks likes as below:

//Initiated an object of the class from the WSDL file

Matching match = new Matching

string result = match.MatchXML(controlXML,BatchXML,Username,Password)

Then, at the above line it display the below error:

SSIS package "HunterAutomation.dtsx" starting.
Error: 0x1 at Generates XML file & Update variable: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapHeaderException: Mandatory field is not set in EAI_SOAPINPUT; Element -> Environment.eaiCommon.BTID, Environment.eaiCommon.Header.ChannelID, Environment.eaiCommon.Header.RequestUUID, Environment.eaiCommon.Header.ServiceRequestId, Environment.eaiCommon.Header.ServiceRequestVersion
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.Hunter.Matching.Match(String controlXml, String batchXml, String username, String password) in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\Web References\Hunter\Reference.cs:line 93
   at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.ScriptMain.Main() in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\ScriptMain.cs:line 1307
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
Task failed: Generates XML file & Update variable
Warning: 0x80019002 at For Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) 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.
Warning: 0x80019002 at HunterAutomation: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) 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.
SSIS package "HunterAutomation.dtsx" finished: Failure.

In order to solve the issue i have manual created the soap header code. Now Im not understanding how to send the soap header XML message along with the MATCHXML method. I am trying very hard to solve the issue from last 3 weeks but NO LUCK.

Could anyone please help me out on this and I'm already running out of my deadlines.

Copy a file from a server on the internal network to the internal network server outside - DMZ_

$
0
0

Hello Guys,

I have an activity that was created using SSIS 2008 R2, which consists of copying a file from a server within the network to a server that is outside the network DMZ.

The design is as follows I have SSIS server, the server on the internal network and server B in the DMZ. There is a SSIS package that is in the SSIS server creates the file in the server and copy that server to server B (DMZ).

When he is in design mode (C server) it works correctly, but when I install the SSIS server and set a job to run the pacage generates the following error:

The file name "\\server B\TransferenciaArquivoSSIS\hExport_File_Destino.txt" specified in the connection was not valid.

Could anyone help in this case, what is happening can?


Thanks for listening,

Antonio estima


DataTools SSIS Package Sort By Name doesn't work

$
0
0

The sort by name option in DataTools/SSIS 2012 does not appear to work correctly any more.

For example:

Initially the sort by name option works:

But after doing a Save-All/Close Solution/Re-open - it's back at the state in the first screen shot.

I first noticed this in a very large solution and thought that TFS may have something to do with it, however this test package I have created and in the screenshots above is not included in any version control.

Even if I create the packages in the order I want, say creating A Package, then B Package, then C Package, and on and on, it'll be sorted in order when I save, but when I re-open the solution it's in the reverse order of what it was previously. So, it appears that the sort by name is NOT working, and that while the sort order used in the IDE is created datetime ascending, the sort order when you re-open a solution is created datetime descending.

All in all, it makes it rather difficult to have any sort order within an SSIS solution in 2012.

Viewing all 24688 articles
Browse latest View live