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

Max limit on size of query in SSIS OLEBD Source component

$
0
0

Hello Everyone,

I have a question as below.

What is the Max limit on size of query in SSIS OLEBD Source component ?

Thanks for your co-operation.

Thanks

Fredyyy


Error when deploying SSIS package in 2012

$
0
0

Hi,

I am trying to deploy a SSIS package to 2012 version. But i am getting error as  below,

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

There was an exception while loading Script Task from XML: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Tools.Applications, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.SqlServer.IntegrationServices.VSTA.VstaHelper.<CleanUp>b__1b()
   at Microsoft.SqlServer.IntegrationServices.VSTA.MtaExecution.Run(Action action)
   at Microsoft.SqlServer.IntegrationServices.VSTA.VstaHelper.CleanUp()
   at Microsoft.SqlServer.VSTAHosting.VSTAScriptingEngine.DisposeVstaHelper()
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.MigrateVSTA21ScriptProject(XmlElement elemProj, IDTSInfoEvents events)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)

There are 4 packages of same version,  i get this error only for 2 packages and other 2 am able to deploy successfully. Can someone tel mewhat would be the issue.

the same package is successfully deployed from my colleague machine.


Mano

Active X Script

$
0
0

Can Someone help me to write script that would go and grab file(Y1,Y2,Y3....so on) from my server (X) and then put that in another destination. Also my file has date on it which I dont need to hard code...For Example one of my file name is Planet_2-17-2014

but I need to write script so that every time it  grab  my file it does only on "Planet". Cause everytime I grab a file that would be moved to another destination and only my latest file would be on my source destination.But again I dont want to hardcode date,


SPPandey

Import into SQL Server db from Sybase 7 data source - SQL Server 2008 R2/2012

$
0
0

Hi,

I need to import Sybase 7 data into a SQL Server 2008 R2 or 2012 database.

Has anyone any experiences about this import?

Thanks

ssis 2012 parallel execution of ssis packages using catalog database hangs

$
0
0

i have a simple ssis package in 2012 where I am executing several data flow tasks in parallel using sequence containers, however very often the sql job just runs forever although all the tables have been loaded or I cant see whats going on, the job neither fails nor succeeds, just goes on executing,is there an issue with executing several data flow tasks in parallel, why does the job continue to run forver, how to troubleshoot and fix the error, please guide, are there any issues using the catalog db execution, is that the reason this behavior is showing?

Is it possible to see the count of files downloaded from FTP site using FTP Task?

$
0
0

Hi All,

Question: How to confirm multiple files were downloaded during a single FTP Task execution with neither a flat file connection manager nor the names of the files themselves?

Background: Every day, our vendor generates a new data file for us to download.  Due to the file name standard that includes create date and time ("ftp_file_2014-03-27-10-59-59.csv"), we have no idea what the file name will be unless we go looking for it manually.  I've remedied this problem in the FTP Task Editor by using an Expression Variable for the remote path that builds a file mask (for example, "ftp_file_2014-03-27-*.csv").  This works fine for downloading the right file at the right time.

The download package doesn't always get called daily, so I put the FTP task in a loop that loops through days from the last successful import to today.  All's still fine.

Unfortunately, the vendor can't be trusted to provide us only one file per day.  This is possible because the create time also appears in the file name, ensuring uniqueness in all file names.  The FTP Task will download all the files that match the file mask, and if that is more than one file, I need to hit the kill switch on this package: delete the 2+ files downloaded [but not the previous days' files], log the error, and don't download any more files for later dates.

Thanks,
Eric B.

Spaces in UNC Path when used in a File System Task

$
0
0

Hello,

I have a simple SSIS package which moves a template Excel file from one folder to another folder:

Both folders are referenced in a UNC. The natural UNC path is: \\A\B\C D\F E\filename.xlsx

When storing the path in a variable, the expression is: "\\\\A\\B\\C D\\F E\\filename.xlsx"

The SSIS package runs under my account and gives the following error: (could not find a part of the path)

I read in other threads that a lot of times, it's related to access permissions but I verified that it's not. I actually created a file with no spaces under the following parent folder:\\A\B\filename.xlsx and the package ran fine.

How do we handle ignoring UNC path spaces in SSIS? I tried enclosing the whole UNC path expression in double quotes using the escape sequence: ""\\\\\A\\B\\C D\\F E\\filename.xlsx"\" to produce "\\\\A\\B\\C D\\F E\\filename.xlsx" but it doesn't work.

Thank you

Oracle as Source, Text was truncated or one or more characters had no match in the target code page

$
0
0

I am using Oracle as a source (oracle provider for OLEDB) in my package, (this is the first time i am working with oracle) I just wanted to see how data comes from the source so i just placed a text file as a destination and ran my package. I received the following error message,

[Flat File Destination [1187]] Error: Data conversion failed. The data conversion for column "SOLDTONAME" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

In the advanced editor of Source I changed the "TruncationRowDisposition" value to RD_IgnoreFailure but still i get the error. So what exactly i need to check now and how do i solve this issue. I even tried using data conversion between source and destination and changed the data type to DT_WSTR but no use.

Note: Not even a single row written to the flat file.


Sarvan


Consuming oData service from SSIS 2008 R2

$
0
0
Is there possibilities to consume oData service feed from SSIS 2008-R2, any component that can be used ?

Derived Column

$
0
0

Hi All,

This is my first post and i'm very new to SSIS

i'm struck at one place while developing one package as per my requirement

I want achieve as below

EX: we are getting one column value as '59925678' , i have to remove first 4 digits and append four zeros before to the value

expected result is '00005678'

Could you please any one help me on this

Thanks in Advance !

SQL query result with HTML Data in output

$
0
0

Hello,

I have a SQL table , in one column I store HTML data. I need to query the table and get the HTML data in the columns that have 'HREF'. The output shows as grid on the sql management studio, however when I export it to excel, the HTML data does not get copied correctly, since there are HTML tags etc.

How can I export the report correctly from SQL ?

Microsoft Online Services Authentication option disabled in the OData Data Source for SSIS

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available

$
0
0

Hi,

I have deployed a package over the MSDB and associated that with a Job, When I ran the Job I got the below error,

Executed as user: UTG\GPSSQLService. Microsoft (R) SQL Server Execute Package Utility Version 10.50.2500.0 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 10:42:25 PM Error: 2014-03-20 22:42:26.61 Code: 0xC0202009 Source: UTG_REPORT Connection manager "qora003.sio" Description: 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 Provider for Oracle" Hresult: 0x80004005 Description: "Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.". End Error Error: 2014-03-20 22:42:26.61 Code: 0xC020801C Source: Data Flow Task OLE DB Source [1] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "qora003.sio" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2014-03-20 22:42:26.61 Code: 0xC0047017 Source: Data Flow Task SSIS.Pipeline Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C. End Error Error: 2014-03-20 22:42:26.61 Code: 0xC004700C Source: Data Flow Task SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2014-03-20 22:42:26.61 Code: 0xC0024107 Source: Data Flow Task Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 10:42:25 PM Finished: 10:42:26 PM Elapsed: 1.248 seconds. The package execution failed. The step failed.

As Per Me this error is taking place due to Oracle client but Oracle client is already installed there on the Server from where we are running this Job.

Your help towards resolution will be appreciable.

Thanks


Regards, Ashish Tripathi

"OLE DB Destination" (4403) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (4416).

$
0
0

I have package which have sequence container and inside that sequence container there is 10 child sequence container each container represents the single table. When I execute that Package to through the SQL Server Job all eight or nine container execute successfully but only one or two container give error which has given below. But when we go to the package and right click on error container and execute them it executes success fully. Please help me to solve this mystery.

"OLE DB Destination" (4403) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (4416). 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. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 12:30:00 AM Finished: 3:01:13 AM Elapsed: 9072.95 seconds. The package execution failed. The step failed.


Mayank Tripathi Sr Sql Developer

Reading data from Sybase SQL Anywhere 7 database to write into a SQL Server database

$
0
0

Hi,

I need to import data from a Sybase SQL Anywhere vers. 7 database. This RDBMS was used more 10-12 years ago. I want to write Sybase data into a SQL Server 2008 R2-2012 database. For testing purposes I'm using SQL Server 2005.

After that I've installed Sybase SQL Anywhere vers. 7 I can use the Adaptive Anywhere 7.0 ODBC. I'd like to use SSIS to import Sybase data, but I cannot create an OLE DB connection in a right manner while I can create and ODBC connection manager and so I can use an Execute SQL task (and not a data flow task, unfortunately!).

Well, after using this Execute SQL task to read fe a table with thousands of data rows how can I write the entire data collection on a SQL Server table?

Thanks



What is the Estimated Row Size while using BLOB data?

$
0
0

The Buffer Size is calculated by calculating the Estimated Row Size. The Estimated Row Size is calculated by adding the maximum size of each output column from a Data Source Component.

The buffer size is calculated by multiplying estimated row size with default buffer max rows. We know that buffer size lies between 64KB and 100MB. After finding out the buffer size as per the above methods, the engine automatically adjusts the buffer size.

Bt my concern is related to blob data. The size of DT_NTEXT (blob data) is 2^30 bytes. I understand that while calculating the estimated row size 2^30 is not considered. But then what would be the estimated row size here and how the buffer size is getting calculated.

Thanks in Advance,

Regards,

Chhandak

A random error occurred when executing a Web Service Task SSIS

$
0
0

I have created a SSIS package that runs 6 process in parallel, each one of them does basically the same:

1. Gets data from the DB

2. Calls a web service using returned data (in a foreach loop) 

The package is executed from a sql job (ms sql 2005) and the web service is running in the same machine of the sql server where the job is running.

The jon runs ok the 60% of the time, however sometimes one of the 6 process running in the package fails in when calling to the web service.

As mentioned, this is a random error, so It is not related with the wsld definition file nor the web service itself since (the package runs without any issue 2 or 3 times the job runs.

The logging of errors is in place on the web service and there are not registered error report so the error is definetely happening on the package.

I am trying to figure out what the issue is for months without any luck! :(, I really appreciate any help you can give me:

Next is the error I am getting:

Started:  12:00:33 AM
Error: 2014-03-29 01:13:20.27
   Code: 0xC002F304
   Source: Web Service Task Web Service Task
   Description: An error occurred with the following error message:

"Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Exception has been thrown by the target of an invocation..
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".

End Error DTExec: The package execution returned DTSER_FAILURE (1).
Started:  12:00:33 AM
Finished: 4:16:16 AM
Elapsed:  15343.8 seconds
Microsoft (R) SQL Server Execute Package Utility
Version 9.00.5000.00 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.


Camila


Problem opening an Excel rowset in SQL/T-SQL

$
0
0


In SSMS ((SS 2008 R2) when I run:

SELECT * FROM OPENROWSET ( 'Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\test\xltest.xls;HDR=YES;IMEX=1', 'SELECT * FROM [Sheet1$]' ) From this article:

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/3ffcbe7c-cdce-43cd-97b1-ea480bbbfff9/openrowset-excel

I get error: Msg 7403, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered. However, over in SSIS, the Excel Connection Manager connection string property (which works!) is: Provider=Microsoft.ACE.OLEDB.12.0;Data Source= C:\test\xltest.xls;Extended Properties="EXCEL 12.0 XML;HDR=NO"; Showing that Microsoft.ACE.OLEDB.12.0 is registered on this machine. What do I need to do in SQL/T-SQL to have the code work?


Casting problem with UNION in OLE DB Source

$
0
0

I have SQL Server 2012 SSIS. There are 2 databases. Import and Analyses.
I have Data Flow Task. Inside it I have OLE DB Source and OLE DB Destination.

Data type is orginally nvarchar(100). Destination is nvarchar(100) as well.

I would like to use UNION statement for Data Source, but getting errors. This is mystery for me.

WHAT IS BEST PRACTISE WHEN I USE SQL STATEMENT AND UNION STATEMENTS IN OLE DB SOURCE?

Example value for CustomerAddress is "Union Street 5". Defitely less than 100 nvarchar.

[OLE DB Source [42]] Error: There was an error with OLE DB Source.Outputs[OLE DB Source Output].Columns[CustomerAddress] on OLE DB Source.Outputs[OLE DB Source Output].
The column status returned was: "The value could not be converted because of a potential loss of data."

[OLE DB Source [42]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. 
The "OLE DB Source.Outputs[OLE DB Source Output].Columns[TimingValue]" failed because error code 0xC0209072 occurred,
and the error row disposition on "OLE DB Source.Outputs[OLE DB Source Output].Columns[CustomerAddress]" 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.

SELECT RowId,'Toyota' as 'CustomerName',CAST(CAddress AS nvarchar(100)) as 'CustomerAddress'
FROM [Integration].[dbo].[Import_A]
UNION
SELECT RowId,'Nissan' as 'CustomerName',CAST(CAddress AS nvarchar(100)) as 'CustomerAddress'
FROM [Integration].[dbo].[Import_B]


Kenny_I

Cannot acquired connection for Excel

$
0
0

I have a SSIS packages that save output to Excel file.  I configure the SQLAgent to use the 32 bit runtime in the Execution options tab.   Job ran and failed with the following message.  I am not sure what other options I need to include in the SQLAgent job step.  Please help.

Error: 

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


W.E. Pan

Viewing all 24688 articles
Browse latest View live


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