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

Loading multiple excel files using foreach loop container

$
0
0

Hi,

Good day.

I tried loading multiple excel files using foreach loop container and I got the following error messages.

Error 1 Validation error. Data Flow Task: MainTransaction: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft Office Access Database Engine"  Hresult: 0x80004005  Description: "Invalid argument.".   

Error 2 Validation error. Data Flow Task: Data Flow Task: 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 messages posted before this with more information on why the AcquireConnection method call failed. 

Error 3 Validation error. MainTransaction Connection manager "Excel Connection Manager": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft Office Access Database Engine"  Hresult: 0x80004005  Description: "Invalid argument.".  

Error 4 Validation error. Data Flow Task Excel Source [40]: 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 messages posted before this with more information on why the AcquireConnection method call failed. 


me


moving file from ftp local folder

$
0
0

hi,

i have sftp server ,from where i need to move all the files to my local folder . and then need to process

Load Data from multipe files into database

$
0
0

multiple Project source files (of same format) present in the “Project” folder

Need to load data from each of the Project source excel files, into the database


ShanmugaRaj

User Defined Function in SSIS multiple data flow tasks

$
0
0

hi guys,

I'm new to SSIS and I have a question about using user defined functions in SSIS.

So i have a sql statement that i use to split a row with for example "1,2,3,4" to 4  new records like "1","2","3","4".

Also have a sql statement to check if the date is valid, etc.

Now my question is: how can I use this UDF in SSIS and also is it possible to create this UDF in the control flow so i can use 1 UDF in multiple dataflow tasks ?

Thanks for taking your time to read this, I hope my question is clear.

Kind regards

Query In OLEDB Command

$
0
0

I am using OLEDB command with XML source.The query I am using is :

UPDATE  Table1 SET Table1.STATUS ='12'
from Table1 join Table2 on Table1.REC_NUM= Table2.REC_NUM
where  Table2.FLDCASENUM= ?  

IF I use the same query in SSMS and use a valid value in place of '?' I get expected results but in OLEDB Command in SSIS it gives an error saying "The multi-part identifierTable2.FLDCASENUM could not be bound "

In my XML source I am processing an XML file which has FLDCASENUM values that need to be mapped with TABLE2.FLDCASENUM

Thanks for your time and help.

                                                                                                                                                           

not seeing anything on sysssislog

$
0
0

hi,

i am having log provider in sql server table.

when i run the package ,it run successful,but cant see any log in sysssislog

what should i do

SSIS package pulls data into excel

$
0
0

simple question:

my package load into excel file, the date column format is like: 9/11/2012,10/11/2012

how can I set data conversion or create excel template by sql,   to make the date column format is like: 09/11/2012,10/11/2012.

just add a zero if the month only has one single number.

Thanks

how to execute task in forechloop container if i have a folder with files and folder and inner folder contain files and folder ?

$
0
0

Hi

how to execute task in forechloop container if i have a folder with files and folder and inner folder contain files and folder etc...

ex:

i have folder with 10 files and one floder---->contains 20 files and two folders and each floder contains 30 files and one floder etc..........

how to process all files?

thanks and regards

samba


Named pipes works but TCP/IP drops connection

$
0
0

Hi all,

I receive the following error from an SSIS connection managers and Management Server intermittently:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) (.Net SqlClient Data Provider)

However when using the server name instead of IP address the connection always works and never gets dropped.

That is to say named pipes always works but TCP/IP seems to have a problem.

We need to use TCP/IP as its much faster (load takes 30 minutes when connected with TPC/IP and 4 hours when connected with NP).

As named pipes always works this doesnt seem to be a network issue (unless NP is a lot more resilient than TCP/IP).

Does anyone know how to fix this or at least diagnose what the issue is? Normally the problem is the opposite of this.

Thanks.

pacakge path setting

$
0
0

i have master and child packages.

i have setup xml config for all the packages

how to make them run in any machine / folder. i need more info on keeping to xml files connected to package so that based on config the pacakge runs


ShanmugaRaj

How to create Dynamic SSIS Package

$
0
0

Hi Friends

I AM NEW TO SSIS

Please help me 

How to create Dynamic SSIS Package

Can BIDS/VS Be Accessed Remotely

$
0
0
I have a user who would like to access BIDS/Visual Studio remotely, similar to SSMS accessing the SQL engine. I'm not aware of any method to do this. Does the user have to install VS shell on his local machine or does he need to RDP into the SQL server? Thanks.

Retrieving AS/400 files via SSIS FTP?

$
0
0

Hi,

I'm running SSIS 2008 R2 SP1 (64 bits) and would need to download a text file via FTP from an iSeries (AS/400) server V6R1.

The SSIS FTP component works great against Windows and UNIX-like FTP servers, though I can't download any file from an AS/400 FTP.

Problem comes from the fact that AS/400 have two radically different filesystems :

One (DBFS) is based on a weird Library/File/Member model.

And another one called IFS (which looks pretty much like UNIX or Windows folder structure).

When one connects via FTP to the AS/400, one has to choose which filesystem will be used by running a native AS/400 FTP command

Here's my manual sequence (which runs OK);

FTP MyServer

(username)

(password)

ASCII

QUOTE SITE NAMEFMT 1        --> This native AS/400 FTP command let's me choose IFS filesystem

CD /MyFolder/MySubFolder

GET potatoes.txt

BYE

Same command fails from SSIS FTP component, because I can't find any way to send thisQUOTE SITE NAMEFMT 1 native AS/400 command.

Is there any way to send commands from SSIS FTP? Or should I run my AS/400 FTPs via a Windows batch (which work OK as well)

Thanks


Sebastian Sajaroff Senior DBA Pharmacies Jean Coutu

i have a excel file with product and each product contains items and date of sold,the excel file updated over a period of time,how can we use pivot transformation?

$
0
0

Hi

i have a excel file with productName and each product contains items and date of sold,the excel file updated over a period of time,how can we use pivot transformation?

the file is not static,but package used by pivot transformation is static template,so how can we pivot the data using pivot transformation?

thanks and regards

samba

SSIS Configuration using SQL Server option

$
0
0

I am using the SQL Server option for configuring an SSIS package.

However, I have found that it only ever allows you do this using a physical table in your sql server database. By this I mean you cannot use for example, a view.

The reason I am thinking of using a view is a scenario where I need to run a query to actually determine which value to set on a variable which requires a configuration.

Say for example, I have a table which records/monitors server perfomance statistics and based on the information, I will decide to connect to a particular server to run an SSIS package.

The use of a table here will not be adequate as I can only store name/value pairs.

Is there any way to bypass the use of a table in SSIS configurations using SQL Server?


SSIS logging OnPipelinePreEndOfRowset and OnPipelineRowsSent propblem

$
0
0

I have an SSIS project written in SS-2008 and ported over to SS-2012. In 2008 the package runs fine in development and from the command line. In 2012 the package runs fine in the SSIS development environment, but when I try to execute it using DTEXEC I am getting a thousands of lines of:

The event "OnPipelinePreEndOfRowset" was received, but didn't have correct parameters.
The event "OnPipelineRowsSent" was received, but didn't have correct parameters.

It reports DTSER_SUCCESS(0).

But the package transfers all the data correctly and is writing any bad records off to text files for correction. Other than the lines above I am getting no errors. My latest run had 97,000 lines of these messages.

The command entered is "dtexec /f "main.dtsx" /rep wd >ssislogs.txt"

Anyone have any idea why I am getting these errors or how to make them go away?

Problems with retrieving numbers from Excel

$
0
0

Hello,

I'm using SSIS, SQL Server 2012 and Visual Studio 2010.

I'm trying to retrieve data from Excel source - it can contain both numbers and strings (like 'x' for an unknown number). I'd like to read it all and save to database into NVARCHAR(MAX) columns. Later, I will move all the correct numbers to my data warehouse and store it in DECIMAL(18,4) columns.

Unfortunately, I have noticed that SSIS converts numbers like 11010.61 to 11010.610000..001.

I tried to ignore the problem and convert those numbers into DECIMAL(18,4) while transferring them to data warehouse. But sometimes 0 is converted to -2.9999999999999999E-2 what makes casting impossible.

I added "IMEX=1" to the connection string in the excel source and now when SSIS discovers any string in the first eight rows, it will read all the cells as strings - so the numbers will be retrieved correctly. But when there's no string in the column, the numbers are converted into this strange format. Below I've attached a screenshot to show what it looks like.

What can be the reason of this behavior? In my excel source's advanced editor both External and Output Columns' DataType property is set to "Unicode string [DT_WSTR]". In the excel file, all the cells have "General" format. On the preview in the excel source the data looks fine - but when I turned on Data Viewer on the data flow path that goes from this excel source, I've noticed that it's already converted to this format. So there must be something wrong with retrieving data from the source - but I haven't manager to find out what could be wrong.

 

Thank you in advance!


batch file catch error

$
0
0

my package using Execute process task to run a batch file to FTP upload file.

batch file as below: 

LOG \\xxx\Script\log.txt
TRACE \\xxx\Script\trace.txt

CONNECT xxxTest

LCD \\xxx\Test
CD /dev/Test

MPUT *.xls
CLOSE

so my questions is: how can I catch error if this code "CONNECT xxxTest" fail ?

I mean, how can I make Execute process task fail if the connection fail ?

Thank you.

SSIS Integration - Text to Numeric

$
0
0

I have a text field (in input and output). I need to multiply this field by 100 and populate the SQL database field (text).

I am using the Derived Column and here is what isn't working:

NewColumn = ((DT_STR,15,1252)((DT_NUMERIC,10,2)Column * 100))

Thanks for any help!

Limiting character size of source column

$
0
0

Hi,

I'm having a bit of an issue, i'm parsing through an XML source and receiving a truncation error when trying to output the column value because this particular string is more than 8000 characters, which is the maximum size that DT_STR will allow, is there a way that I can limit the column value to only take the first 8000 characters or would i have to put that limit in the XSL that i use to parse the XML file? any help on this problem would be greatly appreciated

Viewing all 24688 articles
Browse latest View live


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