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

Compatibility of XML files

$
0
0

HI All,

configuration XML files across the VS 2008,2012,2013 same? or do we have any changes?

Details: I am working on migrating ssis package from ssis 2008 to ssis 2013. we are using XML configurations. After migrating to 2013, Values are not fetching from Configuration files. My doubt is, XML config file of 2008 can work for 2013? Do we need to perform any additional steps to achieve this?

please let me know.

Thanks,

Raghavendra


[File System Task] Error: The process cannot access the file because it is being used by another process.

$
0
0

Hello Team,
I've a common issue as follows:

In my SSIS package
I have excel files to be loaded into target and the same is processed through a Foreach loop container.
After the process, the respective files need to be moved to Success/Failed folder.
But the issue is once a file is processed, the very next file does not process either and also it does not move to the Success/Failed folder.
it shows the error:

"The Process cannot access the file because it is being used by another process"
Task move files to success folder failed

Please get me a proper solutions for this.

SSIS Flat File Source is not failing when the format is incorrect

$
0
0

My Source File is (|) Pipe Delimited text file(.txt). I am trying load the file into SQL Server 2012 using SSIS(SQL Server Data Tools 2012).  Below is the example for how data in file looks like. 

1|Test Name|TestDesc

2|Test Name1||||||Test Desc1

I am hoping that my package should fail because the second row is corrupted it has more number delimiters than expected. the file should have only three two pipe(|) delimiters. Instead SSIS loading the data from last delimiter to end of the line as one string. Below is the example how it's loading.

1 TestName TestDesc

2 TestName1 ||||||TestDesc1

My Question is Why is't the package failing? I believe it has corrupt data because it has more number of columns if we go by delimiter? If I want to fail the package what are my options,If number of delimiters are more than the number columns expected?

SSIS - incremental load to Azure

$
0
0

Can I use SSIS to incrementally load data from an on-premise SQL Server database to Azure SQL Database (PaaS)? If yes, are there any good articles that I can refer to? I was tryong to create a test package and was getting the error:

Description: "Keyword or statement option 'DTS_Buffers' is not supported in this version of SQL Server.

I was using Visual Studio Tools for Applications 2012.

Visual Studio for playing with MS BI stuff

$
0
0

Hi all of you, I’ve download Microsoft Visual Studio Tools for Applications 2015 and as available projects I have got only Sql Server Database Project projects.

It doesn’t bother, but in fact,  I would need Integration Projects, SSRS, SSAS too.

Due to I’ve download SQL Server 2014 version, this one does not bring SSDT or BIDS software like 2012 or former.

 

Can you tell me what would be the download that really I need in order being able to use SSIS packages and so on?

 

Thanks for any input/hint related to,

Strange behaviour when producing a lot of log-events

$
0
0

Hi,

I've made a script for a script-component in a data flow. For debugging purposes I've used FireInformation a few times to give me some feedback on what the script is doing. But since the script takes a long time, and a lot of Information Events occur, the log get's really long. Now, I noticed that my job just stops after a while, not completing at all, no errors in the log. So I figured, maybe I'm just logging to much, so reduced the number of FireInformation lines by introducing a 'debuglevel' variable with which I can adjust the amount of debugging information flowing to the log. And sure enough, now the job runs smoothly.

So, my question: is there a limit of the amount of lines the log can carry when executed manually from visual studio?
FYI: this is SQL 2008 R2, pretty old, running on 64bit Win7 laptop with 16Gb RAM.

Kind regards,

Cedric

SSIS job fails with error 'The process could not be created for step 1 of job 0xD5A5 (reason: A required privilege is not held by the client). The step failed.'

$
0
0

Hello,

I have a situation here. I have a SSIS server on one domain and the SSIS package connects to msacces file folder on another domain server.

Have got a domain service account which has access to mdb file. I have created proxy user on SSIS SQL server with credentials  as domain service account. Given privilege to run 'SSIS packages' to the proxy user.

Now issue arises when the SQL serve agent service login is replaced from 'local user system' to domain user account.

If the service run on local user system the SSIS job with proxy login works fine. but with domain user account is give this error

'The process could not be created for step 1 of job 0xD5A5 (reason: A required privilege is not held by the client). The step failed.'

please suggest.

Thanks

Tripti

Problem with lookup on a table field of type time (0) (SQL Server 2012, Visual Studio 2012)

$
0
0

Hi

I have a problem in a SSIS package.

From an input data source, I get a string containing a time specification.
The field is part of the table key

V_EQUI-TIMBI    DT_WSTR(6)  Bsp: '090904'

In Derived Column I defined the field TIMBI_DT_DBTIME and I fill it with following expression:

(TRIM([V_EQUI-TIMBI]) == "0" || TRIM([V_EQUI-TIMBI]) == "000000" || TRIM([V_EQUI-TIMBI]) == "") ? NULL(DT_DBTIME2,0) : (DT_DBTIME2,0)(SUBSTRING([V_EQUI-TIMBI],1,2) + ":" + SUBSTRING([V_EQUI-TIMBI],3,2) + ":" + SUBSTRING([V_EQUI-TIMBI],5,2))

The data field is defined on the database with time(0).

My Problem is, that the lookup does not find the data sets.

For further information, I am very grateful.


Merge Join in SSIS package

$
0
0

I have 2 sorted data sets in my package , DataSet A and DataSet B, I want a merged Output with all rows from DatasetA and only rows from DataSet B thatdoesn’t match with dataset A. How can i do this, any ideas?

SSIS Package - Missing columns when run as SQL Server Agent Job, Columns present when running in debug

$
0
0

Hello! I'm hoping someone may be able to shed some light on a problem I'm running into when trying to execute a package I've created in SSIS using a SQL Agent Job. I'm running SQL Server 2014, though I'm not sure that's relevant to this.

Here is my situation.

I have created a package in SSIS which uses an Excel source file. I do not have any control of the source file, which has a horribly inconsistent set of data in each column and a varying number of rows. Since the data per column is inconsistent, all columns import as Unicode String [DT_WSTR]. This isn't ideal, but rows can contain a variety of mixed integer and character data. All I need is to get it into a very basic table so that I can do other processing.

I have a set of derived columns, which are replacing blank values with a NULL value. Each column is set to replace blank entries with NULL values.

LEN(TRIM(COLUMNName)) ==0 ? NULL(DT_WSTR,255) : COLUMNName

From the derived column transformation, the data is fed into an OLE DB Destination. The columns are mapped to columns of the same name in the table. Every column in the table is set to nvarchar(255).

Again, the use of dt_wstr and nvarchar(255) are because the column data is inconsistent, but I can't control the format of it.

So, when I run this package in DEBUG mode, it imports everything fine and dumps it correctly in the table. I deployed the package to Integration services and created a SQL Server Agent job. When I execute the job, the package runs without errors, but a few of the columns of data are partially missing.

Here's a simplified version of the source data:

Example of data in Excel file:
row   col 12  col 18
41       21    88
42       89
43               abc12    
44    def       xyz
45    ghi

So, using this data, from column 12, everything imports fine until row 42 - and then everything after it is NULL. In column 18, everything is ok until row 41, followed by all NULL values. All data rows with consistently mixed data (going back and forth between data types) work fine. In both cases, it's when there is a switch from integer-type data to varchar-type data. However, it works when run in DEBUG and the issue only occurs when it is run from an Agent job.  Since the source data is DT_WSTR and the package is deployed to integration services, I really don't understand why it's being handled differently. It's like the system gets confused about what the data type should be and throws out everything it doesn't like.

Has anyone seen this behavior before? Did you find a way to correct it? I'm at a loss here on what to do and would appreciate any suggestions!

Thanks

Erin

How to log/show connection string used in Data Flow

$
0
0

When running SSIS package, is there a way to log or show what connection string the OLE DB Source in Data Flow uses ?

We get this error
Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description:
"Login failed for user myCompany\myTestAccount'. Reason: The account is disabled.".

Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "myDatabaseConnection" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

myCompany\myTestAccount does have access to the database in connection manager "myDatabaseConnection", and it is not disabled. I am able to run SQL Server Mgmt Studio using myCompany\myTestAccount and access the database in connection manager "myDatabaseConnection".

I set the connection manager "myDatabase" using Expressions
InitialCatalog : myDatabase
ServerName : @[User::DatabaseServerName]

I set @[User::DatabaseServerName] in a previous task

I would like to show/log what is the connection string for connection manager "myDatabaseConnection".

How can I do that ?

Thank you.


ssis bulk insert task confusion

$
0
0

hi, I remember reading somewhere that ssis large flat file loads are fast since it uses bulk insert under the hood. In that case what is different with the dedicated bulk insert task vs just using data flow task with flat file source and ole db destination ?

We have many packages in prod that load large files like 50 million rows and none of them use the bulk insert task. The coder's are no longer with the company so I dont know if there was any reason why the ssis bulk insert task was not intentionally used..

Thanks

How to use a Unix script to zip a file in SSIS

$
0
0

Hi All,

I need to zip some 100 plus files into a zip folder. I have used Powershellzip.exe to zip the files. But it is taking huge time and still running. It not working out.

So, I thought to use the UNIX script to zip a file using ssis package. Kindly help me how to implement this.

If we can achieve that using execute process task, kindly provide me a sample command to zip a file using unix script.

Unable to publish SSIS project to SSIS catalog

$
0
0

I have created a new Integration Catalog on one of our SQL Servers (SQL 2014)

and I have a project that I want to deploy to it, but when I try and connect to the folder browser I get the following message

"the server principal "SQLdomain\username" is not able to access the database "SSISDB" under the current security context. (Microsoft SQL Server, Error : 916)"

The SQL server is on a different domain to the main office domain and I connect via SQL user account.

How do I get the project to deploy under my SQL user rather than a domain account?

Thanks

Added Column Not Appearing in Destination (Output) File

$
0
0

Hello,

I have an existing SSIS package that was created a few years ago. The package contains an OLE DB Source, Flat File Source, 2 Sorts (One sort below the OLE DB Source and the other sort under the Flat File Source), a Merge Join and lastly the Flat File Destination. There are 2 Flat File Connection Managers and 1 OLE DB Connection Manager. 1 Flat File Connection Manager is used for the source file and the other is used for the destination file. The package basically takes the data from SQL tables using a SQL script in the OLE DB Source and the data contained in the Flat File Source. Performs the sort and the merge join, then spits out the destination file. This package has run fine for years until I added a column to the input file used by the Flat File Source. When I drill down through the package I see the added column (field) in the Flat File Source, the sort and the merge join but when I look in the destination file the new field is not there. I can run the package and it does run without error but the new field is not in the output file. When I view the Advanced Editor for the Flat File Source and the Sort I see the new field and the data types and column sizes are the same. I don’t see why the new field is not part of the Flat File Destination. Sorry for the long post and I hope I explained things clearly. Any help resolving this issue will be greatly appreciated.

Thank you,

DaveSSIS Package Screenshot


David Young


unable to find error message preventing deployment of package to SSIS

$
0
0

when deploying an SSIS package I get a deploy error, I am using Visual Studio 2013 Update 5 to deploy a package to SQL.
The default accounts were not used, AD accounts were used.  I am running visual studio from a laptop and SQL is on a server.  The account I am running Visual Studio under is an SQL admin account and I manually added them as a SSIS Admin.:

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

Failed to deploy project. For more information, query the operation_messages view for the operation identifier '8'. (Microsoft SQL Server, Error: 27203)

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

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

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

The problem with this is that the table is empty.

I found some thing under catalog.operations where I see the attempts to do something but no error messages.

Checked:

catalog.operations (shows attempts with no success or fail flag)
catalog.operation_messages (empty)
catalog.projects (empty)
catalog.event_messages (empty)

Something is up I just don't know what.

help?

Alternatives to Sort Transformation

$
0
0

Hi,

I am running a package having 1 terabyte of data and in the package we are doing various transformations including sorts before merge join transformations. Sort being a asynchronous component it is acting as a major road block and the package spools out a out of memory exception. Can you please let me know how to avoid sort component. I know that on a OLEdb source we can set a property as issorted and order the data by query and this I have implemented, however the problem arises when we are joining this data set downstream with other data sources. SSIS is implicitly asking me to sort the data again, now here I don't have a OLEdb source to set the issorted option. Please help.

 


Rojit

SSIS DB Catalog Package execution

$
0
0

We recently upgrade SQL server from 2008 to 2014.

We have some SSIS packages. Now we start to use the project deploy model to replace package deploy model.

I found one issue that really frustrating.

That is when executing a package in SSISDB catalog by right click the package and execute, if the package has a source or destination that is on network share or UNC path, then the package failed with Access denied. even I have all permissions to the share. 

I searched online it says because when we execute from SSISDB catalog, it caused double hop issue, the fix is to setup SPN and allow Kerberos  authentication.  Just for this small issue like this , we have to setup SPN and Kerberos, this is a  little frustrating.

When we use package deploy mode, we save packages on file system, and never have an issue like this, and we never need to setup spn and Kerberos authentication.

Also in the new deploy model, if I execute that in SQL agent job, it suceeed, there is no issue about double hop, it is only in SSISDB catalog.

Is this known issue, and what is the workaround of that?

Try to use the new model, but don't find much advantages compare with using package deploy model to the file system.

Thanks


SQLFriend


SSIS 2012 - SAP PI to SQL Server

$
0
0

Hi All,

We need your help in understanding step by step procedure to pull the data from SAP PI to SQL Server using SSIS. Highly Appreciate your response.

Thanks,

Vishal Jharwade

Setting Vpd user before running SSIS's Lookup Query against Oracle DB.

$
0
0

I need some assistance from SSIS expert if someone can help me here.

QQ – I am using SSIS(Sql Server Integration Service) for task on hand and using lookup feature with oracle db query – problem is I need to set VPD user (Virtual Private Database) before running my lookup query. Need some advice on that how that can be accomplished.

Tried running Execute Sql Task before running data flow task.

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>