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

unable to load package

$
0
0

I have created an SSIS package in BI dev studio which i can debug and run fine. I have saved the dtsx file to a production server which calls it using dtexec as part of a batch script (we are migrating from foxpro). I am getting the following error that i dont understand.

I dont know if this is relevant but i cant execute packages by double clicking them as DTexecui is not installed (not sure why as i have installed the client tools and integration server). Hardware is Dell poweredge 2850 dual xeon 2gb ram with win 2k sp4 and sql 2005 sp1.

Microsoft (R) SQL Server Execute Package Utility
Version 9.00.1399.06 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Started:  12:29:19
Error: 2006-07-06 12:29:20.75
   Code: 0xC0011007
   Source: {B06EB426-BBE8-4E09-87FC-32ED753A142F}
   Description: Unable to load the package as XML because of package does not ha
ve a valid XML format. A specific XML parser error will be posted.
End Error
Error: 2006-07-06 12:29:20.79
   Code: 0xC0011002
   Source: {B06EB426-BBE8-4E09-87FC-32ED753A142F}
   Description: Failed to open package file "\\SERVER_A\Scripts\CLIENT\Package.dtsx" due to error 0x800C0006 "The system cannot locate the object specified.".  This happens when loading a package and the file cannot be opened or loaded correctly  into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.
End Error
Could not load package "\\\\SERVER_A\Scripts\CLIENT\Package.dtsx" because of error 0xC0011002.
Description: Failed to open package file \\SERVER_A\Scripts\CLIENT\Package.dtsx" due to error 0x800C0006 "The system cannot locate the object specified.".  This hap
pens when loading a package and the file cannot be opened or loaded correctly in
to the XML document. This can be the result of either providing an incorrect fil
e name was specified when calling LoadPackage or the XML file was specified and
has an incorrect format.
Source: {B06EB426-BBE8-4E09-87FC-32ED753A142F}
Started:  12:29:19
Finished: 12:29:20
Elapsed:  1.719 seconds


 

 


Running SSIS package from C# application fails if version is not the same

$
0
0
We are running SSIS package from C# application using

Microsoft.SqlServer.Dts.Runtime.Package class. It fails with the error messages "..cannot run on installed  (64-bit) of Integration Services. It requires Standard Edition (64-bit) or higher" or "To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher." The SQL edition we have is Enterprise, so it should be sufficient.  The same package runs fine on the same machine using Dtexec utility, which proves that environment is not to blame.

One of possible reasons for the problem is that we are using Microsoft.SQLServer.ManagedDTS assembly from SQL 2008 R2 version and trying to run it on machine, which has SQL 2012 version. However we have to do this as C# application should run both on SQL 2008 R2 and SQL 2012.

Any workaround?

Convert 10Feb1987 to 1987-02-10 using SSIS expressions - please help!

$
0
0

Hi,

    I have a text file source which has column 'BirthDate'. The values are in the format 10Feb1987. It has NULL values also.
Now, I have to load this values into a Table -column 'BirthDate' and its datatype is DateTime.

I need to convert 10Feb1987 to 1987-02-10 and load the data. If the value is NULL, it has to be NULL (not any default date value).

In the source, I should not select the Retain NULL values checkbox because of some other business reasons.

Can you please give me your inputs as I am a beginner in SSIS?

Thanks in advance!

Empty files Data Flow Task (SSIS 2005)

$
0
0

In My Data Flow Task in SSIS (SQL 2005) I work with a Flat File Destination to capture my error output. Allthough when there is no error output SSIS creates an empty file. Is there a way to prevent this?
I tried to work with a record count that sets a parameter and a conditional split, but unfortunately without good results....

I know I can delete the file afterwards on the Control Flow, but I don't think that the proper solution. I simply don't want to create rubbish!
Thanks in advance for your answers!

Koen Schutten
BI Specialist, MCA/Gemini

Fuzzy Lookup Alternative

$
0
0

I am currently working on an solution that consists of 10 Packages which utilize a fuzzy lookup to perform some matching functionality amongst other things. In some cases there are 3 fuzzy lookups in a package running in parallel. We have one reference table, containing 30Million records, that it used for the reference of all the fuzzy lookup.

We have created indexes for each fuzzy lookup component which has meant that there are more than 13 indexes on the same reference table. When the packages run they take forever as a large amount of time is spent on building the indexes in the pre-execute phase.

It appears to me to be very inefficient to have several indexes on the same reference table which in some cases are used to do a fuzzy lookup on the same fields. Does anybody have an alternative to this setup that they may have used or are aware.

Is there anyway to improve the performance of the lookup?

How to add variable in SSIS to check >14months date from today and pass this variable as input variable to Stored Procedure ?

$
0
0

Hi Every Body,

I am using SQL and BIDS 2008 and new to SSIS.

Please help me on this scenario.

we have package  already and now, i am working on CR. 

i want to create a variable in SSIS to check date >14months from current date.after creating a variable i have to pass this variable as input variable to stored procedure.

Thanks in advance.


how to change the package configuration path of more than 500 ssis packages..like moving from test to production environment

$
0
0

Hi All,

We have developed more than 500 packages in the dev enviroment and all the indiviual packages has individual config file.

All the files are stored in a sharePath called \\DevServer\externalConfig

Now we are planning to move it to the testing environment.

So all the packages need to point to the config file stored in the testing environment sharePath  \\Testing\\externalConfig

In this we may end up in opening each and every ssis package to modify the config file sharePath..it will take lot of time...

What would be the best approach to work with? We are not allowed to use Environment,Register and SQL Server to save the config. we are allowed to use XML Configuration alone.

Even we dont have acceess to the \\Testing\\externalConfig path so we cannot open the package in the dev environment to change the config file path in each and every packages...

Please help me to save time


ilikemicrosoft


Export the stored procedure resultsets to Excel

$
0
0

Hi,

I am new to SSIS. I want to export the resultsets of a stored procedure to Excel.My procedure is having three different result sets.I want show these result sets into three Excel sheets.Each sheet should be named accordingly.Can anybody hep me to achive this?

Regads,

Muhammed Shakeer


Muhammed Shakeer



Should columns having their SortKeyPostions set be deleted in a Union ALL transformation?

$
0
0

I'm developing an ETL to load data from a source system into a DW.

I'm using an OLE DB Source to select data from a staging table. I'm using an order by statement in the select to sort the data. In the advance editor for the OLE DB Source, I'm setting isSorted to TRUE and 4 of the columns SortKeyPositions.

I'm using 3 of the columns in Lookup transformations to get there DW key values. One of the 3 columns could be coming from the source system as NULL. I'm using a Conditional Split transformation to assign a DW "null" key value. Then I'm using a Union All transformation to merge the two pipelines back together. In the Union All, I'm deleting the 3 columns I used in the Lookup and Conditional Split transformations.

The 4th column I'm using in a Lookup transformation to determine if I insert or delete into my DW table. Will the records be inserted in sorted order? Should columns having their SortKeyPostions set be deleted in a Union ALL transformation?

How do I use an XML file as datasource when creating SSIS package in 2008?

$
0
0
How do I use an XML file as datasource when creating SSIS package in 2008?

How to deal with NULL values in SSIS expression for Date clumns

$
0
0

Hi,

  I have a text file source which has column 'BirthDate'. The values are in the format 10Feb1987. It has NULL values also.
I have to load this values into a Table -column 'BirthDate' and its datatype is DateTime.
I need to convert 10Feb1987 to 1987-02-10 and load the data. If the value is NULL, it has to be NULL (not any default date value).


 I used the below expression in SSIS derived column expression - It is working fine if it has values. But it is not working if it has NULL value.

(DT_DBDATE)(((DT_WSTR,2)((SUBSTRING(Birthdate,3,3) == "JAN") ? "01" : (SUBSTRING(Birthdate,3,3) == "FEB") ? "02" : (SUBSTRING(Birthdate,3,3) == "MAR") ? "03" : (SUBSTRING(Birthdate,3,3) == "APR") ? "04" : (SUBSTRING(Birthdate,3,3) == "MAY") ? "05" : (SUBSTRING(Birthdate,3,3) == "JUN") ? "06" : (SUBSTRING(Birthdate,3,3) == "JUL") ? "07" : (SUBSTRING(Birthdate,3,3) == "AUG") ? "08" : (SUBSTRING(Birthdate,3,3) == "SEP") ? "09" : (SUBSTRING(Birthdate,3,3) == "OCT") ? "10" : (SUBSTRING(Birthdate,3,3) == "NOV") ? "11" : (SUBSTRING(Birthdate,3,3) == "DEC") ? "12" : "00")) + "-" + (DT_WSTR,2)(SUBSTRING(Birthdate,1,2)) + "-" + ((DT_WSTR,4)(SUBSTRING(Birthdate,6,4))))

Can you please help me on how to deal with NULL values in the expression?

Thanks in advance!

Loop on control flow so file loads in excel seperatly

$
0
0

Hi

I have one pre existing package which has source which exec a sp with parameters and dump that into excel file at a location now it is something like this,

exec [dbo].[sp_name]
 @planlist = '1,5,20'

so this is what we have in a source, and working great now the problem is we got some more plan ids like 4,27,28 and i have to built in one package only so it should be like loop like,

[dbo].[BHS_UP_PROVIDER_METRICS_PLAN_NETWORK]
 @planlist = '1,5,20' ---- takes this and load in one excel with given name

goes for a loop and 

[dbo].[BHS_UP_PROVIDER_METRICS_PLAN_NETWORK]
 @planlist = '4' ---- takes this and load in one excel with given name

then 

[dbo].[BHS_UP_PROVIDER_METRICS_PLAN_NETWORK]
 @planlist = '27' ---- takes this and load in one excel with given name

then 

[dbo].[BHS_UP_PROVIDER_METRICS_PLAN_NETWORK]
 @planlist = '28' ---- takes this and load in one excel with given name

and so on

now as you see planid could be single value or multiple...how to take care of this in a single package?


ANK HIT - if reply helps, please mark it as ANSWER or helpful post

Derived Column Transformation Editor Expression

$
0
0

How can I get this converted in the Derived Column Transformation Editor?

@SQLQuestions = 'isnull(['+ shortdesc +'], '''+ prDefault+''') as '''+replace(PrintDesc,'''','''''')+''','


Error Occured while skipping data rows

$
0
0

Hello

I'm having a problem with a flat file source in that the package throws an error straight away. The error I get is as follows:

Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
Error: 0xC0202091 at Data Flow Task, Flat File Source [2]: An error occurred while skipping data rows.
Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Flat File Source returned error code 0xC0202091.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

I've tried multiple things to resolve this.. Changing the OutputColumnWidth in the flat file connection manager, checking the file for any irregularites in notepad++ (each line ends as it should with CRLF), the file is encoded in UTF-8 without BOM and now I'm stumped as to what the problem could be. Any help would be appreciated.

Thanks.

SSIS Data flow task error -2146233033

$
0
0

What is error -2146233033?

I created a Data flow task that copy data from ADO Net Source to a flat file destination. I am redirecting the records with errors in another flat file. One of my records has error code -2146233033 and I can’t find the description for this code. I looked in MSDN library "Integration Services Error and Message Reference" , but it’s not there.


Need help with C# code to remove the specific code from a txt file

$
0
0

i need to load a file into the database but i have header in between the rows as this a file generated from a weird system

EX: 

col1 col2 col2 col4

col5 col6

1     2      3     4      

5     6

1     2      3     4      

5     6

1     2      3     4      

5     6

Date 1/3/2013

col1 col2 col2 col4 col5 col6                             

1     2      3     4       5     6

Soo i have header in between the rows soo i have to remove the date and header, i dont have any idea about the c# script

Check if Full Resultset returned by Exec SQL task has some rows

$
0
0

Hi,

I have an Execute SQL task with the below stored procedure. It returns a resultset to an object variable. How do I know if the resultset has returned something or not?

StoredProc

EXEC dbo.storedproc1

Resultset

col1col2

str1str2

str2str3


cherriesh

Performance, handling 1.2 million rows takes 7-8 hours?

$
0
0

Hi!

I'm working on a project restructuring some data using SQLIS. The problem is one package that is handling about 1.2 million rows takes about 7-8 hours to complete.

To my question, is there any of the dataflow components that are know to be slow that you should avoid regarding performance issues?

The following list is a brief specification over the component that are contained in the package:

-------------------------------------------------------------------------------------

3 OLEDB Data sources.
2 OLEDB Data sources.
3 Derivied column objects.

1 Union which unions all rows from the sources above.

2 look up components that look up rows for the all rows after the union component.

1 script component calulating a new surrugate key for all rows (sk=sk+1)

1 Conditional split splitting up all rows into 2 separate flows

For each of these separate flows there is a 2 look up components.

-------------------------------------------------------------------------------------

:)

I don't know if the above was much of help, but I hope it will give you a brief overview, there are no complicated script components involved.

The server running the package does nothing else but executing the package on a dual core Pentium 4 at 3.2 GHz and has 2GB of RAM.

-------------------------------------------------------------------------------------

When the package has started it seems to be IDLE for 7 hours, taking almot 0% of the processortime... :S

Anyone who has had a similar problem?

 

SSIS package runs in DtexecUI but fails in Dtexec

$
0
0

The same package (on the same machine) runs fine in DtexecUI but fails in Dtexec with the error message  DTS_E_PRODUCTLEVELTOLOW. We checked both 32 bit and 64 bit version of Dtexec, they both fail.

I was under impression that DtexecUI and Dtexec are powered by the same engine, is it wrong? Why their functionalities are so different?

Check Excel WorkBook exists, if not create empty

$
0
0

Experts,

We want to check if "C:\File.xlsx" exists or not, if no than want to create it.

Imports Excel = Microsoft.Office.Interop.Excel

        Dim Exl1 As New Excel.Application
        Dim strFile As String
        strFile = "File.xlsx"
        Dim WB As Excel.Workbook
        'strFile = Trim(TextBox1.Value)
        If Len(strFile) = 0 Then Exit Sub

        Dim DirFile As String
        DirFile = "C:\" & strFile
        If Len(Dir(DirFile)) = 0 Then
            'MsgBox("File does not exist")
            WB = Exl1.Workbooks.Add("C:\File.xlsx")
        Else
            MsgBox("File does exist")
        End If
        WB.Save()
        WB.Close()
        Exl1.Quit()
        Runtime.InteropServices.Marshal.ReleaseComObject(Exl1)

        Dts.TaskResult = ScriptResults.Success

Can you please help me with the vb.net or C# code?

Thanks

Kumar


Please do let us know your feedback. Thank You - KG, MCTS

Viewing all 24688 articles
Browse latest View live