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

SSIS 2012 - how to find if a GUID belongs to the current package

$
0
0

Hi,

In the OnError Event Handler, I want create a Script Task that will find if the SourceID (The unique identifier of the executable in the event handler that raised the event.) belongs to the current package. If so, I will call a Logging package to log the error in a table, send e-mail, etc..

However, if the SourceID does not belongs to the current package, it means that a called packaged generated the error and already handled it, so no logging is required.

Thanks in advance,

Tiago Rente.

PS: If possible, can you provide the solution in VB :-).

T.


Upgrade the SSIs package

$
0
0

Hello All,

i have an SSIS package solution which has the .dtsx package, which does some processing and which is in Visual Studio 2010

now we want to migrate to new server and SQL Server 2014, since we do not get SSDT with SQL Server 2014, i installed the Visual studio 2012 and i moved the package, i went through couple of articles to upgrade, however when i loaded the solution in 2012 and right clicked and selected the upgrade package, it doesnt show up any package.

so generally we execute the package from an sql server job as below, however it is throwing below error.

"C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe"  /FILE "\"D:\path\Package.dtsx\"" /X86  /CHECKPOINTING OFF /REPORTING E

Error:

 

Source: init variables init variables     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2016-04-11 03:36:07.84     

Code: 0x00000005     Source: init variables init variables     Description: CS2001 - Source file 'C:\WINDOWS\TEMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found, CSC, 0, 0  
End Error  Error: 2016-04-11 03:36:07.84     Code: 0x00000005     Source: init variables init variables     
Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  
End Error  Error: 2016-04-11 03:36:09.11     Code: 0x00000005     Source: batch commands batch commands     
Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2016-04-11 03:36:09.11     Code: 0x00000005     
Source: batch commands batch commands     Description: CS2001 - Source file 'C:\WINDOWS\TEMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found, CSC, 0, 0  End Error  Error: 2016-04-11 03:36:09.11     
Code: 0x00000005     Source: batch commands batch commands     Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. 
 End Error  Error: 2016-04-11 03:36:11.67     Code: 0xC0047062     Source: load log load log (calculate statement hash [173])     Description: Failed to compiled scripts contained in the package. 
 Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2016-04-11 03:36:11.67     Code: 0xC0047062     Source: load log load log (calculate statement hash [173])     
 Description: CS2001 - Source file 'C:\WINDOWS\TEMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found, CSC, 0, 0  End Error  Error: 2016-04-11 03:36:11.67     Code: 0xC0047062     Source: load log load log (calculate statement hash [173])     Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2016-04-11 03:36:12.92    Code: 0x00000005     Source: determine if files needs to be processed or archived and generate archibve command determine if files needs to be processed or archived and generate archibve command     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2016-04-11 03:36:12.92     Code: 0x00000005     Source: determine if files needs to be processed or archived and generate archibve command determine if files needs to be processed or archived and generate archibve command     Description: CS2001 - Source file 'C:\WINDOWS\TEMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found, CSC, 0, 0  End Error  Error: 2016-04-11 03:36:12.92     Code: 0x00000005     Source: determine if files needs to be processed or archived and generate archibve command determine if files needs to be processed or archived and generate archibve command     Description: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2016-04-11 03:36:14.15    Code: 0x00000005     Source: init loop variables init loop variables     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2016-04-11 03:36:14.15     Code: 0...  Process Exit Code 1.  The step failed.

i logged into SSIS an File system and selected the package and upgraded it, however after that when i tried to open the VS 2012, it said the package is corrupted, need your help on this.

Foreach Loop Container - With Excel-files - Excel Connection Error

$
0
0

Hi,

I have trubel with my Excel Connection manager. I get error about "VS_ISBROKEN" and "A destination table name has not been provided".

The foreach Loop finds the folder and loops correctly and has DelayValid as True

I have one string variable.

Excel Connection Manager has

DelayValid is True 

Expression

Connection String and Expression:

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + @[User::strExcelFile] +  ";Extended Properties=\"" +"Excel 12.0 XML;HDR=YES\"; "

The data flow task has:

DelayValid True

Full Error code:

Error: 0xC0202042 at Data Flow Task, Excel Source [14]: A destination table name has not been provided.
Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "Excel Source" failed validation and returned validation status "VS_ISBROKEN".
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.


Thanks for any help.

Import a .xls file to load into SQL database Via SSIS package.

$
0
0

Microsoft Visual Studio 2008 (version 9)

I created a SSIS package were I import a .xls file to load into SQL database. 

So I created a connection with the following properties:

(connectionString : Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\fld6Filer\BRDProduction_SurveyFiles$\Incoming\TestingSurveyFiles\MyleneTestingFiles\CriticalList\CriticalList.xls;Extended Properties="EXCEL 8.0;HDR=YES";)

So far so good, everything is working as planned!

However, I want to make that connection dynamic by reading the value from a sql table and assigning to to the ConnectionString.   So I added the following lines of code in a script task:

String InputFileName = Dts.Variables["FileName"].Value.ToString();

Dts.Connections["CriticalListExcelFile"].ConnectionString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ InputFileName +";Extended Properties=\""+"EXCEL 08.0;HDR=YES"+ "\""+ ";";

The value is being passed without any problem.  But when I get to the part in the data flow where I actually import the file…

I get the following errors:

[Source - Excel File [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "CriticalListExcelFile" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

[SSIS.Pipeline] Error: component "Source - Excel File" (1) failed validation and returned error code 0xC020801C.

[SSIS.Pipeline] Error: One or more component failed validation.

Error: There were errors during task validation.

Please note that I do have the DelayValidation set to True.

Can somebody help me with that?  I did found some tips on the web like changing theRun64BitRuntime to False under the debug options…  but I can’t find where to go!!  Help!!! 


Mylene Chalut

send file to sftp

$
0
0

Hi All,

I was sending file via stored procedure to FTP server every night, till yesterday company has moved to the SFTP. I installed WinSCP and Visual Studio for SSIS. Can anyone share with me if they have used the same process to send file to SFTP.

Or can anyone suggest me the way and share any code related to send file to SFTP via SQL server.

Thank You 


Jibran Ishtiaq

SSIS Excel Source Preview Error

$
0
0

I have a excel file thats generated by SAP. I'm using SSIS to move the contents of this file in to SharePoint List. I tried this approach at it worked successfully but with this specific file i'm receiving this error in preview.

TITLE: Microsoft Visual Studio
------------------------------

There was an error displaying the preview.

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

Index and length must refer to a location within the string.
Parameter name: length (mscorlib)

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

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

I was able to run the package but i had to abort the process. Any suggestions please?

Temp tables and BTree structure in sql server

$
0
0

Hi Friends,

1) could you explain me about Temporary tables which scenario we have to use in real time and what is the role of temp tables/when does we go for temp tables and what are the pros and cons of temp tables.

2)what is BTree structure in sql server and differences between Btree and binary tree.

3)which join will give better performance like Nested join,hash join,merge join

How to speed up the Data Loading Process

$
0
0

Hello All,

I have created an SSIS package to load the data from SQL Server table to Oracle table. The table has one-one mapping between them. Source table has 5694 records. I have added Data conversion transformation in between the source and destination to convert the data types (From nvarchar(max) to text stream). Currently it is taking around 1 hour to finish the job. Since it is just 5694 records it shouldn't take 1 hour correct? Any suggestions/ideas to speed up the process is much appreciated.

Thank you so much




ssis truncation error

$
0
0

Hello,

I am trying to import data from csv to a sql server table (2008 R2 SE edition of sqlserver) with an ssis package. The data I am trying to import is from a website form that gets saved to a csv file. Here is the table DDL:

CREATE TABLE [dbo].[FormData](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CreatedAt] [datetime] NULL,
	[FirstName] [nvarchar](60) NULL,
	[LastName] [nvarchar](60) NULL,
	[Title] [nvarchar](60) NULL,
	[BusinessName] [nvarchar](60) NULL,
	[TypeOfBusiness] [nvarchar](60) NULL,
	[EmailAddress] [nvarchar](60) NULL,
	[PhoneNumber] [nvarchar](24) NULL,
	[PhoneExtension] [nvarchar](20) NULL,
	[TypeOfInquiry] [nvarchar](60) NULL,
	[YourInterests] [nvarchar](4000) NULL,
 CONSTRAINT [PK_FormData] PRIMARY KEY CLUSTERED
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[FormData] ADD  CONSTRAINT [DF_CreateDate_GetdateValue]  DEFAULT (getdate()) FOR [CreatedAt]
GO
 

My ssis package does the inserts from csv to table without errors if all fields have values in the csv file. However if someone doesnt have a phoneextension and fill out the form and submit without entering data for this field then my ssis package fails with the following error:

[Flat File Source [1]] Error: Data conversion failed. The data conversion for column ""Phone Extension"" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".


[Flat File Source [1]] Error: The "output column ""Phone Extension"" (118)" failed because truncation occurred, and the truncation row disposition on "output column ""Phone Extension"" (118)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.

I am providing with sample data below for which the insert failed:

Createdat,First,Last,"Company Name","Type of Organization","Enter Email",Phone,"What's Your Interest?",Title,"Phone Extension"
"2016-04-12 00:51:39",Ben,Charles,"Thai Massage",Business,newoilmassage@yahoo.com,"(123) 222-4444","Want to send out general messages to massage lovers daily",,,,,

I am converting data according the column sizes in the table and they are all DT_WSTR except for date as the date uses a default constraint

Mapping is as shown:

First-->FirstName, Lasr-->LastName, companyname-->businessName,Typeoforganization-->Typeofbusiness,enteremail-->emailaddress,Phone-->phonenumber,What's Your Interest?-->yourinterests,Title-->title,"Phone Extension"-->phoneextension

A csv file with successfull insert looks like this:

Createdat,First,Last,"Company Name","Type of Organization","Enter Email",Phone,"Phone Extension","What's Your Interest?",Title
"2016-04-11 18:21:59",Adams,Chris,testdata,Business,test@test.com,"(123) 456-7890",1111,"this is just for test",,,,

How can I fix this error and let inserts run normally?

Thanks a ton


Handling unexpected data in SSIS

$
0
0

Hi,

Please post your suggestions / guidelines that are common and should be followed in SSIS package development. Need more information on Error Handling.

We have migrated SQL Server from 2008 R2 to 2014. We have set of packages developed in older version and those have to be revamped implementing new features that are applicable.

Please list the common/essential new features which we can implement to improve the performance, easy maintance etc.

Thank You,

Mani

Import Wizard shows unexpected and unrecoverable error

$
0
0

Hi

  I am using SQL Server 2014 Developer edition ,I try to Import Excel file to Sql database it shows unexpected and un recoverable error. I search and change the config file and remove the .Net framework 4.0 runtime entry.  I have Installed .Net Framework 4.0 and 4.5 also. My operating system is Windows 7 64 bit. Please help me to solve the problem. It not show for all the files. It show for only one file the size is about to 190 MB.


Thanks & Regards Manoj

error CS0103 Variable does not exist in current context

$
0
0

Hello,

I have created a very simple SSIS Package with only one component.

Script task which has below code in Main method

public void Main()
        {
            // TODO: Add your code here
            string name = "ABC";
            name = name + " XYZ";
            Dts.TaskResult = (int)ScriptResults.Success;
        }

When I try to debug the script task, and when I hover the mouse on the variable "name" nothing appears in a tiptop.

When I say Quick watch by selecting this variable , it display above error.

Error in Quick watch window is

error CS0103: The name 'name' does not exist in the current context   

How can i see the values of the variables any help is appreciated.



Cannot to add Data Flow Task

$
0
0

I created Integrated Services Progect in Visual Studio 2013

When I am trying to add Data Flow Task into Control Flow it shows Error massage:

_______________________________________________________________________________________

===================================

Failed to create the task. (Microsoft Visual Studio)

===================================

Cannot create a task from XML for task "", type ", {1CF081CA-677D-4561-967A-D06798F62DD6}" due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.".
 (Package)

------------------------------
Program Location:

   at Microsoft.SqlServer.Dts.Runtime.Executables.Add(String moniker)
   at Microsoft.DataTransformationServices.Design.DtsBasePackageDesigner.CreateExecutable(String moniker, IDTSSequence container, String name)

===================================

Cannot create a task from XML for task "", type ", {1CF081CA-677D-4561-967A-D06798F62DD6}" due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.".
 (Package)

------------------------------
Program Location:

   at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutables100.Add(String bstrMoniker)
   at Microsoft.SqlServer.Dts.Runtime.Executables.Add(String moniker)

____________________________________________________________________________________

Other tasks I can to add without problems.

Why it happens please anyone explain to me? Thanks in advance

Lookup performance issue

$
0
0

Previously the staging data was getting lookup with full cache to find the Match and No Match for Insert and Update Operation.

Now the Lookup data holds around 1 Million records and Data Flow Task failed to execute .

Since with Full cache  is using  Memory Operation it gives the error.

Decided to load the data in Cache File and use in Lookup to do minimum changes but that too fails

The buffer Manager failed a memory allocation call for 1638000 bytes , but was unable to swap any buffer to remove memory pressure . 2290 buffer were considered and 2 were locked 

tried to change the Setting for the data Flow task DefaultmaxBufferRow -500 and Defaultbuffersize value is as it is but it failed

Decide to divide the data into series and tried to load in cache file but cache file can be used once . please suggest

Run SSIS 2016 Packages (VS2015) on Integration Services 2012 (MSDB)

$
0
0

Hi,

my company is using SQL Server 2012. Integration Services are set up as MSDB and NOT as the new SSISDB.

I evaluated that SSIS packages transformed with or created with Visual Studio 2015 cannot be uploaded to Integration Services 2012 MSDB anymore since parsing of the xml does not succeed.

Is there any official information for this behavior?

Regards

Robert


Wiscp The process exit code was "-1073741510" while the expected was "0".

$
0
0

Hi,

When I try to execute the winscp process via SSIS it ends up with the the error Process code was  "-1073741510" while the expected was "0".

Any idea why is that as I have checked all options on my end.

Thank You 



Jibran Ishtiaq

Managing a DQS knowledge base with SSIS - SSIS 2012

$
0
0

Hi,

I'm working with a DQS solution and so I've created a knowledge base composed of the values present inside a SQL table.

I need to update automatically this kb on daily basis, and so I think to use SSIS, but it seems that any SSIS tasks exist to accomplish this update.

How can I solve this issue working in an automatic and batch manner?

Many thanks

Execute SAS VBScript

$
0
0

Hi All,

i had to export out data from SAS tables to a txt files using SAS. but i have no clue how to schedule this on server, only option i know of is after you schedule this SAS export it creates a VB script and need to have your machine on!. is it possible to execute this vb script in SSIS? so the plan is to execute the VB script that creates txt files in a shared drive and then i import those files into SQL server tables using SSIS. please help!

OLEDB Provider for Informix

$
0
0

Hi All 

I have 64 bit machine and i need to pull data from informix, can you please help me the what the SDK i need to install to pull data through OLEDB provider.

Thanks

Raj


Error on VS 2013 w/ 2014 data tools

$
0
0

I get this message:

Error1 Error loading QADataUpdate.dtsx: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_0194478e56e54dff8a37f5ab60e02cdb" uses version 14.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services.    at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)

My understanding is that version 14.0 script is for SQL Server 2014, so my 2013 with 2014 BI suite should work correctly, shouldn't it? 

Anyone know why this is not loading?


Viewing all 24688 articles
Browse latest View live


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