Quantcast
Viewing all 24688 articles
Browse latest View live

Execute pacakge task error.Error 0xC0012050 while preparing to load the package.Package failed validation from the ExecutePackage task. The package cannot run.

Hi I am getting below error,when I am executing parent pacakge.If I run child packages individually,then they are working fine.I ahve problem with parent pacakge only.

 Error 0xC0012050 while preparing to load the package. Package failed validation from the ExecutePackage task. The package cannot run.
.


sudha


Moving Data From one SQL Server to Another in SSIS???

Hello every one,

I have scenario where I need to move one SQL Server As A Tables to another SQL Server As B, both are on different remote systems. When I am trying to configure OLEDB source  for server A, I do not see the Databases under that server which I have provided?? 

Any suggestions on this..

Thanks


Please Help People When they need..!!

Failed to retrieve long data for column "Contract Scope".

Error: 0xC0202009 at Task 1 - Import P Data, Excel Source [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.

Error: 0xC0208265 at Task 1 - Import P Data, Excel Source [1]: Failed to retrieve long data for column "Contract Scope".

Error: 0xC020901C at Task 1 - Import P Data, Excel Source [1]: There was an error with output column "Contract Scope" (33) on output "Excel Source Output" (9). The column status returned was: "DBSTATUS_UNAVAILABLE".

Error: 0xC0209029 at Task 1 - Import P Data, Excel Source [1]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "Contract Scope" (33)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "Contract Scope" (33)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

Error: 0xC0047038 at Task 1 - Import P Data, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Excel Source" (1) returned error code 0xC0209029. 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.

Information: 0x40043008 at Task 1 - Import P Data, SSIS.Pipeline: Post Execute phase is beginning.

Information: 0x4004300B at Task 1 - Import P Data, SSIS.Pipeline: "component "OLE DB Destination" (95)" wrote 0 rows.

Information: 0x40043009 at Task 1 - Import P Data, SSIS.Pipeline: Cleanup phase is beginning.

I cant seem to change the size of the this column in the EXCEL SOURCE .It just changes it back to Unicode string [DT_WSTR] and 255 characters . This field contains strings greater than 255 characters .


project deployment model error

we've upgraded ssis 2008 R2 packages to 2012. All the packages converted to 2012 successfully. Im trying to convert the solution from package deployment model to project deployment model. few packages giving below errors while converting

Exception of type 'System.OutOfMemoryException' was thrown. (Microsoft.SqlServer.ManagedDTS).
Pls let me know how to fix this issue.

Thanks in advance

SQL 2008 R2 (64 bit) Linked Server configuration with Oracle

Hello

Running SQL 2008 R2 64 bit in Windows 2008 R2 standered edition server. We need to configure Linked server with Oracle.

Oracle Database 10G express edition and Oracle ODAC 64 bit is installed in SQL server. While connecting oracle database below error is showing. And there is no MSDORA provider in providers list (only OraOLEDB).

The linked server has been created but failed a connection test. cannot create an instance of LEDB provide "OraOLEDB.oracle" for linked server ( Microsoft SQL server, Error:7302)

Do i need to do any work around to over come this?

Appreciate your help.

can't insert dt_str to char type

Hi,

Having problem with OLE-DB connection to informix.

Created a flat file has two columns and 2 row:
1|a
2|b

tried to load it to a informix table:
create table t
( c1  int,
  c2 char
);

2 rows inserted, but only column c1 got data.

Changed c2 from char to varchar then ok.

thanks for any help.

gg


Return Value from Stored Procedure need to be Passed to a Uservariable in SSIS

I have a stored procedure SP1 which does some data validation and if there are any mismatcches it inserts a row in to audit table , the insertion is done by ising another SP2.

So it is something like

Create Proc SP1

As

Begin

IF(firstname is null)

Exec SP2

End

But i also want to count of  how many rows are inserted into the audit table and pass it to a user variable in SSIS

can anyone help me with this problem.


Missing argument for option "sql". The command line parameters are invalid.

I keep getting this error when i try to run my package from SQL JOB ..Can some please advise as to resolve this !

Message

Executed as user: .....\....... Microsoft (R) SQL Server Execute Package Utility  
Version 9.00.3042.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Missing argument for option "sql".  The command line parameters are invalid.  The step failed.

Executing the query "backup log test with truncate_only
dbcc shrinkfile(test_log,50)
" failed with the following error: "Could not locate file '
test_log' for database 'master' in sys.database_files. 
The file either does not exist, or was dropped. ". Possible failure reasons: 
Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.


event 12291 SQLISPackage100

one maintenance job (rebuild index task on user databases) is failing with event 12291. all other maintenance jobs like backup are working fine. the sql server agents runs under a domain admin account. the problem is not related to a specific database. it crashes on any db chosen. we have deleted and recreated to maintenance plan and it still doesn't work

the job history:

ep ID 1
Server STZ-SQL1
Job Name MaintenancePlan.weekly_reb_indexes
Step Name weekly_reb_indexes
Duration 00:27:43
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0

Message
Executed as user: IBA\iba_admin. ...sion 10.0.5500.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  00:25:00  Progress: 2012-07-22 00:25:01.17     Source: {B00EA0E0-FFD0-48C4-B704-8CAE5645858D}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  Progress: 2012-07-22 00:29:21.35     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 0% complete  End Progress  Progress: 2012-07-22 00:29:22.03     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_ALT_1] ON [dbo].[A10] REBUILD PAR...".: 0% complete  End Progress  Progress: 2012-07-22 00:29:22.03     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 0% complete  End Progress  Progress: 2012-07-22 00:29:24.01     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_ALT_2] ON [dbo].[A10] REBUILD PAR...".: 0% complete  End Progress  Progress: 2012-07-22 00:29:24.01     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 0% complete  End Progress  Progress: 2012-07-22 00:29:25.02     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_ALT_3] ON [dbo].[A10] REBUILD PAR...".: 1% complete  End Progress  Progress: 2012-07-22 00:29:25.02     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 1% complete  End Progress  Progress: 2012-07-22 00:29:26.56     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_ALT_4] ON [dbo].[A10] REBUILD PAR...".: 1% complete  End Progress  Progress: 2012-07-22 00:29:26.56     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 1% complete  End Progress  Progress: 2012-07-22 00:29:28.23     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_ALT_5] ON [dbo].[A10] REBUILD PAR...".: 1% complete  End Progress  Progress: 2012-07-22 00:29:28.23     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 1% complete  End Progress  Progress: 2012-07-22 00:29:29.22     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_F_ID] ON [dbo].[A10] REBUILD PART...".: 2% complete  End Progress  Progress: 2012-07-22 00:29:29.22     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 2% complete  End Progress  Progress: 2012-07-22 00:29:30.23     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00001] ON [dbo].[A10] REBUILD P...".: 2% complete  End Progress  Progress: 2012-07-22 00:29:30.23     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 2% complete  End Progress  Progress: 2012-07-22 00:29:31.20     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00002] ON [dbo].[A10] REBUILD P...".: 2% complete  End Progress  Progress: 2012-07-22 00:29:31.20     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 3% complete  End Progress  Progress: 2012-07-22 00:29:32.07     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00003] ON [dbo].[A10] REBUILD P...".: 3% complete  End Progress  Progress: 2012-07-22 00:29:32.07     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 3% complete  End Progress  Progress: 2012-07-22 00:29:33.23     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00004] ON [dbo].[A10] REBUILD P...".: 3% complete  End Progress  Progress: 2012-07-22 00:29:33.23     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 3% complete  End Progress  Progress: 2012-07-22 00:29:34.42     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00005] ON [dbo].[A10] REBUILD P...".: 3% complete  End Progress  Progress: 2012-07-22 00:29:34.42     Source: Rebuild Index Task      Executing query "USE [adalib]  ".: 4% complete  End Progress  Progress: 2012-07-22 00:29:35.58     Source: Rebuild Index Task      Executing query "ALTER INDEX [A10_FL00006] ON [dbo].[A10] REBUILD P...".: 4% complete  End Pro...  The package execution fa...  The step failed.


???

SSIS 2012 Script Task Error

Hi Guys,

What causes the below error? It does not come up every time I run the script task in debug mode, but when it does appear it's annoying.

Could I be missing an update?

Image may be NSFW.
Clik here to view.


MCTS, MCITP: BI Technical Consultant| Karabina, South Africa Blog: www.selectsifiso.net

Description: Difference of two datetime columns caused overflow at runtime.

Hi all my package was running good until last weekend where i'm getting the following error

Message

Executed as user: AD\MOSS_BI. ...te Package Utility  Version 9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  2:00:04 AM  Error: 2012-07-23 02:47:49.55     Code: 0x00000000     Source: Get Duration      Description: Difference of two datetime columns caused overflow at runtime.  End Error  Error: 2012-07-23 02:47:49.56     Code: 0xC002F210     Source: Get Duration Execute SQL Task     Description: Executing the query "update dbo.FACT_InspectionDetails  set SecondsDuration = dbo.FN_GET_INSPECTION_DURATION_SECONDS(                  ScheduledDateTime       ,RequestedDateTime     ,InspectionDateTime  )" failed with the following error: "The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:00:04 AM  Finished: 2:55:44 AM  Elapsed:  3.  The step failed.

I have no idea why it failed all of a sudden as nothing was changed. I the looked at the FUNCTION which i think was causing the problem, its an EXECUTE SQL TASK:

update dbo.TABLE_NAMEset SecondsDuration = dbo.FN_GET_INSPECTION_DURATION_SECONDS( ScheduledDateTime ,RequestedDateTime ,InspectionDateTime)

Can anyone please tell me what going wrong here?

Thanks

Import text data from Excel with apostrophe at start of column

I have an Excel 2010 sheet that I need to import into SQL Server 2008.  In one spreadsheet column some of the text values have a single apostrophe at the start (these are actually all numbers with 4 digits and no leading zeroes).  When I do the import into an SQL Server table with the data type for the column of nvarchar(255) it puts a null in any field that has the leading apostrophe.  It does the same thing if I make it an int field in the SQL Server table.  I tried making a new column in Excel with the expression “=Right(A2, 4)” and it dutifully copies in the leading apostrophe anyway if there is one.  I also tried copying the data and pasting it into a new column use Paste Special | Values and again it puts in the leading apostrophe if the original column has one.  I finally went in a ‘corrected’ the “Number stored as text” error and this worked but this is tediously slow.  Find and Replace also ignores leading apostrophes.

Is there any way to get it to ignore the leading apostrophe?

Thanks

how to implement File watcher like functionality in SSIS..Look at the below scenario

The is a windows service which upload a file in a specific location.Once the file has been uploaded the SSIS Package has to take the file and has to read the file and needs to insert the content of the file into a table.

How to develop a SSIS package which has to continously monitor the specific location for a file....


ilikemicrosoft

The VSTA designer failed to load: "System.Runtime.InteropServices.COMException (0x80004005):..."

[I'm reposting here as requested in the SQL Server Setup & Upgrade forum.]

I've just reinstalled the OS and apps on my PC.  When I open a script task and click "edit script..." I get this message:

------------------------------
Cannot show Visual Studio 2008 Tools for Applications editor.
------------------------------
ADDITIONAL INFORMATION:

The VSTA designer failed to load:  "System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at VSTADTEProvider.Interop.VSTADTEProviderClass.GetDTE(String bstrHostID, UInt32 dwTimeout)
   at Microsoft.SqlServer.VSTAHosting.VSTAScriptingEngine.EnsureDTEObject()" (Microsoft.SqlServer.VSTAScriptingLib)
------------------------------

When I run

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>vsta.exe /hostid SSIS_ScriptTask
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>vsta.exe /hostid SSIS_ScriptComponent

VSTA fails to start up and I get:

---------------------------
Microsoft Visual Studio Tools for Applications 2.0
---------------------------
Registration information for this application needs to be updated. To update, log on as an administrator and run this command:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\vsta.exe /HostID SSIS_ScriptComponent /setup
---------------------------

So far to try and fix this I have tried the following:

  • Reinstalling SQL 2008
  • Read through and acted upon a number of similar MSDN posts including this one, this one and this one
  • Removing VSTA (then reinstalling from x86\Setup\trin_aide.msi on the SQL 2008 setup iso)
  • Following the steps in Jason H's blog
  • Doing a repair installation on SQL 2008
  • Running BIDS as administrator
  • Creating a new script task rather than trying to edit an existing one
  • Scouring the registry for "unusual things" relating to VSTA...!
  • Counting to 10

None of which have made any difference.

My setup:

  • Win 7 Enterprise 64bit
  • SQL 2008 standard (client tools) patched up to SP3 (installed from en_sql_server_2008_developer_x86_x64_ia64_dvd_x14-88839.iso)

It might be worth saying that I have seen this problem previously when I installed SQL 2008 the first time on my current pc (same OS and general environment).  I spent about a day on it and did eventually get it working - but (annoyingly) I can't remember what I did.  Either I am now less able, less lucky or less inspired but I'm getting nowhere this time round.  The one thing that rings a bell is HonestDeer's reply to this previous MSDN post (Wednesday, May 11, 2011 3:30 PM).  I seem to remember I changed a reference somewhere to a different version of VSTA and it started working - can't remember the specifics though. 

In case this is relevant: I do have an installation folder for "C:\Program Files (x86)\Microsoft Visual Studio 8" - which contains a version 8.0 of vsta.exe (in the Common7\IDE folder).  This is in addition to the v9.0 version at C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\vsta.exe.  When I initially installed BIDS/SQL, I selected the "Client Tools Backwards Compatibility" option, although deselected this when I came to reinstall it the second time.  NB: all this is following a complete reinstall of Windows 7 - so Visual Studio or SQL client tools 2005 have NOT been installed.

Please help!

Roger.

Check Points Enabling in Loop Iterations

Hiii

I have created package of using for each loop container inside contains so many tasks and i set container and each task fail package on failure 'TRUE'.. but when error RAISED i cant able to restart from where error raised so can u pls help me..


Getting error information from parent to child

Hi could somebody please advise how I can acheive this:

I have a parent package that consists of the several sequence containers. The sequence containers contain tasks that download files from ftp directories, each sequence container downloads files from a different ftp directory. The next step in the sequence container to execus package task.  Each container executes the same package. This is the child package

Inside the child package is some logic to validate the downloaded files and email specific peole if there is a validation/formatting error in the files. The email contains error information such as the line of on which the error occured and the type of error eg 'field 1 not found'.

what I want to do is to include the name of the sequence container in the email that the child package generate when a validation error occurs, so if the error occured in the while the child package was being executed by sequence container No1 I want to pass the name/id of the sequence container to a variable as pass it to script task in the child package.

So say I have a string called SCName, how can I give that string the value of the name sequence container that is currently active when the error occurs?

Thanks is advance

Import of Interbase to SQL Server

Hi all,

 

Hoping that someone can offer an easy solution to this but I am sure that is not going to be the case, I have been given an Interbase database which they would like to import the contents in to SQL Server 2008, I was hoping that under 2008 SSIS there might have been some way of setting this up as a data source and importing it that way, something similar to a access database file or excel file.  It seems that I am going to have to install some software to host the database and then do the import from there, sure there must be an easier way as at the end of all this they want to connect something to the main interbase database and pull everything across so I am reluctant to have to doing 2 different things to test all this, any suggestions?

 

Thanks P

How to pick a specific row from the flat file ?

hi ,

can any one help me out  how to pick a specific row  from flat file  and port the value into  a  DB .

for Example:

if   i have 1000 or n number  of rows  in the flat file , i have to pick only  10th record  from  the flat file and port into the DB without using any  transformation.

ISDeploymentWizard switch

Hi,

It is possible to generate a 'deploy summary' report when the ISDeploymentWizard is executed from command prompt?

ISDeploymentWizard /S /SP:foo.ispac /DS:myserver /DP:/ssisdb/test/test

Or at least to output to the console the results?

Daniel

SQL Server 2012 Upgrade Performance Issues

Hi,

I've upgraded a large number of packages to SQL Server 2012 from SQL Server 2005.  I'm having a number of performance issues with packages that follow a particular pattern.  I attached a screen shot as an example...

Image may be NSFW.
Clik here to view.


I seem to have issue on the lookup called Assetkey in that it is taking 10 minutes longer that the version that was on 2005.  The AssetKey lookup does return 166,000 rows.

This package loops through a number of database so the 10 minutes turns in 90 minutes once I have loop through each database.

At the end of the package I do a lookup to decide if I should insert or update an existing record, not sure if this is the issue.  My main concern is that the previous version would complete in under 10 minutes.

Typically the source destination is returning 140,000 rows.

  • I've tried adjusting the MaxBufferSize and MaxBufferRows; make no difference
  • There are no locks / blocks on the database
  • The stored procedure returns with seconds both on the lookup and source

My gut feeling is that when the lookup has a high number of rows (100,000's) it suddenly grinds to a halt.

Any ideas?

Jason

Viewing all 24688 articles
Browse latest View live