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

Passing OData Source to Power query within Data Flow

$
0
0

HI, 

I want to connect to Sharepoint Online Folder using Power Query in SSIS Data Flow. As I can not do that because of data connection problems in Power Query, I'm trying to use OData Source before Power Query, and then pass table gathered by OData Source to Power Query as Input table. PRoblem is I do not know how to pass OData Source Output table to Power Query input table.

Thanks for any help


Attach if file exists

$
0
0

Hi everyone,

I am using script task to send an email that could have 2 attachments; File A and File B.

Currently, it is sending email only when both files exists. However, there are instances when only one file will be available and I want the mail to send only one attachment.

I created 2 variables for each of the files and use to attach them separately

email.Attachments.Add(FileA)
email.Attachments.Add(FileB)

Can some advise what I am doing wrong.

Thanks!


me

Transfer server objects only the if data is updated in the source table SSIS-package implementation

$
0
0

Hi,

I have around 40 source table on server A.

I will be using 4- TSO (Transfer Server Object) tasks,split for 10 tables each to transfer the data to server B as below in the pic.(will be a truncate and load).

But I want to run this seq container only if the data on the source table has been updated.There is a field-'dateofupdation' in every table which changes as the data is updated.

So can anyone please advice me on the setup of package/precedence constraint?

Thanks in Advance

Jenni




Failed to retrieve long data for column

$
0
0
Hi,

      I am calling an SSIS package inside a SQL Server Agent job step. Almost half the time, the package fails with the following error and it works fine other times. The column that it complains about is a nvarchar(max) column and the maximum data length for the records we have in that column is around 3600.

Message

Executed as user: abcdef. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:30:00 PM  Error: 2010-03-03 16:30:02.84     Code: 0xC0047070     Source: Data Flow Task 1      Description:   End Error  Error: 2010-03-03 16:30:02.84     Code: 0x80004005     Source: Data Flow Task 1      Description:   End Error  Error: 2010-03-03 16:30:02.84     Code: 0xC0208266     Source: Data Flow Task 1      Description:   End Error  Error: 2010-03-03 16:30:02.84     Code: 0xC0208265     Source: Data Flow Task 1 Source - Query [1]     Description: Failed to retrieve long data for column "Response".  End Error  Error: 2010-03-03 16:30:02.84     Code: 0xC020901C     Source: Data Flow Task 1 Source - Query [1]     Description: There was an error with output "OLE DB Source Output" (11) on component "Source - Query" (1). The column status returned was: "DBSTATUS_UNAVAILABLE".  End Error  Error: 2010-03-03 16:30:02.84     Code: 0xC0209029     Source: Data Flow Task 1 Source - Query [1]     Description: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output "OLE DB Source Output" (11)" failed because error code 0xC0209071 occurred, and the error row disposition on "component "Source - Query" (1)" 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.  End Error  Error: 2010-03-03 16:30:02.84     Code: 0xC0047038     Source: Data Flow Task 1 SSIS.Pipeline     Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - Query" (1) returned error code 0xC0209029.  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.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:30:00 PM  Finished: 4:30:02 PM  Elapsed:  2.012 seconds.  The package execution failed.  The step failed.

 Could you please let me know why this error is happening randomly and how I could avoid this error?

Thanks,
JayaMS

SSIS Web Serivce Task getting error 'SSL certificate response obtained from the server was not valid. Cannot process the request'

$
0
0

Hi

I am trying to add web service reference using Web Service task and the web service is having https protocol. after adding url in Http Connection manager i can successfully connect to server. I tried it using TestConnection but while loading WSDL getting an error 

TITLE: Web Service Task
------------------------------

SSL certificate response obtained from the server was not valid. Cannot process the request.


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

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

Do i need to install any certificate?

DTS in SQL Server Management Studio 2008

$
0
0

I'm running SQL Sever 2008 Management Studio (Developer Edition) on an XP machine.
Unfortunately I still have to manage some DTS packages for SQL Server 2000, and wanted to do that without having to install SQL Server 2000 Enterprise Manager.

In SQL Server 2008 Object Explorer, going to Management->Legacy->Data Transformation Services, I could see all the DTS packages, however right-clicking and selecting open gave me this error:

SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, "SQL Server 2000 DTS Designer Components" to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI)

So these are the steps I followed that worked for me, and now I could open a design-time DTS package window from SSMS 2008:

1- Download and isntall the latest Microsoft SQL Server 2005 Backward Compatibility Components (I know it says 2005 but that's what you need for SSMS 2008 as well.  Also make sure you get the latest release, the one in this link is for December 2008)

http://www.microsoft.com/downloads/details.aspx?FamilyID=536fd7d5-013f-49bc-9fc7-77dede4bb075&displaylang=en

2- Download and install the latest Microsoft SQL Server 2000 DTS Designer Components:

http://www.microsoft.com/downloads/details.aspx?FamilyID=536fd7d5-013f-49bc-9fc7-77dede4bb075&displaylang=en

3- At this point try right-clicking on a DTS package in SSMS 2008 and select Open, if you still get the error, follow these steps that I got from the reference site below:

 To ensure that the DTS designer can be used in SQL Server Management Studio

  1. Copy the files, SEMSFC.DLL, SQLGUI.DLL, and SQLSVC.DLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn folder to the %ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE folder.

  2. Copy the files, SEMSFC.RLL, SQLGUI.RLL, and SQLSVC.RLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033 folder to the %ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Resources\1033 folder.

Note that the second step is the RLL files (not DLL).  I also added "\1033" at the end of the paths shown on the reference site.

(Reference site: http://msdn.microsoft.com/en-us/library/ms143755.aspx )

Enjoy...

SSIS Expression to handle NULLs in multiple columns

$
0
0
I have an OLEdb source that has some nulls, it has 50 columns and im trying to extract the rows that have NULLs to Bad data destination, the expression that I had for the conditional split is 

    ISNULL( [StudentName] ) == TRUE


but that means I have to repeat it for all the columns that I have and I'm wondering if there's another way to handle this. especially since I have multiple tables to process. 
Thanks

handling phone number data in SSIS

$
0
0

Hello,

I'm trying to use conditional split to take out the numbers that are not formatted correctly, here is the expression that I have

LEN([Home Phone]) == 10 ? (DT_STR,12,1252)SUBSTRING([Home Phone],1,3) + "-" + SUBSTRING([Home Phone],4,3) + "-" + SUBSTRING([Home Phone],7,4) : LTRIM(RTRIM([Home Phone])

however I'm getting this error, I'm sure about my columns names so I'm not sure why i keep getting this error

Error at Data Flow Task [Conditional Split [2]]: Attempt to parse the expression "LEN([Home Phone]) == 10 ? (DT_STR,12,1252)SUBSTRING([Home Phone],1,3) + "-" + SUBSTRING([Home Phone],4,3) + "-" + SUBSTRING([Home Phone],7,4) : LTRIM(RTRIM([Home Phone])" failed. The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.


Azure SSIS-IR exporting data to access db file failed - Microsoft.Jet.OLEDB.4.0 is not registered

$
0
0

I have some DTSX packages that exporting data from SQLServer to MDB file.

ConnectionString to connect to MDB file

Data Source=\\***\Temp\Temp.mdb;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;OLE DB Services=0;

Previously, I used the following code to execute the packages.

Microsoft.SqlServer.Dts.Runtime.Application dtsApplication = new Microsoft.SqlServer.Dts.Runtime.Application();
Microsoft.SqlServer.Dts.Runtime.Package package = dtsApplication.LoadPackage(packagePath, null);
Microsoft.SqlServer.Dts.Runtime.DTSExecResult result = package.Execute();

And now I need to migrate the environment to Azure SSIS IR. After executing the package, some error occurred.

The requested OLE DB provider Microsoft.Jet.OLEDB.4.0 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode.

After some research, I found a solution that to configure a self-hosted IR as a proxy for an Azure-SSIS IR, but I don't want to setup it.

What else should I do?




Does anyone have experience of using securetrading.net as a data source within SSIS

$
0
0

Hi,

Does anyone have experience of using securetrading.net as a data source within SSIS ? If so I would greatly appreciate your help.

Kind Regards, 

Kieran.


Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

how to find out that SSIS Installed in SQLServer Using C#?

$
0
0

i'm writing a windows form application using C# . i use 

  ssisServer = new IntegrationServices(ssisConnection); 

To run and working with SSIS Packages But Before running the Package i wanted To Make sure the user run the application in the correct system and sql server has the SSIS on It's Sql Server.so how can i find whether ssis is installed on the server or not in C#?

SSIS 2019, MSOLEDBSQL, Thread safe? Connection issue

$
0
0

Hi,
I have a "ETL framework" built in SSIS. It has been running fine for several year, but when trying to run it on SQL Server 2019 I´m getting into trouble.

Earlier I was using an OLE DB connection manager with the "SQL Server Native Client" (SQLNCLI11.1) provider.
Googling around I found that this one is deprecated and shouldn´t be used together with SQL Server 2019 so I changed to the new "Microsoft OLE DB Driver for SQL Server" (MSOLEDBSQL.1).
First I though that this solved my problem, but I still get random errors so let me explain the problem in depth.

I´ve spent a week now trying to figure out the cause.

I´ve create a small SSIS project from scratch just to be able to reproduce the problem.

The project consist of 2 packages:

 

"Sub Package" - Contains one "Execute SQL Task" (just runs simple SQL statement "SELECT 1") using an OLE DB Connection (Project Level Connection Manager).
This OLE DB Connection uses the OLE DB Provider "Microsoft OLE DB Driver for SQL Server" (MSOLEDBSQL.1).
The ConnectionString of the OLE DB Connection is set through an Expression. In this test package the Expression is "hardcoded" as:
"Data Source=my_server_name;Initial Catalog=FrameWorkETL;Provider=MSOLEDBSQL.1;Integrated Security=SSPI;Auto Translate=False;"

"Main Package" - Contain 2 For Loop containers running in parallell. Each loop runs for 1000 laps and each lap it runs an Execute Package Task with "Sub Package".

I´m running the "Main Package" under SQL Server Agent.

Sometimes the package runs fine, but many times I randomly get different error messages.

Example error 1:

Package:Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005. 
An OLE DB record is available.  Source: "Microsoft OLE DB Driver for SQL Server
Hresult: 0x80004005  Description: "Invalid connection string attribute".  

Example error 2:

Package:Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E4D. 
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server
Hresult: 0x80040E4D  Description: "Invalid authorization specification".  

Example Error 3:

Package:Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E73. 
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components
Hresult: 0x80040E73  Description: "Format of the initialization string does not conform to the OLE DB specification.". 

It is olso common that the package fails with "Unexpected Termination". Then it looks like this in the Event Viewer:

Faulting application name: ISServerExec.exe, version: 15.0.2000.5, time stamp: 0x5d8a8258
Faulting module name: ntdll.dll, version: 10.0.17763.292, time stamp: 0x7ded7809
Exception code: 0xc0000374
Fault offset: 0x00000000000faf49
Faulting process id: 0x1a18
Faulting application start time: 0x01d62865c4ae326b
Faulting application path: C:\Program Files\Microsoft SQL Server\150\DTS\Binn\ISServerExec.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 5348cd22-fdea-46aa-a908-5848856a5e53
Faulting package full name:
Faulting package-relative application ID:

Looking in the SSIS internal log table [internal].[event_message_context] I can see that the Connectionstring sometimes get corrupt.
It gets corrupt in different ways which might explain why I get different error messages.

Example of corrupt connectionstring from log table:
Data Source=my_server_name;Initial Catalog=FrameWorkETL;Provider=MSOLEDBSQL.1;      (missing the last part of the string).
Data Source=my_server_name;Initial Catalog=FrameWorkETL;Provider=     (also missing some part of the string).
Data Source=my_server_name;Initial Catalog=FrameWorkETL;Provider=MSOLEDBSQL.1;Integrated Security=SSPI;Auto Translate=False;MSOLEDBSQL.1;Integrated Security=SSPI;Auto Translate=False;  (extra parts added last in the string)

I´ve only been able to reproduce the problem under the following circumstances:

  •  The Connection Manager uses the OLE DB Provider "Microsoft OLE DB Driver for SQL Server" (MSOLEDBSQL.1) - Might be the same problem with SQLNCLI11.1 provider. The package runs fine if I use for example an ADO.Net Connection Manager with SqlClient Data Provider.
  • The Connectionstring of the Connection Manager is set through an Expression. - The package runs fine if the connectionstring is not set through an Expression.
  • There are "tasks" running in parallel trying to initialize a database connection. - The package runs fine if the "Main Package" only has one for loop. = No connections are initialized in parallell.
  • The package runs on a SQL Server 2019 machine. - The Package runs fine on for example a SQL Server 2017 (even if the connection manager connects to a SQL Server 2019 database).

My environment:
VM with Windows Server 2019 standard
SQL Server 2019 (15.0.4033.1) CU4 (latest CU).
MSOLEDB Provider version 18.3 (latest)

Any help appreciated.

Regards
Stefan




Issue is getting leading 0 in values

$
0
0

I am importing data from excel to SQL Server 2016 using SSIS. Field is Latitude & Longitude

I am using formula (DT_STR,255,1252)((DT_NUMERIC,9,6)(Latitude)) to import the values in Varchar(255) column. I am facing the issue when Latitude & Longitude starts with 0 eg (-0.737610 or 0.737610).

After executing the package when I saw the values in Database I saw like (-.737610 or .737610) where leading 0 will get disappear.

Can anyone please help me resolve my problem.

Installation of SQL server 2016 and Visual Studio 2015

$
0
0

Hi,

In our development server, we have SQL server 2016 installed already and we used Visual Studio 2015 to create SSIS packages. Now, I have been asked to move everything to a new QA server and I have to install all the softwares which are dev to  QA server. Can you please help me on this please? I have lot of confusions in installing the softwares. In the new server

Do I need to install SQL server 2016 first or Visual studio first?

Or If I install SQL server 2016,  Visual Studio will be installed by default? 

Do I need to install SSMS separately or Does it come with SQL server 2016 installation?

Do I need to install SSDT separately or Does it come with Visual Studio 2015?

Can some experts help me please?  It is really helpful for me.

 

[SharePoint List Source [296]] Error: Microsoft.SqlServer.Dts.Pipeline.DoesNotFitBufferException: The value is too large to fit in the column data area of the buffer.

$
0
0

I have a running package which reads data from SharePoint List and dumps into SQL tables. I have 3 new list columns which I want to update into SQL table.

1) I opened container for this list and table

2) Refreshed mapping tab in SharePoint list source item properties

3) mapped columns in OLE DB Destination

When I ran this container, i got following error.


[SharePoint List Source [296]] Error: Microsoft.SqlServer.Dts.Pipeline.DoesNotFitBufferException: The value is too large to fit in the column data area of the buffer.at Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer.SetString(Int32 columnIndex, String value)at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)

Soruce Sharepoint list columns are string (255 chars) and date time. Thus I tried setting external column size as 260 chars and output columns as 300 chars, to avoid any truncation or issues. But still same issue.

Question: How can I verify which column or data is causing issue?

Container snapshot

DataFlow snap


How to remove Footer content in Excel file and load the file

$
0
0

Hi All,

I have a requirement to remove header and the footer content in the excel and load the excel to a flat file.

I was able to remove header by adding the openrow option and mentioned the cell from which load should begin.

However, i don t see any options available in SSIS to remove the footer content in Excel. Pls let me know how can we achievethis.

Here i should be using any SQL connection. Its a inmemory pipeline processing.

Thanks

How to stop at a blank row in Excel

$
0
0

Hi:

I am importing a .xlsx into at SQL Server 2014 table.  I would like to import each row with an ID and stop at the notes that are listed at the bottom.  Please see attached image. How do I tell my SSIS Data Task to stop importing at the first blank row?  Or I am open to any suggestions.  P.S.  I never know how many rows of data I may have so I can not use a fixed row number to stop at.

Thank you.

SSIS - continue loop on error

$
0
0

Hello,

I have a SSIS report moving excel files into a SQL DB.  The excel files get moved from a Input folder into an Archive folder as they get moved into the DB.  Everything is working fine.

I recently added a Rejected folder to move error files with different formats.  I'm struggling to get the ForEachLoop to continue on error.  The file moves on failure into the Rejected Folder but then it stops running the loop.

I've went into the Event Handler and set Propagate , OnError , Boolean, = False but it doesn't seem to continue the loop.

Any help or direction would be greatly appreciated.

Thanks,

Tim


x

Error: Microsoft.jet.oledb.4.0 not registered on local machine when running the package from SQL Job

$
0
0

Hi.

I am using Windows Server 2016. I have created a SSIS package in Visual studio which loads data from Excel and moves to SQL table ( script task functionality using c# )

The above functionality works fine when run in Visual studio.  Microsoft Visual studio 2015 shell - version 4.7

Target server version: SQL Server 2016

The excel files I have is of type xls and xlsx

I published the package from visual studio and created a custom job inside the SQL Server Agent and assigned the path of the package to the job.

On running the application from the SQL Server Agent Job, I am getting error as  - Microsoft.jet.oledb.4.0 not registered on local machine. But it works , when run from visual studio.

How to fix this?

Thanks

Unable to deploy SSIS package due to A required Prvilage not held by the client

$
0
0

I have an instance of SQL Server 2016 and I'm using SSDT VS 2017. I've created a simple package that loads data from a flat file source and loads it to a database. I have full administrative rights to the machine and SQL Server and the package runs fine in the designer. I have already created a catalogue however when I come to deploy the package i get the following error:

TITLE: SQL Server Integration Services
------------------------------

A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal": 
System.ComponentModel.Win32Exception: A required privilege is not held by the client
System.ComponentModel.Win32Exception: 
   at Microsoft.SqlServer.IntegrationServices.Server.ISServerProcess.StartProcess(Boolean bSuspendThread)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName)
. (Microsoft SQL Server, Error: 6522)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.5081&EvtSrc=MSSQLServer&EvtID=6522&LinkId=20476

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

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

I even tried to export the package and create an agent job to run it that way but that errors out too, although I can't find the reason why and it's not something I am familiar with. I've searched the internet far and wide but no matter what I try I cannot seem to get any SSIS job working. Any ideas where to begin?

thanks in advance

Viewing all 24688 articles
Browse latest View live


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