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

Output parameters in OLEDB Command component - SSIS 2008

$
0
0

I have a package that I developed in SSIS 2005 and recently ported to 2008. Everything runs great except an OLE DB Command component that calls a stored procedure that uses output parameters.

When I try to run this, I get this error:

Error: 0xC0202009 at Data Flow Task, OLE DB Command [100]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Syntax error, permission violation, or other nonspecific error".
Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "OLE DB Command" (100) failed the pre-execute phase and returned error code 0xC0202009.

When I do the same thing in SSIS2005, it works fine.

So I setup a new package with 1 data flow. In that data flow, I added a source component, an OLE DB Command, and a destination.  I then tested this with a stored procedure that took no parameters. It worked fine.

I then tested it with a stored procedure with 1 parameter defined as OUTPUT. This generated the error.

 

Is there an issue with output parameters in an OLE DB Command in SSIS 2008?

 

Thanks!


http://bobp1339.blogspot.com

NULL vs. Empty strings in CSV import

$
0
0

I am importing data from a CSV file into a SQLServer database via SSIS. I have a problem with string columns, in that SSIS inserts an empty string (eg. "") for a null column (eg ,,) by default. I can of course select the "retain null values" option in the Flat File Source Editor, however when I do this, it then treats zero-length strings (eg. "") as null as well as empty columns (eg ,,). My desired behaviour for string columns is below:

CSVDatabase

,,NULL

""""

Basically I'd like to know if there is a way of handling this distinction without resorting to derived columns, as I have 79 tables to process, each with multiple string columns so I'd really rather avoid that option.

Thanks for your help!

Can someone help me for "ROW-00060: Internal error: [dainsert,16]

$
0
0

Hi,

 

Can somebody help regarding the following error message:

Source DB: SQL 2005, using MS OLDEDB Provider for SQL

Destination: Oracle 10g, using Oracle Provider for OLEDB.

 

In a table “EventLog” I have 800,000 rows and using OLEDB Source(SQL) and OLEDB Destination(Oracle) controls. After loading 702,000 rows I am getting the following error and stops the flow:

 

[D-EventLog [32443]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ROW-00060: Internal error: [dainsert,16]7".

[D-EventLog [32443]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (32456)" failed because error code 0xC020907B occurred, and the error row disposition on "input "OLE DB Destination Input" (32456)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

[DTS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "D-EventLog" (32443) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

[S-EventLog [32386]] Error: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.

[DTS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "S-EventLog" (32386) returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

 

I can see some buffer related issue here, but can somebody guide me hot to come out of this .

 

For the Data Flow Control properties that I have(default values):

<!--[if !supportLists]-->i)                    <!--[endif]-->DefaultBufferMaxRows=10000

<!--[if !supportLists]-->ii)                   <!--[endif]-->DefaultBufferSize= 10485760

<!--[if !supportLists]-->iii)                 <!--[endif]-->EngineThreads=5

 

 

 

Thanks

Sreenaiah

SSIS Package execution result showing only question marks

$
0
0

Hi All,

My package which is deployed on SQL Server and running from a SQL JOB is showing question marks (shown in below image) in execution result of job history. Anyone know the reason why this is happening?

Issue Background - I encountered an error during the package execution then i downloaded the package from SQL Server and did some changes and again uploaded to SQL Server with Protection level "EncryptAllWithPassword". Since then i am getting this problem.

Even if i change the ProtectionLevel again and make it "DoNotSaveSensitive" and uploaded the package to SQL Server, i still get these question marks.

QuestionMarks


Sushant

SSIS 2008 WMI Event Watcher Task Question

$
0
0

I have an SSIS process that uses an Execute Process Task to convert an ASCII file to EBCDIC. This piece works just fine. If there are any errors during the conversion process, an ebcdic.err log file is created. I am using a WMI Event Watcher Task to check for this file; if the file exists, the task should fail but if the file is not present then the task should be successful and move on to the next step. At the moment, the task reports success whether the file is present or not. This is the only piece of the package holding me up and I need some help.

Here is how I've configured the WMI Connection Manager Editor
Name: DWPROD
Description: Watch for ebcdic.err file
Server name: \\DWPROD
Namespace: \root\cimv2
Use Windows Authentication is checked and the connection tests successfully.

Here is how I've configured the WMI Event Watcher Task

Under General... Nothing has been changed.

Under WMI Options...
WQLConnection is set to "DWPROD"
WQLQuerySourceType is set to "Direct input"
WQLQuerySource is set to:

SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" AND TargetInstance.PartComponent = "CIM_DataFile.Name=\"C:\\\\vedit\\\\ebcdic.err\""

ActionAtEvent is set to "Log the event and fire the SSIS event".

AfterEvent is set to "Return with failure".
ActionAtTimeout is set to "Log the timeout and fire the SSIS event".
AfterTimeout is set to "Return with success".
NumberOfEvents is set to "1".
Timeout is set to "10".

Under Expressions... Nothing has been changed.

I suspect that the issue is with the WQLQuerySource, but every other syntax I have tried either throws an "Unparsable query" exception or a "Class is not an event class" error. Any help would be greatly appreciated.

Thanks in advance,
Alex

SSIS Web Service

$
0
0

I am totally new to SSIS so can you tell what is the most straight forward to call a Service?

Use Web Service Task or Script task and do you have any basic examples for me to go by?

Unable to connect to Oracle from SQL Server 2008 R2

$
0
0

Hi,

On clicking on the "Test Connection" button within the Oracle Connection Manager within SSIS I get the following error; -

"Test connection failed because of an error in initializing provider. ORA-12154. TNS:could not resolve the connect identifier specified"

Any help would be greatly appreciated.

Thanks in advance.

Kieran.


If you have found any of my posts helpful then please vote them as helpful. Kieran Patrick Wood MCTS BI, PGD SoftDev (Open), MBCS, MCC http://uk.linkedin.com/in/kieranpatrickwood

SSIS : Import from CSV file to database table

$
0
0

Dear Experts,

SSIS falt file to daatbase table import is only importing 9899 (1 header + 9898) rows though the file has 19000+ rows and giving a success message. Is there a limitation in importing flat file data to table only 9899 rows at once?? I have never seen this before..and why its showing as success where as only half of the data is imported?

ISSUE BACKGROUND

I am using SQL Server 2005 Sp4 (very recently applied SP4). I am importing data from Acive directory in a CSV file and then importing that data to SQL table and using it for reportig purpose. the import job runs once a day in the midnight.

Since past 18 months I am managing this and have been facing issues in data import..the import fails many times with very strange error and takes lots of sleeples nigfht to fix it.

Recently, it failed because the column delimiter for a particular column was not available. This error is very common and it sometimes works and sometimes it never gets fixed and I have drop that column from importing.

I only came to know about the failure, when I found that data is missing from my table, saying this I mean to say though the package was importing only a part of the data and was failing to import the rest of the data, it was regstering as success in the job history...strange...

Now, to fix the error, I dropped that particular column from importing and rerun the package. its only importing 9898 rows and giving a success message though my flat file has 19000+ rows. Why??? What might be the cause and why exactly 9898 rows???


Thanks



Truncate more the one oracle tables using SSIS execute sql task. (error-ora-00911:invalid Charater)

$
0
0

Hi All,

I want trucate oracle tables using ssis sql task.

I took execute sql tast editor for that, my conndection type is ado.net , sqlsourcetype direct input

my query

truncate table tab1,

truncate table tab2,

truncate table tab3

I am getting error ora-00911 invalid character.

I also try to put ; after statement and remove , from statement. still not working.

Thanks.

File NOT used getting "File in use" error

$
0
0

My SSIS package is totally vanilla - read a file, upload to a database and look up a couple of values, and then write out the data to another file. When I run it from BIDS through the debugger, I always get "File in use by another process" error on the input file. However, the file is NOT in use in any way. Even with the debugger still running, I am able to delete and rename the file via Windows Explorer. I've tried changing the name of the file, constructing the connection string using a variable in an expression, defining the file connection directlywithout an expression, etc. Anyone have an idea what's going on?

BTW, this is SQL 2008.

SSIS XML source error

$
0
0

I have a XML file with four columns that I receive on a daily basis which I am loading into the table in SQL Server. The same XML file that I receive, sometimes does not have data in it and it is empty. How can I parse both of these in a SSIS package. It is giving me error if there are no columns in XML file that I receive.

Sample XML file that I receive daily.:

<?xml version="1.0" encoding="utf-8" ?> <REJECT> <ID>500</ID> <CLAIM><CLAIMNUM>2</CLAIMNUM> <WARNING>Phone Number is Invalid!</WARNING> </CLAIM></REJECT>

Sample XML file that I receive on certain days which does not have data in it.:

<?xml version="1.0" encoding="utf-8" ?> <REJECT /> 

How can I load these into the table regardless of which I receive. I am using a generate XSD option for the XSD.

Flat File Format (Comma separated with Fixed Length)

$
0
0

I need to display the flat file with fixed width comma separated output

Like that

Thanks.


ZK

Moving a file to a sharepoint folder using SSIS

$
0
0

I have been searching the forums trying to find a way of moving a file to a specific folder in Sharepoint.

I worked out that using the file system task you can plug in the UNC address of the folder as a destination.

Its not working - I was getting an 'access denied' error message - I'm guessing the sharepoint folder requires some sort of access?  How can I add this (I don't control the sharepoint folder).

[File System Task] Error: An error occurred with the following error message: "Access to the path is denied.".

I also read that you could use a web service so I tried the wsdl command and got this:


D:\Program Files\Microsoft Visual Studio 10.0\VC>wsdl http://spserveraddress/_vti_bin
/Copy.asmx
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: There was an error processing 'http://spserveraddress/_vti_bin/Copy.asmx'.
  - There was an error downloading 'http://spserveraddress/_vti_bin/Copy.asmx'.
  - The request failed with HTTP status 401: Unauthorized.

If you would like more help, please type "wsdl /?".

So I'm at a bit of a loss here.  Any help greatly appreciated.


SSIS task failed to load(Script task)

$
0
0

Hi,

I am running a SSIS package using a bat file. When I run the bat file it gives the error ,'The task has failed to load.The contact information for the task is " " '. Can you let me know how to resolve this?

I am running this on Sql server 2008 . I have seen previous posts with same error saying, the problem is with the installation of SQL Server .What components should I install additionally or what are the components that did not install correctly?

Thanks

SSIS OLE DB Source editor does not load table names

$
0
0

Hi Everyone,

I work as a database support Engineer with not much knowledge about SSIS. Our offshore team who is working on SSIS are facing an issue from yesterday which I am not able to fix till now.

Our offshore team is trying to connect and fetch data from a Sybase ASE 12.5.2 database. The provider name they use is called "Sybase ASE OLE DB provider for sybase". They are able to successfully connect to the database but in the OLE DB source editor the table names are not populated in the drop down list. The OLE DB source editor has the following field values:

1. OLE DB connection manager is set to the OLE DB connection that we have created.

2. Data access mode drop down list is set to Table or view

3. Name of the table or view drop down list: The problem is with this drop down list which is not loading the table names.

We suspected that the issue is due to lack of privileges for Sybase user but we found that the user has all the required permissions on the database. After some googling we found that there is no 64 bit driver for Sybase ASE which may be causing this problem. But the development machine was 32 bit so the second possibility was also eliminated.

I am left with no options. I tried to replicate the same in my machine but I don't have the appropriate drivers and Java is not setup on my machine. To install these things we have undergo a long process of rising tickets which will take at least a week.

We are not sure whether the issue is from our side or if it is a configuration mistake done by the team working on SSIS.

Please shed some light and guide me through this.

Thanks and Regards,

Nanda


Regards Nanda



SSIS Script Component destinantion to WCF service

$
0
0

Hi

I have been struggling to find a sensible answert to this issue.

Using VS2008, we have a package attempting to use a WCF service which has some basic functionality to post user notes to a table.  The service has been proven to work outside of the SSIS call.

When calling in a script component destination the below error is received.  Any direction would be appreciated.  So far we have tried various changes to the app.config, including fully qualifying the contract name.

Could not find default endpoint element that references contract 'DataService.VanquisDataService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)

at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)

at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)

at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName)

at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()

at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()

at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)

at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()

at System.ServiceModel.ClientBase`1..ctor()

at SC_51f3bcd084854b96b8cd4e20323a03d1.csproj.DataService.VanquisDataServiceClient..ctor()

at ScriptMain.Input0_ProcessInputRow(Input0Buffer Row)

at UserComponent.Input0_ProcessInput(Input0Buffer Buffer)

at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)

How do I set a ComponentID for a Custom Dataflow component (derived from DtsPipelineComponent).

$
0
0
Data flow components have different ComponentID's depending on what type of component they are.  If I build a custom dataflow component I would want it to have a ComponentID that is different from the standard 'out of the box' components.   Is there some way that I can explicitly set the componentID of a custom component?  By default they have the ComponentID of a 'Script Component' (this is also the case for the MS samples including 'RemoveDuplicatesCS').  This does not seem correct.   I have other code that interrogates SSIS packages and does different things depending on what type of component something is.  Is the ComponentID the 'best' way to programmatically determine the type of a given component or is there a 'better way' that is supported by the SSIS object model.  If the ComponentID is the best thing to use is there some way I can give my custom components different ComponentID's from the 'Out of the box' script component.   (I have just extensively edited this as first post got truncated and format was mangled - hopefully this might be a bit better). 

Name 'dts' is not declared

$
0
0

I've inherited a SSIS 2005 task that I've moved into SSIS 2008. In the task besides the ScriptMain.vb there is a Reference.vb. The reference.vb was modified to the following: 

Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists

It is part of the following:

 Public Sub New()
            MyBase.New()
            Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists
            If (Me.IsLocalFileSystemWebService(Me.Url) = True) Then
                Me.UseDefaultCredentials = True
                Me.useDefaultCredentialsSetExplicitly = False
            Else
                Me.useDefaultCredentialsSetExplicitly = True
            End If
        End Sub

Since the DTS object is not a static global object like in SSIS 2005, it is throwing the "Name 'dts' is not declared" error.

How can I correct this so it works?

SSIS Log Analyzer

analyzing log files w/ SSIS and SQL Server - any tutorials?

$
0
0

analyzing log files w/ SSIS and SQL Server - any tutorials? Thanks.....

consider the data source as IIS log files.... can we read them using SSIS? and store it in SQL Server? And then do some "analysis"?

Is this a possible scenario?

what sort of problems do you see coming?

Viewing all 24688 articles
Browse latest View live


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