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

SSIS survey for next set of improvements

$
0
0

SSIS product team is looking forward to your feedbacks and suggestions to help us prioritize our next set of improvements. We will appreciate it if you could take some time to provide your insights in the following survey:

http://www.instant.ly/s/yiUFP

Ting Cao
Program Manager
Microsoft


Code: 0xC0208452 Source: Data Flow Task ADO NET Destination [86] Description: ADO NET Destination has failed to acquire the connection {}. The connection may have been corrupted.

$
0
0

Hi There!

I have created one package (1) to import data from Flatfile(csv), (2)Clean It  then (3)send clean rows to SQL Database.

This package was working fine before. Since I have decided to deploy this package to automate this process, I have no clue what went wrong but this doesn't run anymore. Flatfile and Database are on same windows box. We are running SQL 2008.I have attached some screenshot to make this conversation more concise.

Your time and efforts will be appreciated!

Thanks,

DAP

SSIS Derived If Statement

$
0
0

Hi All,

i was wondering if someone could point me in the right direction -i'm struggling with an Expression. i'm needing to say that if column A and column B are NULL then the Derived Column value would be the Value of Column C. - is this straight forward?

are you also able to hold that text, until the condition is met again? - so when the condition is true and column c's value is used - hold that value until the condition is met again?

Hoping i've explained it OK.

regards

Jason

Export SSIS Project: non-SSMS way

$
0
0

Fellow forum members,

I was wondering if there is any way we can export a SSIS project from the catalog using scripts.

What am to trying to achieve is automate the deployment of our SSIS projects. If the project is already deployed I would like to create a backup ispac before the project is over-written. I understand that the source control should be mature enough to to alleviate the need for backups but we are not there yet.

So is there any non SSMS i.e. not manual way of exporting SSIS projects to an ispac.

Thanks in advance.


http://btsbee.wordpress.com/

Create Folders Dynamically by looping in a database table and move the files in the folder

$
0
0

I am new to SSIS, and would like to seek help in doing some requirements.  I need to create Folders based on the records of a certain table and download files from the same table and move files to related folder created.  For example, my table contains the records below:

UsersNumber                         VersionData

481802                     481802__FW: Advisory Action mailed 07/07/14 // 47004.000750.html
481802                     481802__47004.000750.Advisory.pdf
511278                     511278__Payment of Issue Fee // 72167.020263.html
511278                      511278__IF.pdf
481802                      481802__Advisory Action mailed 07/07/14 -- 47004.000750.html
481802                      481802__47004.000750.Advisory.pdf
523352                      523352__47004.000806.FR.pdf
523352                        523352__47004.000806.INTADec.pdf

I need to create folders based on the UserNumber field, i.e. I need SSIS to dynamically create the folders 481802,481802,511278 and download files from versionData and move files to UserNumber

 

Can anyone show me the steps to do this?  Thank you in advance.

ssis conditional split - filter empty column value

$
0
0

hi

i hvae blank value in my table

which i need to insert into another table based on condition.

i am using conditional split and doing 

id == "" , which is not working ,also len(id)==0 also not working

whats issue


Alerting for a SSIS 2005 task that runs indefinitely

$
0
0

Hi,

for a my SSIS 2005 package it occurs sometimes that a task runs in a indefinite manner (the color of the box remains yellow). Is it possible to capture a such event in order to alert a dba administrator? How?

Many thanks

Programmatically creating Transformation Script Component

$
0
0

Does anyone have any examples of programmatically creating a Transformation Script Component (or Source/Destination) in the dataflow?  I have been able to create other Transforms for the dataflow like Derived Column, Sort, etc. but for some reason the Script Component doesn't seem to work the same way.

I have done it as below trying many ways to get the componentClassId including the AssemblyQualifiedname & the GUID as well.  No matter, what I do, when it hits the ProvideComponentProperties, it get Exception from HRESULT: 0xC0048021

IDTSComponentMetaData90 scriptPropType = dataFlow.ComponentMetaDataCollection.New();

scriptPropType.Name = "Transform Property Type";

scriptPropType.ComponentClassID = "DTSTransform.ScriptComponent";

// have also tried scriptPropType.ComponentClassID =typeof(Microsoft.SqlServer.Dts.Pipeline.ScriptComponent).AssemblyQualifiedName;

scriptPropType.Description =

"Transform Property Type";

CManagedComponentWrapper instance2 = scriptPropType.Instantiate();

instance2.ProvideComponentProperties();

 

Any help or examples would be greatly appreciated!  Thanks!


Error in deploying ispac file

$
0
0

Can someone help me with the below error please :

I am using a batch file to execute the cmd line which deploys the package. It is showing me the below error:

Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notifi cation from a service application.    at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)    at Microsoft.NetEnterpriseServers.ExceptionMessageBox.Show(IWin32Window owner)    at Microsoft.SqlServer.IntegrationServices.Wizard.Common.WizardMessageBox.Show(IWin32Window owner, Exception error, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, String helpLink)    at Microsoft.SqlServer.IntegrationServices.Wizard.Common.WizardMessageBox.Show(IWin32Window owner, Exception error, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)    at Microsoft.SqlServer.IntegrationServices.Wizard.Common.WizardMessageBox.Show(Exception error)    at Microsoft.SqlServer.IntegrationServices.Deployment.Program.Main(String[] args) 

For Each Loop: Truncation error on excel field

$
0
0

In my SSIS package, I'm using a WMI file watcher combined with a ForEach loop to process excel files and load them into a SQL Server database as they are deposited in a drop box folder. Recently I've been getting truncation errors on one of my fields (Comments). I know that this is because Excel is scanning the first 8 rows to determine column length and there are several records that have a comments field that is greater than what excel determined.

I've tried going to the excel editor in my advanced editor and setting the data type length of my external and output columns to a larger length (500 W_STR vs 255 W_STR) but I get a warning saying that the data type is not valid. I've tried adding IMEX=1 to my extended properties in my excel connection string but no dice. Still getting truncation errors.

I was wondering if anyone had any thoughts or suggestions? I'm always getting new files so the comments field will potentially always encounter this type of error. This SSIS package runs on a production server so making a Registry change to the excel drivers regarding the scanning of the first 8 rows is not an option for me.

Migince

SSIS 2012 job hangs dataflow task

$
0
0

hi all,

i have 2 data flow tasks in a package that run based on parameters.

the package is being run as a sql agent job using catalog execution model.

the job sometimes hangs without reason. also, when i looked at the target sql tables, only few rows have been loaded into the 2 target tables and stopped when the job hanged,

the data flow tasks loads data from source into a target sql table.please advice on why the job hangs, are there issues with the catalog model of ssis 2012 that is causing this?

Exec SQL Task - SQL Statement

$
0
0

Hello All,

I hope I am able to clearly explain what I need assistance with.

There are some tools that are used to import data into an application; therefore, there are mulitple Import Sources.

Currently, I am working on a project to have multiple excel files imported into Sql. All the data from those files are imported into one table I will call TEST. I will call this import source 'Measures'

As soon as the data is imported into dbo.TEST, the ImportAudit table shows the AuditID, Row Count, Reporting Month and Timestamp.

My ImportAudit table is similar to this:

From dbo.TEST, the data is distributed to 5 other tables. In those tables, there is a column titled 'AuditID', which will be the same value in the ImportAudit table.

Within the 5 tables, there is a table called Table-A that will receive 200 rows from dbo.TEST.

I would like the value of column 'AuditID' in dbo.ImportAudit (321) to be listed in the 'AuditID' column for all 200 rows in Table-A. (Meaning that all 200 rows in the 'AuditID' column will have 321) My plan is to use an Exec Sql Task with a sql statement. Can you please assist me with the statement?

Your help is greatly appreciated

Is there a way to Insert Data into a Lookup Column Type on a SharePoint List Destination in SSIS?

$
0
0

Greetings.

I have successfully worked out inserting SQL data (2008 R2) into my 2010 SharePoint list (New, Update, Delete) by creating an SSIS Data Flow Task as outlined here:
http://fsugeiger.blogspot.com/2010/01/synchronise-sql-table-with-sharepoint.html

However, the problem I am running into is inserting data into the SharePoint Columns that are "Lookup" column types. I verified that all of the values I am copying from SQL into the SharePoint lookup column exist in the customn list it is pointing to. It is important to have this column be a lookup column as it links to another custom list that has many more columns of related information.

I have read and re-read the SharePoint SSIS Adapters 2011.docx from http://sqlsrvintegrationsrv.codeplex.com/ and the only section that seems to apply is this:
"Looking Up Values in a SharePoint List
If you have to look up a value in a SharePoint list, you can use the Lookup transformation in your data flow, and use the SharePoint List source to load the lookup table. You may have to add a Derived Column transformation or a Script component that splits data in the lookup column on the ";#" delimiter to separate the ID value from the description.

If you are replacing values in your data with the values that you look up in the list, then loading the changed data back into SharePoint, you only have to include the ID from the lookup column. SharePoint ignores the description if you include it."

I am not sure if the above statement means that I should be passing the assocaited ID's other than the actual data into the SharePoint List destination. If that is the case, that will not really work as the lookup contains hundreds of rows. Not too mention I have several of these lookup column types pointing to several different lists.

Any guidance in how I can put data into a SharePoint Lookup column type via Data Flow Task would be so much appreaciated.

Thank you.

My errors are:

Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x1 - Unspecified error, such as too many items being updated at once (batch), or an invalid core field value.
 
Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [1903]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32 inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
 
Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SharePoint List Destination" (1903) failed with error code 0x80131500 while processing input "Component Input" (1912). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will




SSIS Connection String Expression

$
0
0

Hi 

The bellow Expression shows my connection string expression 

@[User::foldername]+"\"+ @[User::filename]

it giving error, here i am passing two variable one for folder path and another for filename

why it is showing error , how will i place "\" in between folder path and file name 

please help in this



Regards

Malli


ssis count rows

$
0
0

hi 

i have data in 1 table like this:

firstname,  lastname , dob

lisa            kar              02/03/2013

kit             care              03/04/2013

which i need to compare another table which is big one

and have column

firstname  lastname         dob                    id

lisa           kar              02/03/2013           23

lisa           kar               02/03/2013           24

i need to see if lastname,firstname and dob match ,if so it i get more than 1 different id  , 

i need to dump that data into some table and if i match just one 1 id i need to redirect somewhere else.

i tried merjoin but dont know how to count if i get more than 1 id and my table is 2 big so i cant sort it

any other way


Sharing local temporary tables across data base connections in SSIS

$
0
0

Is it possible to share temp tables between two connection managers as  2 separate execute sql task in ssis.

I am not able to do so.

I have two execute sql tasks which uses two different connection managers.

So in one execute sql task i create the temp table and put data into it

In the second sql task, i use the temp table to do some calculations. I set delay validation to true and also set the connection managers to share same connection property to true. Still no luck.

It errors on second sql task saying Invalid temp table....can anyone help. It will be very much appreciated.

Thanks

Checking excel file and loading them

$
0
0

Hi guys, one question: I got hundreds of excel file that I load in a table (sql). Now my concern is to load two or more file that are the same. But using the parameter that should be impossible. My really concern is another, there is a girl that collect these data from our software, after this she label manually the file. Now I should check if the name of the file is equal to the first colum data. Let's say that the file is Paris1VB, in the first column I should have Paris1VB000005 for example. I can use left or Instr but whaat I really need is the logic to check these file. 

Any advice?

Thanks

SQL 2012 - DTS Script Task - Exception has been thrown by the target of an invocation

$
0
0

The error is thrown while trying to access system variables from within DTS Script Task.

String strPackageName = (string) Dts.Variables["System::PackageName"].Value;

Same results with other variables, such as System::MachineName...

Other "DTS" data is available, the following doesn't error out:

String strSourceFileName = (string) Dts.Connections["SourceConnectionFlatFile"].ConnectionString;


A truncation occurred during evaluation of the expression

$
0
0

 while evaluating the below expression in Property expression  editor .  I got  "A truncation occurred during evaluation of the expression"  error

Expression :REPLACE(@OutputFilePath, ".xls", "_"+ REPLACE((DT_WSTR, 10)(DT_DBDATE)GETDATE(), "-","")+REPLACE((DT_WSTR, 10)(DT_DBTIME)GETDATE(), ":","")+".xls")

kindly help resolving this

ssis package creation for pivoting column values in two rows

$
0
0

Input File looks like below..Starts at row7

Columns are fixed. Rows are not fixed

For every quarter months, we have both Avg and Period values and for non-quarter months, we have value only for Avg

 AvgAvgAvgAvgAvgAvgPeriodPeriod
CCI1/31/201402/28/201403/31/201404/30/201405/31/201406/30/201403/31/201406/30/2014
AA3.67 3.67 3.67 3.67 3.67 3.67 3.73 3.97
AB8.40 8.40 8.40 8.40 8.40 8.40 8.95 6.95

Output should be like thiis

CCITypeDateValue
AAAvg1/31/20143.67
AAPeriod1/31/20140
AAAvg2/28/20143.67
AAPeriod2/28/20140
AAAvg3/31/20143.67
AAPeriod3/31/20143.73
AAAvg4/30/20143.67
AAPeriod4/30/20140
AAAvg5/31/20143.67
AAPeriod5/31/20140
AAAvg6/30/20143.67
AAPeriod6/30/20143.97
ABAvg1/31/20148.40
ABPeriod1/31/20140
ABAvg2/28/20148.40
ABPeriod2/28/20140
ABAvg3/31/20148.40
ABPeriod3/31/20148.95
ABAvg4/30/20148.40
ABPeriod4/30/20140
ABAvg5/31/20148.40
ABPeriod5/31/20140
ABAvg6/30/20148.40
ABPeriod6/30/20146.95

Viewing all 24688 articles
Browse latest View live




Latest Images