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

Database Connection error when executing the package from .bat file

$
0
0

Hi..

Need help in fixing the problem.. Not able to find good article to address the issue.

Environment : Windows 2008 R2 64bit machine , Sql Server 2008

Recently we have migrated ssis packages from 2005 32 bit machine to 64 bit machine.

It works fine on windows 7 64 bit machine when executed from VS2008 and .bat file.

The .bat file consists following command.

"C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\DTEXEC.exe" /FILE "D:\XXX\CCC\\DTSX\ONE_LOAD.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET "\Package.Variables[User::LaunchSystem].Properties[Value]";XXX /REPORTING EWCDI > .\Logs\ABC_log.

Today we have promoted the packages to Dev Server which is 2008 server(64 bit) machine. It has SQL server 2008 R2 installed on it along with VS 2008.

When trying to execute the package from .bat file on this machine i end up with following error.

Using 32 bit Dtexec in .bat file i get the following error

Info: 2013-06-14 03:24:34.77
   Code: 0x4004300A
   Source: DFT - Get Latest Batch_Control_Keys from XXX SSIS.Pipeline
   Description: Validation phase is beginning.
End Info
Error: 2013-06-14 03:24:34.90
   Code: 0xC0202009
   Source: ABC_LOAD Connection manager "XXX"
   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: 2013-06-14 03:24:34.90
   Code: 0xC020801C
   Source: DFT - Get Latest Batch_Control_Keys from ABC OLE_SRC - Get Batch_Control_Keys [1]
   Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "ABC" 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: 2013-06-14 03:24:34.91
   Code: 0xC0047017
   Source: DFT - Get Latest Batch_Control_Keys from ABC SSIS.Pipeline
   Description: component "OLE_SRC - Get Batch_Control_Keys" (1) failed validation and returned error code 0xC020801C.
End Error
Error: 2013-06-14 03:24:34.91
   Code: 0xC004700C
   Source: DFT - Get Latest Batch_Control_Keys from ABC SSIS.Pipeline
   Description: One or more component failed validation.
End Error

and when used 64- bit command inside .bat file i.e 

"C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTEXEC.exe" /FILE "D:\XXX\CCC\\DTSX\ONE_LOAD.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET "\Package.Variables[User::LaunchSystem].Properties[Value]";XXX /REPORTING EWCDI > .\Logs\ABC_log.

i end up with following error.

Error: 2013-06-14 03:23:42.45
   Code: 0xC0209303
   Source: ABC_LOAD Connection manager "ABC"
   Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR.  The requested OLE DB provider MSDAORA.1 is not registered -- perhaps no 64-bit provider is available.  Error code: 0x00000000.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".
End Error
Error: 2013-06-14 03:23:42.46
   Code: 0xC020801C
   Source: DFT - Get Latest Batch_Control_Keys from EDSF OLE_SRC - Get Batch_Control_Keys [1]
   Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "ABC" failed with error code 0xC0209303.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error
Error: 2013-06-14 03:23:42.46
   Code: 0xC0047017
   Source: DFT - Get Latest Batch_Control_Keys from ABC SSIS.Pipeline
   Description: component "OLE_SRC - Get Batch_Control_Keys" (1) failed validation and returned error code 0xC020801C.
End Error
Error: 2013-06-14 03:23:42.46
   Code: 0xC004700C
   Source: DFT - Get Latest Batch_Control_Keys from ABC SSIS.Pipeline
   Description: One or more component failed validation.
End Error

Not able to find what could be the problem.

Also, tried connecting to Oracle source from VS2008 and end up with following error.


Did any one come across this issue. Please let me know what could be the problem.


Sri





Debugging Flat file connection manager when preview works but run-time doesn't

$
0
0

Hi,

 

I am trying to process a non-standard flat file. Initially I want to just convert 1 line of text into a single column.

I have selected ragged right with a HeaderRowDelimiter of {CR}

The column width is 500 - which is plenty wide enough to hold any line.

 

When this is all setup and I check the preview it looks fine.

I noticed when running the code through that I wasn't getting the expected behaviour so I put a DataViewer on the connection out of my Flat File Data Source. At run-time this shows that all the rows come out containing no text.

 

Could anyone offer a suggestion what could be wrong or what other steps I can take to debug this.

 

Thanks.

Constraint settings - how to prevent execution after a disabled task

$
0
0

I just pulled out what few hairs I have left.  I had disabled a task that I didnt mean to, and it was causing issues that were not clear what the problem was.

The first 2 tasks task is an exec sql task -> foreach loop

If I disable the very first task (exec sql), the foreach loop still gets hit and gives an error.

Is this expected bahavior?  How can I tell the execution of the package to stop at the point of a disabled task?  Or rather, maybe this is an issue for the constraint that connects the disabled task and the next task in the sequence?

Test Connection throws error message when you try to connect Oracle in Connection manager

$
0
0

Test Connection throws error message when you try to connect Oracle in Connection manager

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

Any any body guide how to resolve this issue


Smash126

Exec sql task then Foreach loop - check constraint and expression

$
0
0

I have an execute sql task which then feeds a foreach loop.  How can I can put an expression on the constraint between the two, to check if the resultset is empty or not?

The exececute sql task, setting result set to "full result set" and  populates a variable @MyResult

I want to check that variable for empty and/or null before it hits the foreach loop.

However, if the result is empty, shouldnt the foreach loop just complete, with nothing done?

How can handle the all records from Source to destination by LOOKUP operation ?

$
0
0

Hi,

Control flow operation like below chart:

Second look up has given an out put of  102,305 rows  by how to handle rows with no matching entries by:Redirect rows error output (or) redirect rows to no match output, If I use  fail component LOOKUP failed but my SOURCE records:102,331

So How can I get the remaining records ?.



Can please  elaborate difference between Redirect rows error output and redirect rows to no match output.

---Thanks

Madhu




SAP BW to SQl Server import and export wizard

$
0
0
I am trying to load data from SAP BW system to SQL server. Using management studio, But i am getting this error any idea?

pulikondas


How To Store FileName Into Variable using SSIS?

$
0
0

Hi All,

I want store .txt file name into variable and after that I will load into sqlserver table with particular characters only.pelase check below full name. I am loading all files using for each loop container.

EDW_Com_FEP_1112_062013_cmk.txt

My desire output is client name=FEP and the above file format were fixed. How to load the client name into table?

Thanks

CMK..


loadig files with dynamic columns with missing row headers

$
0
0

Hi ,

I need to import data from flat files to a target table,I have no control of the incoming files in terms of number  of columns  ,row header, data types,What is the best approach  to handle  this in ssis,how to handle the files ,if some them are  also missing row headers and some with missing  columns  and some with missing row headers  order of the column changes .

Many Thanks



commit rows per batch

$
0
0

Hello Professional,

I have written a code with insert/update logic, here I have two destination tables where tableX will have latest records and history_tableX will have old records of that particular record.

For this I have use two execute sql tasks where i used joins. And now my colleague is telling me to use commit size as 7000 rows per batch.

I know if it is a dft we will have options to set it. As it is execute sql task I dont know how to do it.

Thanks in advance.

ErrorColumn value has value as ID of the column not lineageid of the column

$
0
0

Hi There,

I have developed a dataflow task in a package, so that when ever i get a error, it has to redirect the row to a different table, also i am mapping errorcolumn to that table. When i see the table, errorcolumn has value of ID of the column in the oledb destination task not lineageid. At oledb destination only I am getting error. Please let me know is there any option to set for error output to get Lineageid.

OLE DB Source - can I use a parameter for doing a select top ?

$
0
0

SELECT TOP ? * FROM MyTable
WHERE LEFT(MyTable.Col1,10) = ?

After having trouble, I did some reading and stumbled upon this example

http://www.select-sql.com/mssql/how-to-use-a-variable-inside-sql-in-ssis-data-flow-tasks.html

However, Im needing this within a foreach loop.

Suggestions?

protect excel file with password

$
0
0

Hi!

I have to add a password to an excel file created using SSIS
interop does not work
with the VBScript system can not find the file!

Any tips?

I' using VS 2010 shell.

Thanks!

web service Script task vs Script Component

$
0
0

Hello Every one

Version:Sql server 2008 BIDS 2008

I can able to call a web service  and methodsin script task in a control

flow task 

I am using similar code in a script component as a transformation because i need to perform some task using return data from web service which takes 4 inputs and returns 1 output

Every thing works great in contro flow but same script fails in script component with error

Fial STATUS HTTP 401:UNAUTHORIZE

If i was not authorize user it should have failed in control flow script task

script is similar to this

var service=sc_123.csproj.webservicename.servicename()

service.methodname(parameters)

I dont understand the reason it fails in data flow task

Appreciate for suggestions

Thanks

SSIS vs Workflow 4 for business rules

$
0
0

Have a process that will be doing a number of things

- Getting data from/into multiple SQL server databases on multiple servers
- Updating the data in those databases using business rules and XML schema processing
- Generating XML data to go into different parts of various systems

While I could most likely do all of that in SSIS, I am considering Workflow 4 as a tool to locate this type of logic.  We have other processes currently in SSIS that primarily move data into/out of SQL.  However, I am wanting to separate some of this into distinct "buckets" so that everything isnt running on the SQL server.  If I spin up another SQL server just to run SSIS on, then I would have additional licensing costs, for one thing.

At the end of the day, its probably coming down to a choice based on where our skill sets serve us best.  For that consideration alone, its going to be Workflow.  Our SQL version is 2005, and I feel much more comfortable with C# and Visual Studio that I do with BIDS.

Anyone else had to make this kind of decision?


Is it possible to right align columns using SSIS Import and Export Wizard?

$
0
0

Hi,

 

Is there a way to right align all columns using SSIS Import and Export Wizard to export a table?  I tried exporting directly from SQL Server Management Studio using right align numeric values in options\query results\sql server\results to text, but the text file is always twice the size when compared to SSIS Import Export Wizard.  And my work software can't recognize the export coming out of Management Studio because of the added "bulk."

 

So is the a way to get my data right aligned in all columns when using the SSIS Import and Export Wizard?

 

Thanks in advance for any assistance or quidance.

 

JC 

 

  

Downloading Everyday Files from SFTP

$
0
0
Hi Everyone,

How we get everyday files from SFTP. In SFTP server everyday got files name like' filename_yyyymmdd'.

This last date part is changing everyday as per current date. So i need to download one day before file to my local drive and then updating in databases. I used this below statements to downloading specific file name but i need everyday 1 day before file.

option batch on

option confirm off

open sftp://user:password@ipaddress:port

cd mydir

option transfer binary

get Filename_20130530.csv

close

exit

Many Thanks

Anil L

Expressions based on file name. Finding the . Extention and just the file name without the extention

$
0
0

I use the following expression to grab the full file name from full directory

REVERSE(SUBSTRING( REVERSE( @[User::HotFoldersDownloadFullFilePath]  ), 1, FINDSTRING( REVERSE( @[User::HotFoldersDownloadFullFilePath]  ), "\\", 1 ) -1 )  )

It finds the last \\ and gives you everything after this test123.csv

But what im wanting from above is the dot and everything after. .csv Ive tried the below but it gives me the extention without the dot

REVERSE(SUBSTRING( REVERSE( @[User::HotFoldersDownloadFullFilePath]  ), 1, FINDSTRING( REVERSE( @[User::HotFoldersDownloadFullFilePath]  ), ".", 1 ) -1 )  )

And then I want the file name without the dot and extention. "test123"

I have no idea how to do this. THis is because I want to add a date variable at the end of the file name before the . extention.

And then maybe I can use this to create a new file name? (Hopefully)

Debbie

SSIS Match 1 field, append other

$
0
0

So I am going from an Excel file to OLE DB Destination. MY Excel file has a ID_Number and Resolved_Date. I need to look for a matching ID_Number in the destination and if there is a matching number (which there will be) change the NULL in Resolved_Date to the date from the excel file. 

Excel File is like this

ID_Number         Resolved_Date

432323                  03.01.13


So how can I match find the ID_Number and then from there fill in the Resolved_Date?

How to load data from Google analytics to SQL SERVER 2005

$
0
0

Hi All,

Is there any solution to  load data from google analytics (API) to SQL Server 2005.

Many Thanks

Anil


Laky

Viewing all 24688 articles
Browse latest View live


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