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

Cannot use Microsoft.SqlServer.ManagedDTS to execute SSIS package from web app

$
0
0

 I am trying to execute an ssis package from a web application. The web app is built using asp.net 2.0 and vb as programming language. This is working fine in a machine however when i am trying to do the same in a different machine I am getting an error.The error message is given below:

Namespace or type specified in the Imports 'Microsoft.SqlServer.ManagedDTS' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at leastone public member. Make sure the imported element name doesn't use any aliases.

This error is occurring when I am trying to import the dll.

Any help in this regard is much appriciated.


SSIS Import XML task running in SQL Server Agent fails

$
0
0

I have created an SSIS package to import some XML files into my SQL2014 datawarehouse. If I run this package through the visual studio designer it works fine. The XML files are stored on a remote share accessed via UNC path. When I schedule the package to run using SQL server agent it fails with the following errors :-

Executed as user: SPRINGFIELD\MSSQL. Microsoft (R) SQL Server Execute Package Utility  Version 12.0.2000.8 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  12:01:53  Error: 2014-11-18 12:01:59.78     Code: 0xC02090CF     Source: Import Screen XML XML Source [199]     Description: There was an error setting up the mapping. The device is not ready.  End Error  Error: 2014-11-18 12:01:59.78     Code: 0xC0047019     Source: Import Screen XML SSIS.Pipeline     Description: XML Source failed the prepare phase and returned error code 0xC02090CF.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:01:53  Finished: 12:03:32  Elapsed:  98.859 seconds.  The package execution failed.  The step failed.

The user MSSQL has been granted full permissions to the remote share. If I remove these permissions then I don't get an error - but I also don't get any data imported. I have granted the MSSQL user xp_cmdexec permission. Both my SQL server database engine and agent are running as the MSSQL user.

There must be some permission step I am missing - can anyone tell me what it may be ?

learning to use lookup transformation - match value in one of two columns

$
0
0

Im a little new to using lookup transforms.  Been reading a bit, but using two columns is throwing me off.

Have a dataflow with the source having a column I want to use to lookup in a table in another DB.  The match could be in one of two columns in that table.  

If a match is found, I need a different value from the lookup table added to the source flow that is going into the destination.

How can I match on one of two columns in the lookup table, and use a totally different column added to the final input going into the destination ?  

In the Lookup configuration, I can set the lookup operation to replacing the value in the source, but I want EITHER value match from the two columns from the lookup table to go into the value that will go into the destination.

With TSQL - I would use a case statement and compare the source column to BOTH of the lookup table columns.




Script Task Debugging Error?

$
0
0

Trying make use the Message Box in with the script task.  It keeps giving me an error.  Please suggest methods to correct it.

Custom Logging in SSIS

$
0
0

Hello,

I am new to SSIS. I am trying to find a generic solution to log information for DFTs in my packages. The information that I need to log are as follows :-

PackageId

ComponentName

InputRowCount

OutputRowCount

ComponentStarttime

ComponentEndtime

All components in the DFT need to log as shown above. Please note that for Source components "InputRowCount" will be null. And for Destination components "OutputRowCount" will be null. E.g. below :

Pkg123, Extract_Data_from_Source, Null, 35546, 2014-11-16 04:16:10, 2014-11-16 04:25:05

Pkg123, Derived_Column_Add_Fields, 35546, 35546, 2014-11-16 04:25:05, 2014-11-16 04:27:09

Pkg123, Load_to_Destination, 35546, Null, 2014-11-16 04:27:16, 2014-11-16 04:32:16

Any help will be appreciated !

Thanks.

Why does the Excel source think my query has parameters?

$
0
0

Part of my current project involves converting an Excel spreadsheet having a number of tabs into an equal number of pipe-delimited flat files using an SSIS package. I've got one data flow task that opens up the excel file and selects the names of all the tabs into and object variable. A second data flow task inside a for each loop attempts to read the first 32 columns from each tab. The excel source in the second data flow task is set up to use a sql command from a variable, and the variable is an expression that substitutes the tab name into an otherwise-constant sql statement like this:

SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22,
F23, F24, F25, F26, F27, F28, F29, F30, F31, F32 FROM [Securities Portfolio$]

The "First row has column names" box in the excel connection manager is not marked.

Here's the thing: this works for most of the tabs. The one above works. However, three of them are causing the following error:

The SQL command requires 2 parameters, but the parameter mapping only has 0 parameters.

I've modified the package to print all of the SQL statements used in the log file. The only difference is in the tab name. None have any question marks, which is what I thought SSIS used to mark parameters. I can't figure out what causes this, or even how thw failing SQL queries are different than the ones that work:

SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22,
F23, F24, F25, F26, F27, F28, F29, F30, F31, F32 FROM [Capital - Part1$]

SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22,
F23, F24, F25, F26, F27, F28, F29, F30, F31, F32 FROM [Capital - Part2$]

SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22,
F23, F24, F25, F26, F27, F28, F29, F30, F31, F32 FROM [Securities Sources$]

Any help would be appreciated.

Convert RTF to Text Format through Script Component

$
0
0
I have pre written VB Code in Script Component for converting RTF Data to Plain Text 
    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
        '
        Try

            Dim enc As New System.Text.UTF8Encoding()
            Dim RTFConvert As RichTextBox = New RichTextBox
            RTFConvert.Rtf = enc.GetString(Row.Body.GetBlobData(0, Convert.ToInt32(Row.Body.Length)))
            Row.ConvertedBody.ResetBlobData()
            Row.ConvertedBody.AddBlobData(System.Text.Encoding.UTF8.GetBytes(RTFConvert.Text))
        Catch E As Exception
            E.Message.ToString()
        End Try
    End Sub

End Class
I am getting a Weird Error in which Script Component Converts RTF Data for only 9000 rows and does not convert after that.Can anyone please let me know alternative..Thanks 

Srikanth

Parsing a text file

$
0
0

I have a flat file with parent child records parent record is identified by 01 and child records from 02 to 16. here is the layout.

010101ABC0001230412192L 01.... Parent1
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
 010101ABC0001230412192L 01.... Parent2
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
04NAME...ADDRESS....01256389201419... CHILD3

Now this is what i want for ever record.

010101ABC0001230412192L 01.... 02NAME...ADDRESS....01256389201419...03NAME...ADDRESS....01256389201419...i used cursor before but this time no of child records are different.

   

bulk insert parallel load causing blocks

$
0
0

Hi

I have created a partitioned table on a date. I have then created a package that has multiple (20) Bulk insert tasks that drop bcp files over to that table.

I have noticed some blocks under sp_who2 which seems to have slowed down the load

any ideas?

(table lock is off)


eddy.a

Dynamic SSIS Package

$
0
0

Hi All,

I am having one critical requirement in ssis.

Client having existing process, where they are having 100 of SSIS package for 100 Destination tables.

Metadata of all the files are different.

Source is flat file, first files comes into to input folder and one services is running always and looking for new incoming file, once files gets in that service recognize the files and import data into the respective Importable. Once data gets imported into import table that service again comes into picture and calls the respective SSIS package for dumping data from import table to respective destination table.

Now my job is to instead of 100 SSIS package client wanted to have  single dynamic package which will dynamically load the data from Import table to destination Table.

Please suggest me the best way so that I can achieve the above mentioned requirements.

Thanks in Advance,

Vipin jha


Thankx & regards, Vipin jha MCP

0x80004005 TCP Provider: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

$
0
0

Currently receiving the above error intermittently on the SSIS 2008 Server. Noticed that there are around 14-16K connections in theTIME_WAIT status causing TCP/IP port exhaustion while only around 40-60 established ones.

The SSIS Server is on Windows Server 2008 x64 OS.

Does changing the TcpTimedWaitDelay from the default 4mins to 30 secs will fix this issue or whether it will create any other issues in the environment?

Thanks

Running SSIS 2013 project on SQL Server 2014

$
0
0
I had an SSIS package created in VS 2013 using a database in SQL Server 2012 and I was getting the error" 0xC0011008 "Error loading from XML ... This occurs when CPackage::LoadFromXML fails" when I was starting the package from a Web Service.

As a solution for that problem I created, as sugested in this forum, both the SSIS project and the Web Service in Visual Studio 2012 and continued using SQL Server 2012. That worked perfectly.

Now I have to create the same project running an instance of SQL Server 2014. I created the same project in VS 2013 but I get the same eror as before "CPackage::LoadFromXML fails".

Even using SQL Server 2014, when i run a job starting the package, i still get the error "Package migration from version 8 to version 6 failed".

What do i have to change to run the SSIS Package with SQL Server 2014?

bubbling exceptions up from sub packages

$
0
0

Hi.  We run 2012 std.  We r trying 2 get our heads around the options we would have customizing capture of exceptions that bubble up (if that is possible) to our master pkg from sub pkgs.  This question is independent of ssis's sys logging.

My recollection is that ssis tells us a lot (maybe too much repetition) about exceptions.  Our goal is to customize how we deal with exceptions at lower levels in the master pkg itself (perhaps in the .net service that calls the mstr if that can be bubbled up) so that we aren't incorporating the same custom logging at every level of the ssis call "tree/structure".

We capture some exceptions already in vars by incorporating try catch blocks in our c# scripts.  But haven't addressed yet how those might be bubbled up.  It is hoped that whatever we do with these can mimic what we do with exceptions thrown by other ssis components where there is no c# code to catch the exception.

Can the community get us started?


send mail task +cloud environment

$
0
0

SEND MAIL TASK  configuration(cloud environment) in windows authentication THROWING ERROR LIKE windows authentication is not authorized

If i select  SSL its throwing error like user authentication is not correct.

------------------------------------------------------------------------------------------------------------------------------------------------

if i use script task and if i pas values for smtp server name,username,port name and password its working fine.

 But i have to do through sendmail task 

in cloud environment send mail task will work or not.......?

 

Building SSIS Packages from TFS Build 2013

$
0
0

Hi, 

Can you please suggest me the MSBuild Arguments for Building the SSIS Packages usingTFSBuild2013

Thanks, Krishna



The requested OLE DB provider SQLNCLI10.1 is not registered.

$
0
0

I have several SSIS packages that Were created in BIDS 2008.  We have to migrate those servers to Windows 2012 so I had SQL 2012 installed on there as well.  

I've converted the SSIS packages in BIDS 2012.  When I deployed to the new servers and run one, I get the following:

Error: 2014-11-19 08:33:20.29
   Code: 0xC0209302
   Source: BidToolLoad_Daily Connection manager "LabTestCatalog_OLE_DB"
   Description: The requested OLE DB provider SQLNCLI10.1 is not registered. If
the 32-bit driver is not installed, run the package in 64-bit mode. Error code:
0x00000000.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".
End Error      

What do I have configured wrong?  I've read something about the provider needing to be changed to use a different one?, but I'm not sure what I'm supposed to do.  Any help would be appreciated.              

Here's the SQL Server Execute Package Utility info:

Microsoft (R) SQL Server Execute Package Utility
Version 11.0.2100.60 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved.

SQL Server Version running SSIS Package

$
0
0

I´m trying to run an SSIS 2013 Package in SQL Server 2014 but i keep getting the error "package migration from version 8 to version 6 failed with error".

So i ckecked the vertion in SQL Server 2014 using a T-SQL query:

SELECT @@VERSION

and i got:

"Microsoft SQL Server 2012 (SP1) - 11.0.3153.0 (X64) Jul 22 2014 15:26:36 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) "

The response for this query should be SQL Server 2014, right?

What should i do to alter this?

[Data Conversion [3975]] Error: Data conversion failed while converting column "ABCD" (1383) to column "Copy of ABCD" (3985). The conversion returned status value 4 and status text "Text was truncated or one or more characters had no match

$
0
0

I am having OLE DB source (IBM DB2). Couple of columns have junk values (and those columns are defined as unicode DT_WSTR as OleDBReturnCharAsWhar = 1 by default).

But in the destination SQL DB, the datatype is VARCHAR. So when I am converting the values the job is failing. How can I convert these values for a successful load?

I tried CAST/CONVERT at the source (CONVERT (VARCHAR(1),ABCD)), Derived column ((DT_STR,1,1252) ABCD) and data conversion task, but all are failing when they encounter the junk value.

Can someone please help.. Thanks...

SSDT BI Upgrade Advisor for SQL2012 to SQL2014

$
0
0

I tried to run the upgrade advisor against my SSIS 2012 files to see what the migration will cause to them. I got my solution from TFS and did a build, after that I pointet the upgrade advisor to the location of the SSIS files, however it always comes back with this error message:

TITLE: Upgrade Advisor Progress
------------------------------

Upgrade Advisor cannot locate the SQL Server 2005 or SQL Server 2008 Integration Services files that it requires to analyze packages. The installation of Integration Services on this computer has already been upgraded to SQL Server 2014. To upgrade existing Integration Services packages without analyzing them, use the SSIS Package Upgrade Wizard.

------------------------------
BUTTONS:

OK
------------------------------

What did I miss here ?

Date expression of Derived column

$
0
0

Hello - I am creating a derived column with "Month" and Year - the expression is - Month(getdate())+"-"+Year(Getdate()) but I am getting red signal ! and the destination column is also date/time in Access ... so what I am doing wrong ?

Thank you,

Kashyap

Viewing all 24688 articles
Browse latest View live


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