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

Custom Connection Manager only works in 32bit- 0xC0011008: Error loading from XML

$
0
0

I have a very basic / stripped connection manager with only one property (SSIS 2012). It works fine in design time (you can open the connection manager editor and change the value), but in runtime it only works in 32bit mode. The runtime-validate-method does work, but if everything validates OK then in 64bit it throws an error when you run the package:

The package failed to load due to error 0xC0011008 'Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.'. This occurs when CPackage::LoadFromXML fails.

Exception deserializing the package "The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.

The 2 VS projects are .Net 4 class library projects with the Build Platform on "Any CPU"
.Net 4 / All CPU

I only add references to:
Microsoft.SqlServer.ManagedDTS - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll

Microsoft.SqlServer.Dts.Design - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.Dts.Design\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Dts.Design.dll

Compiled DLL's are available in GAC and SQL Server connections folder:

I made the sourcecode available via codeplex:
https://ssisconnectionmanager.codeplex.com/SourceControl/latest#myFirstConnectionManager/2012/myFirstConnectionManager/myFirstConnectionManager.cs


Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com | Twitter



Lookup with full cache warning

$
0
0

I am using a lookup and full cache, occasionally i get this warning:

[Lookup [150]] Warning: The component "Lookup" (150) encountered duplicate reference key values when caching reference data. This error occurs in Full Cache mode only. Either remove the duplicate key values, or change the cache mode to PARTIAL or NO_CACHE.

Now I know it is only a warning but it is highlighting a real issue.

Is there a way of capturing that this has happened?

decrypt xml node failed on loading master package

$
0
0

Hi.  We run 2012 enterprise.  When I open my project on a different machine than the one I used to create the project,  I get the following warnings.  I'm concerned about 1) checking in source from different machines, 2) what is going to happen when we run this in production.  All of the project params are sensitive=false and required = true.  The master package stageprototype.dtproj has no pkg params and no configs.  What is this all about?  The project's protection level is encryptsensitivewith user key but as far as i know there is nothing sensitive in this collection of master and sub packages.  I'm concerened that id I change this to dont save sensitive, I'll be looking for a needle in a haystack, specifically the thing or things ssis thinks are sensitive right now.

Warning 1 Warning loading StagePrototype.dtproj: Warning: Failed to decrypt an encrypted XML node. Verify that the project was created by the same user. Project load will attempt to continue without the encrypted information.  StagePrototype.dtproj 0 0

 
Warning 2 Warning loading StagePrototype.dtproj: Warning: Failed to decrypt sensitive data in project with a user key. You may not be the user who encrypted this project, or you are not using the same machine that was used to save the project. If the sensitive data is a parameter value, the value may be required to run the package on the Integration Services server.  StagePrototype.dtproj 0 0 

get data from source by excuting set of queries that has temp tables.

$
0
0

hello all,

i need to grab data from teradata(using odbc connection).. i have no issues if its just bunch of joins and wheres conditions.. but now i have a challenge. simple scenario, i have to create volatile table, dump data into this and then grab data from this volatile table. (please don't ask me to modify the query in such a way i don't have to use this volatile table.. its a pretty big query and i have no choice but create bunch of volatile tables, above scenarios is just mentioned on simple 1 volatile table ). so i created a proc and trying to pass this string into teradata, not sure if it works.. what options i have.. (i dont have a leisure to create proc in terdata and get it executed when ever i want and then grab data from the table. )

thanks in advance.

Automating configuring logging

$
0
0

Hi,

There is a task to configure logging in SSIS packages automatically. We have a parent package which runs a child one using Execute Package Task. Is it possible to add some logic in the parent package to pass parameters of logging to child (tasks that should be logged, events, provider types)?

Thanks in advance!

Best regards.

Assign different static Increment value in different csv files using ssis

$
0
0

Hi,

   I have a table T with columns Code datatype is nvarchar(5) andName nvarchar(30). Table T has 100 records and column Name only have data and column Codehas Null values. I have to generate csv files using this table data through SSIS . Each file should have 25 records and assign some static value(different for each file ex: file1 is T1 and file2 is T2..etc) in columnCode . I am able to generate files with 25 records for each file but not able to assign different static value in different csv files. Is it possible using SSIS?

Please suggest.

Thanks in advance.

Visu

SAP BI connector 1.1 - Getting [SAP BW Source] Information: ArgumentOutOfRangeException is met: row 9 total length 750, declared lines per recod 3, actual lines 3 , column 31, offset 713, length 40

$
0
0

HI

I am connecting SAP BW server through ssis 2014 ( sap Bi connector 1.1) . while connecting one of the OHS in BW server to pull the data , getting the below information and the process in running infinitely in debugging mode .

[SAP BW SOURCE] information : Argumentoutofrangeexception is met : row 9 total lenght 750 , declared lines per record 3, actual llines 3, column 31, offset 713 , length 40

[SAP BW SOURCE] information :Append Blank line:row o total length 1000, declared line per recod 3 , actual lines 4 , column 31 , offset 713 , length 40

same SAP BW server ,  if i connect  and pull the data using ssis 2008 ( sap bi connector 1.0) its running without any issues.

my production server has sql 2014 so I need to know why this issue in SAP BI connector 1.1 alone and how to fix it ?

Thanks & Regards,

Gopal



SSIS: How to load 2 different excel files to 2 different tables?

$
0
0

Hi All,

I'm new to SSIS. I have 2 different excel files file1 and file2. file1 should be loaded to table1 and file2 should be loaded to table2. Both of the files will have 1 sheet inside. Do I need to create separate excel source for file1 and file2? I mean file1 in one excel source and that will be connecting to 1 execute sql task. file2 in other excel source and that will be connecting to another execute sql task. Is this the way I should proceed or is there any looping should be done?  I need to schedule this activity to run every week. So, I'll get new files every week with the same file names and sheet names. Do I need to consider anything for this requirement also?

I'm planning to do truncate and reload not an incremental load.

Please help me on this. It would be great if you can give me a step by step solution for this since I'm new to this.

Regards,

Julie


Error in refreshing excel reports using ssis

$
0
0

I am trying to refresh a number of excel reports in a directory using ssis but get the following error when the package executes

"Exception has been thrown by the target of an invocation"

My code is as follows

strpath="c:\users\scott\desktop\reports

objexcel=CreateObject("Excel.Application")

ObjExcel.visible=true

Objexcel.displayalerts=false

objfso=createobject ("Scripting.fliesystemobject")

objfolder=objfso.getfolder(strpath)

For each objfile in objfolder.files

if objfso.getextensionname(objfile.path)="xlsx" then

objworkbook=objexcel.workbooks.open(objfile.path)

objworkbook.enableconnections()

objworkbook.refreshall()

objexcel.calculateuntilasyncqueriesdone()

objworkbook.save()

objworkbook.close(true)

end if

Next

objexcel.quit()

dts.taskresult=scriptresults.success

Any help would be greatly appreciated.

thanks

Scott

SSIS package fails with Protocol error in TDS stream

$
0
0

SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE_SRC_Connection returned error code 0xC0202009.  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.

SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "The connection is no longer usable because the server response for a previously executed statement was incorrectly formatted.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Protocol error in TDS stream".
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE_SRC_Connection returned error code 0xC0202009.  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.

Comments :

The job or SSIS Package was failed due to this error "Protocol error in TDS stream".Without any changes just re-run the job or package successfully completed.But we unable to find root cause of the issue and solution.Kindly assist to solve this issue.

Attunity CDC for SSIS has status LOGGER

$
0
0

At a client I work for, we are using Attunity CDC for SSIS to replicate data from a Oracle source to a MS SQL server destination. We are currently testing the solution and while testing, an error occurred: Attunity got the status Suspended, substatus LOGGER.

This implicates there is an temporary error on de Oracle redo-log, but Attunity never got past this error. Our interpretation is that Attunity was looking for the “Transaction log head change number”, but could not find it. We temporarily solved this by changing the “Transaction log head change number” manually (without looking for a CSN in the alert-log), from that point on Attunity was working again. We are not sure if there was any data loss. So we are trying to force an error in Attunity to test its reliability and stability, and to reproduce this error. One of the goals is to see if we can get Attunity back on track with a “transaction log head change number” (that we created based on the CSN from the Oracle Alert-log).

The reason we think Attunity could not find the “Transaction log head change number”, is because the Oracle-server Attunity mines was restarted, but before it restarted it killed all of its sessions. We think Attunity already processed some new records that Oracle has rolled back afterwards.

Based on this story I have three questions:

  • How can we let Attunity crash and get it into Status Suspended, substatus LOGGER?
  • Do you know a way to get Attunity back on track without, or with minimum, data loss?
  • Is there a lists of know errors that force Attunity to crash?


Job JOB_NAME reported: Unable to terminate process 4bd0 launched by step 1 of job JOB_ID (reason: Access is denied)

$
0
0

All of a sudden I am getting this error

Job JOB_NAME reported: Unable to terminate process 4bd0 launched by step 1 of job JOB_ID (reason: Access is denied) on all my DTS packages and maintenance plan.

There was no DB/Server related changes. It is SQL server 2014 STD 64 BIT on Windows server 2012 R2

Verbose log is blank


aa


SQL Server 2012 with Attunity on Oracle 12

$
0
0

Hi everybody,

At a client we use Attunity CDC to capture changes in the source system. The reason is that my client's source database (Oracle 11) contains two tables that are too large to capture using "regular ETL". Hence we are developing a solution, which initially loads two tables, containing 25+ billions records each, to our data warehouse and afterwards captures the changes using CDC.

We are using the next setup:

- Source database: Oracle 11

- Attunity Oracle CDC Designer 1.1.3000.0

- Attunity Oracle CDC Service 1.1.3000.0

- Destination database: Microsoft SQL Server 2012 – 11.0.5058

- Windows Server 2012 R2 – Version 6.3 Build 9600

Like written, the clients database is Oracle 11. Next autumn they want to upgrade their system to Oracle 12. I have two questions:

1. Is there anyone with experience between Attunity CDC and Oracle 12? In other words: Is Oracle 12 supported by Attunity CDC 1.1.3000.0?

2. Has anyone ever experienced a database upgrade during their CDC runtime?

Hope to hear from anyone soon!

--

Thank you in advance and kind regards,

Tieme Pool

Send Mail task not working properly when it configured in Precedence Constraint (Failure)

$
0
0

Hi,

Send Mail task not working properly when it configured in Precedence Constraint (Failure)...

Scenario:
I'm using multiple containers in my ssis package. Also I have configured mail task for capturing error.
I'm getting mail only when error occurs in foreach loop container. If error occurs in other containers it doesn't works.

Actually I would like to receive mail notification on error when it occurs in any of the containers or DFT.

Please suggest your comments..

Regards

Guru

SSIS 2014 package executes successfully even when a connection manager errors

$
0
0

Hi, I am experiencing a weird scenario, I am using SSIS 2014 and for dynamic package configuration I am using xml configuration file which stores servername and database for the SQL Server configuration type which in turn stores all the other connection manager details in a SQL Server configuration table.

Now, when I store wrong connection details in the SQL Server configuration table package fails as expected but when I pass wrong servername or database in the xml configuration file and run the package, in the package execution (progress tab) I see the below error.

[Connection manager "SSISTestConfig"] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: 
"Login failed for user 'SSISTestUser'.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: 
"Cannot open database "SSISTestDB" requested by the login. The login failed.".

But, the package runs to completion. When I pass either the servername or database which exists but does not have the SSISConfiguration table. I get the below warning.

A problem occurred with the following messages: "Invalid object name 'dbo.SSISConfiguration'.".

Failed to load at least one of the configuration entries for the package. Check configuration entries for "SQLConfiguration" and previous warnings to see descriptions of which configuration failed.

Again the package runs to completion.

How do I make my package fail for the above scenarios and what might be causing this?

Thanks in advance..................

 

Ione



Issuses about Package XML configuration file once checked into TFS. When checked out into a difference box, warning occurs

$
0
0

hi folks:

  I've used XML package configuration in my packages in order to populate key variables. The configuration String is pointing to

a local folder in my machine. After that, I've checked my whole solution into TFS.  I did check the checked in file but could not find the .dtsConfig XML file.

  The problem occurs when the other teammate checked out this solution from TFS into his own box. When he tried to open the solution, it gives warning (not error though) saying it could not find the package configuration file . This totally makes sense as his local machine does not have the same URL I had in my  box. 

  In situation like this, how can we fix in the multi-developers SSIS environment ? 

 Thanks

Hui


--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Bug SSMS2012 - Showing Different Connecting String from the Same Data Sources between Local and Remote Connection

$
0
0

Hi

I checked (using my SSMS2012 from my laptop connecting to SM-CNTS-VWW01 server) the Data Source tab from the Job Properties after I have updated the package configuration but it didn't reflected the changed I made.

Surprisingly, if I remote connect to that server and open SSMS2012 (local). It shows the correct connection string (SM-CNTS-VSQL03 ). Basically I'm connecting to the same server, verify the connection of the same JOB but I'm getting different result?



SSMS version from Laptop

Microsoft SQL Server Management Studio11.0.5058.0
Microsoft Analysis Services Client Tools11.0.5058.0
Microsoft Data Access Components (MDAC)6.1.7601.17514
Microsoft MSXML3.0 6.0 
Microsoft Internet Explorer9.10.9200.17357
Microsoft .NET Framework4.0.30319.18408
Operating System6.1.7601

SSMS Version from the SM-CNTS-VWW01 Server

Microsoft SQL Server Management Studio11.0.3153.0
Microsoft Analysis Services Client Tools11.0.3130.0
Microsoft Data Access Components (MDAC)6.0.6002.18005
Microsoft MSXML3.0 6.0 
Microsoft Internet Explorer7.0.6002.18005
Microsoft .NET Framework4.0.30319.1026
Operating System6.0.6002

SSIS script task to read CannotChangePassword attribute of AD user

$
0
0

I am trying to pull Active directory Users information to a SQL table use Script task in C#.

All the other fields are pulling OK, but I have a hard time to pull the user CannotChangePassword attribute. It is a Boolean field.

Any SSIS script code would be appreciated to pull this attribute. Any reference needed please also notify.

Thanks,


SQLFriend

File System Task Move Directory deletes parent destination folder

$
0
0

I attempted to use Move Directory to move the contents of one directory to another.  I encountered the 'different volume' issue that others have experienced.  While this error is frustrating I can work past this particular issue.  My more pressing question is why is the move directory command overwriting a destination directory?  

When I setup the Move directory file task I provided two vars to hold src and dest location:

dest var: \\testserver\output\

src var: \\devserver\dev\testfiles\

Set overwrite destination = TRUE

Why would Move Directory overwrite output folder at destination?  Shouldn't it only overwrite if the testfiles directory exists at destination?  This is very frustrating since I cannot find enough information in the official documentation to understand what is happening here.  

Is it just me or does the documentation for Move directory seem.....incomplete?  

Thanks for any assistance!!




Want to add new column based on existing column using Derived column task

$
0
0

I have a excel file which has a column called "Code" and their values are A,B,C,D,E,F,G,H.  I want to create a new column called "status" based on the values of "Code".

Code:

A

B

C

D

E

F

G

H

If A,C,E,G then "status" = "Active" else if  B,D,F,H then "Status" = "Inactive". I like to do it using "Derived Column".


Venkat G



Viewing all 24688 articles
Browse latest View live


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