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

Job fail log information in SSIS

$
0
0

Hi All,

I want to create a log file for job failure information like jobname,Stepname,Errordescription,Runstatus,startdate and End Date.

I want to create this file(.txt) automatically in the location, if the job fails.

How can we achive this...

Thanks in Advance.


'OraOLEDB.Oracle.1' is not registered on local machine

$
0
0

Hi all of you,

Primary platform is Framework 2.0 running over XP.

 

I've got an issue with a SSIS package which uses Oracle Provider for OleDB:

 

Test connection failed because of an error in initializing provider 'OraOLEDB.Oracle.1' is not registered on local machine

 

Nevertheless, MS Ole DB Provider for Oracle works fine. Let me know where am I failing.

 

Thanks in advance,

WEB Service task excuting error "method not found"

$
0
0

Hii All,

I am the beginner of ssis, and on executing the package I am getting error :

[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Method 'ProxyNamespace.BizTalkServiceInstance.Submit' not found..
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".

Please help me out..

Metadata changes - can I stop the code being modified?

$
0
0

I made a change to the database and updated the data flow task accordingly.

The changes to the database were dropped.

The next time I looked at the data flow task I saw that the fields that I had created were no longer available for input or output.

The fields could be seen in the automatically generated XML code.

Once the package was saved the fields were removed from the XML code too.

Please can someone explain if there is wat to stop the XML code being updated should the database schema change. 

How to write contents of one file to another file

$
0
0

We have some file Recon80 (RECON80HB01141005.TXT) which need to be modified . i.e we need to add 2 more columns in the file and write the file record into other file with trailer information. Please suggest to accomplish along with code snippet in SSIS 2008.

PFA

Dynamic oledb destination table with odd columns in table

$
0
0

Hi,

1. I have to load table name dynamically in OLEDB destination.

2. My columns numbers are odd in all destinationa table.

Some boby please help me how can I proceed in this.

Thanks in advance


Thankx & regards, Vipin jha MCP

Cannot truncate table because it is being referenced by a FOREIGN KEY constraint.".

$
0
0

Good Morning,

I have a package that has a sql task which truncates the tables before loading the data. I know these tables cannot be truncated since they have PK on them. I tried to use the DROP and  CREATE and i'm still getting the same error. If i canot use TRUNCATE, DROP and CREATE........ What is the best solution? Thanks

Union all, many worksheets

$
0
0

Hi

I have 3 Excel files with exactly the same worksheets and column names. How to put / copy all of them in ONE Excel file containing (again)  the same worksheets and column names? I have plenty of worksheets. If I simply use only Union All I have to manually change the current worksheet in all 3 files and run the project again until all worksheets are processed. I would like to make somehow a loop through worksheets. Could you please explain me how to use For Each Loop for this task? Thanks!


gec


Running package programmactically from console causes error if package uses connection in Connection Manager.

$
0
0

Hello my friends:

I attempted to run a few packages programmatically using the code and solution on this page:
http://msdn.microsoft.com/en-us/library/ms136090.aspx

I observed that the script and process failed when I use the connection in SSIS/SSDT connection Manager in Visual Studio 2013. Meaning if I create a Connection for the Project in the Connection Manager and use it on tasks.

However, the project and packages will run just fine if I simply add individual connection to each task where needed and do not use the Connection manager.

If I use the Connection Manager, I get this error: This only happens when I run the package programmatically,
if I run the package directly from Visual Studio, I get no errors.

Error Message:
Error in Microsoft.SqlServer.Dts.Runtime.Package/ : The connection "{0E6E938E-B0
84-45E6-9110-0D532BD61787}" is not found. This error is thrown by Connections co
llection when the specific connection element is not found.

Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : Cannot find th
e connection manager with ID "{0E6E938E-B084-45E6-9110-0D532BD61787}" in the con
nection manager collection due to error code 0xC0010009. That connection manager
 is needed by "SQL Server Destination.Connections[OleDbConnection]" in the conne
ction manager collection of "SQL Server Destination". Verify that a connection m
anager in the connection manager collection, Connections, has been created with
that ID.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : SQL Server Des
tination failed validation and returned error code 0xC004800B.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : One or more co
mponent failed validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors during ta
sk validation.

Connection Manager Screenshot:


I am using that connection in an SQL Server Destination Task:



And here is the code:

    class Program
    {
        class MyEventListener : DefaultEvents
        {
            public override bool OnError(DtsObject source, int errorCode, string subComponent,
              string description, string helpFile, int helpContext, string idofInterfaceWithError)
            {
                Console.WriteLine("Error in {0}/{1} : {2}", source, subComponent, description);
                return false;
            }
        }

        static void Main(string[] args)
        {
            string pkgLocation;
            Package pkg;
            Application app;
            DTSExecResult pkgResults;

            MyEventListener eventListener = new MyEventListener();

            pkgLocation =
              @"C:\Users\Administrator\Desktop\ExampleConnectionMgr\DataExtractionB.dtsx";
            app = new Application();
            pkg = app.LoadPackage(pkgLocation, eventListener);
            pkgResults = pkg.Execute(null, null, eventListener, null, null);

            Console.WriteLine(pkgResults.ToString());
            Console.ReadKey();

        }
    }

Thank you everyone!





how to use the gmail account using in smtp connection in ssis?

$
0
0

hi 

how to send the mails using send mail task to configure the smtp connection of the gmail account.

Can you give me the name of that gmail server.

TanX


how to optimize parallel bulk inserts waiting on IMPPROV_IOWAIT

$
0
0

is there a way to optimize a parallel bulk insert that's waiting on IMPPROV_IOWAIT? (get rid of the waits)

so far tempdb has >= number of files than then number of parallel loads and so is the destination database and  table is partitioned.

we are using the SSIS bulkload operator the destination table haswith no indexes (a heap)

there are 45 different parallel loads - file size is  205 MB we have a 48 core machine on 250 G of RAM and currently the load takes 3minuted 17 seconds which I think might be optimized better

this post is somewhat related to (see below) that is now resolved

 https://social.technet.microsoft.com/Forums/en-US/54cdbf4b-3471-4e27-9fc8-a12dba2e249c/bulk-insert-parallel-load-causing-blocks?forum=sqlintegrationservices


eddy.a

ssis server and sql server instance installation

$
0
0

hi,

this might be a basic of SQL server installation , but never got a change to think or work on it(installation of servers) so I am asking to the Gurus :).

I want to know how an SSIS package executes when different types of installations for SSIS and SQL server  are done .

I will write down the scenarios:

1. when sql server and SSIS is installed on the same physical server. and they are the default instance on the server .

2. when sql server is a default instance and ssis is a named instance or vide versa but they are on the same physical server.

3.when sql server and ssis server are installed on different servers and the packages are run on ssis server using sql agent job from an instance which is installed on ssis server.

Please Guide me to what are the drawbacks and benefits of such configurations .

How to get more than 255 characters in excel 2007

$
0
0

Hi all

How to get more than 255 characters in a column in excel 2007 ??

am loading data from a table which has a column with varchar(max) to an excel through SSIS package,

it gives the truncation error, as that column contains more than 255 characters.

or does excel 2007 supports only 255 characters in a cell ?? 

Thanks in advance

Why do we want use 'Data Flow Task' to 'Data Flow Tast' in Control Flow?

$
0
0

I found an example in my company's SSIS package folders. In Control Flow, it has one data flow connected to the other. Both of them are importing data from flat file and then exported to database. I think these two are kind of at the same level and cannot see any reasons to conncect them together.

Thanks & Happy Thxgiving,

Gavin 

The column "CountryId" can't be inserted because the conversion between types DT_UI4 and DT_I8 is not supported.

$
0
0

I have a xml source  in that i have a column  which name as " CountryId"  ,

when i transfer the data from xml to sql server im getting the bellow error

error msg :  

TITLE: Package Validation Error
------------------------------

Package Validation Error

------------------------------
ADDITIONAL INFORMATION:

Error at Data Flow Task [SQL Server Destination [1372]]: The column "CountryId" can't be inserted because the conversion between types DT_UI4 and DT_I8 is not supported.

Error at Data Flow Task [SSIS.Pipeline]: "component "SQL Server Destination" (1372)" failed validation and returned validation status "VS_ISBROKEN".

Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.

Error at Data Flow Task: There were errors during task validation.

 (Microsoft.DataTransformationServices.VsIntegration)

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

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


SSIS: Why do columns become misaligned when importing flat files?

$
0
0

Hi All

I am stumped with the following.

When I try to load a fixed length flat file into a table, the first few thousand records load correctly but then the columns start going out of sync.

Visually it looks like the data is drifting off to the right. Below is what the table looks like when the load completes:

Col1    Col2    Col3    Col4

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

1        1         1         1

1        1         1         1

  1        1         1         1

   1        1         1         1

    1        1         1         1

      1        1         1         1

        1        1         1         1

Additional info:

1. The file has 400 000 records.

2. The first few thousand records load OK.

3. Source file is a flat file, fixed length, no delimeters.

4. All rows are same length, with LFCR.

I tried using a script task to check with C# if all rows are the same length and has the same line terminator, and could  not pick up anything out of the ordinary.

What could be the cause?

Exception has been thrown by the target of an invocation.

$
0
0
WE ARE USING SCRIPT TASK TO SEND A STATUS MAIL WITH ATTACHMENT.PROBLEM IS ITS WORKING FINE ON EVERYDAY, BUT ITS NOT WORKING ON SUNDAY AND EXCEPTION ITS THROWING AS "Exception has been thrown by the target of an invocation."THIS IS CONFIGURED IN SSIS . IN SERVER LEVEL THERE IS MAINTENANCE ACTIVITY AT THAT TIME.

Passing dynamic table name in ADO. net destination

$
0
0
I am new to SSIS and I have a requirement where i need to pass dynamic table name in ADO .net destination .
My package contains an "Execute Sql task" in the control flow which computes the destination table name to be provided at run time and stores it in a variable expression"@[User::Table_name]"(which has a scope of full package). 


Now, the problem I'm facing right now is that , I am unable to use this variable expression in the ADO .Net Destination .
I need to pass this variable expression as the table name in ado .net destination.

But, whenever I use this variable in place as the table name I keep on getting this error and my package fails:- 
[ADO NET Destination [403]] Error: The Table or View name is not expected. \n\t If you are quoting the table name, please use the prefix " and the suffix " of your selected data provider for quotation. \n\t If you are using multipart name, please use at most three parts for the table name. 

Although ,I am able to run my package when i am providing the existing(static) table name.So there is nothing wrong with the  package.

Tried a lot of things still not working..Please help...

SSIS Package Hanging all of a sudden on simple data flow task (Expands Tempdb exponentially)

$
0
0


We have an SSIS package that has 100s of tasks that has been running fine for months.  All of a sudden a couple of days ago the above task started hanging and the tempdb started blowing up exponentially and the task never finishes.  We have tried changing the commit batch size to 10000.  Disabling the triggers on the table we are inserting into.  We are only trying to insert around 20k records.  We have done many more before. The data gets inserted into the table but it won't move on to the next step.  We have disabled all the indexes and that doesn't seem to work either.  Any help would be greatly appreciated

The site won't allow me to insert pictures.  

regarding ssis

$
0
0

Hi,

how can we schedule 20 packages at a time in ssis

Viewing all 24688 articles
Browse latest View live


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