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

If a key match is found, create a new unique key and insert that with the record

$
0
0

Hi All,

we are having source Database where a source DB DBA inserts the data and we have our production where we insert the data.

Yesterday we inserted Data manually in our production data, and source DB DBA inserted the data in his Database.

Now ran in to situation where in both database's ID’s are same and have different data.

But we want that data also to be present in our production DB.

We don't want to perform update operation, we want to perform insert/append operation by generating new unique key in production DB.

Thanks for your help!


Thanks, Naga


SSIS Variable Window is Hidden

$
0
0
hi,

When designing SSIS package I can't  seem to display "Variables" window.  Right clicking on the design surface and  choosing "Variables" has no effect.  Also when I go to View -> Other Windows,  
clicking on "Variables" - has no effect too.  It must be some envinronmental settings, I  guess.  
  
:(
Any Idea? 

Oracle Client Provider for OLE DB in SSIS not working

$
0
0

I thought I installed the client and ODAC properly, but I still get the error: Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.2.2 or later client software installation. Provider is unable to function until these components are installed.

I have Visual Studio Professional 2017 on a 64 bit machine. Oracle is 12c. I'm trying to setup an OLE DB connection in SSIS to get data out of my Oracle db. I can't get beyond this error and a lot of posts I've seen are all outdated. Can somebody direct me to the actual files that need to be downloaded for these versions (and if 64 is ok or if i still need 32)? I've rebooted, closed VS and reopened. Out of ideas.



Query value not returning in SSIS but does in SQL

$
0
0

I have a very simple sql statement that returns a value:

Select max(count1)-min(count1) as count from MyTable

In SQL this returns a value but when I put this in SSIS, it returns 0.  I have set my Variable name as COUNT to match my select statement and I have also tried using 0 as the name.

Simply, I have one column with several rows and I want to know if all the rows equal each other.  Using max and min, if a value returns I then know they don't equal each other whereas if 0 then they are equal.  In this situation, I have 3 different values in this column.  I need SSIS to see the value rather than 0.

I currently cannot paste a screenshot here so let me know if there are questions to make this more clear. 

The usual suspects

$
0
0

Where can I find informaton regarding SSIS Control Flow Items, version 10.50.2500.0?  Particularly the ForEachLoop Container.

when use "Azure Blob Download Task Editor" component in an SSIS package, is it possible to make the blobContainer name dynamically?

$
0
0

I have more than 1 blob containers in azure, under the same storage account. 

now I use the "Azure Blob Download Task Editor" try to download all the files in the these containers, each time I need to input a container name. is there any way to parameterized the blobContainer name? so that I can download all the files in all the containers without input container name each time.

when use "Azure Blob Download Task Editor" component in an SSIS package, is it possible to make the blobContainer name dynamically?

$
0
0

I have more than 1 blob containers in azure, under the same storage account.

Now I use the "Azure Blob Download Task Editor" to download the files in these blob containers. Each time I need to input a container name. 

Is there a way to parameterize the blob container name? so that I can download all the files in all containers without input container name each time.

SSIS Flat file

$
0
0

Hi,

I have an SSIS flat file set up for CSV with a number of columns.  Data from one column - being Text - is moving onto the other columns.  I've tried to change the column delimter from comma to something else.  However, when I do, all data from other columns is moved to the first column.

Changing the text qualifier isn't doing anything to correct the issue.  What am I doing wrong? :(

Thanks


paul watson


Who will be announced as the next SSIS Guru? Read more about October 2018 competition!!

$
0
0


What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in October 2018 and must be in English. However, the original blog or forum content can be from before October 2018.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Baishakhi Banerjee.

Thanks,
Kamlesh Kumar

If my reply is helpful please mark as Answeror vote as Helpful.

My blog | Twitter | LinkedIn

SSISDB Catalog package fails with "created execution"

$
0
0

Not sure if this is the right forum given the issue.

Environment: SQL 2014 EE SP2 

We have 2 packages that are failing in SQL Agent with "Created Execution". The packages are cataloged in SSISDB in their own folder.

One package runs every 5 minutes, the other every 4 hours between 8AM and 6PM. Each package has failed with this error at random times through the day.

These same packages are executed via file share on other instances on the same box and do not encounter this error.

The limited information I could find online suggested 
1. Missing indexes in SSISDB/Deadlocks
2. High CPU utilization preventing executable from starting/completing.

Any thoughts on how to find/fix this issue? There were posts related to SQL 2012 but nothing for SQL 2014.

Thanks,

Morgan

Dynamic excel connection string

$
0
0

Hi, 

I have excel file as source, where the file name can be anything; so to fetch the data from the excel file, I wanted to create a dynamic excel connection string. 

So these are the following steps I have followed:

1. For Each Loop: 

Step 2:

Step 3: Excel Connection string

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Product\Marketing__Products___Services.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES";

Connection String Expression : @[User::SourceFolder]+ @[User::SourceFile]

And Below is the error I'm getting

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

The component reported the following warnings:

Error at PlanningIT_Service [Connection manager "Excel Connection Manager"]: The connection string format is not valid. It must consist of one or more components of the form X=Y, separated by semicolons. This error occurs when a connection string with zero components is set on database connection manager.

Error at PlanningIT_Service: The result of the expression "@[User::SourceFolder]+ @[User::SourceFile]" on property "\Package.Connections[Excel Connection Manager].Properties[ConnectionString]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.


Choose OK if you want to continue with the operation.
Choose Cancel if you want to stop the operation.

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

OK
Cancel
------------------------------

Service.Model calls within SSIS Script Task: "no endpoint element matching this contract could be found"

$
0
0

Techies--

I am using mssql2008 r2;bids vs2008 in an attempt to access a vendor's wcf service through a script task.  Before moving to SSIS, I tested the methods I planned to use with a simple C# console client app. The core service is the same in both the SSIS script task and the test app.  I changed the contract name in the app.config file to look like: 

contract = "ST_namefoscript999zz99999999s9ss9blahblah22x.csproj.RemoteVendorService.IRemoveVendorService"

Say this isn't so: http://www.sqldevelop.org/sql-server-integration-services/import-data-from-wcf-service-with-no-conrol-of-the-wcf-code-4491.shtml

These bindings from this vendor also happen to be custom--so, manually assiging values as suggested in the link above for http bindings may not be the complete answer.

Is the service.model portion of the app.config file in SSIS/script task ignored?

SSIS :Flat File Source Transforming it into Two OLE DB SQL Table (Throwing Errors when I Convert and Sort before Loading into OLEDB Source)

$
0
0

'm trying to take a flat file and turn it into two tables in SSIS and Load to a OLEDB Source (SSMS). I have the tables created in SSMS already that match up with the flat file that the rows are separated by ,'s. I had to do a data conversion Transform because the flat file data type was different than the nvarchar data type I had setup in the Table in SSMS. I'm running into some roadblock with my current package and can't get the data to Load into OLEDB without throwing some Errors before it loads to the Destination.

The Two Tables I have setup in SSMS. The one Has a Primary Key (Unique_ID) and that Primary Key References the Foreign Key the same (Unique_ID) in the other table

Right Now On my Control Flow I Have

Execute SQL Task To Truncate the Tables Prior to The New Load -> Two Data Flow Task for Each New Table

Data Flow Task I have setup for the First Table is -> 1.Txt File Flat Source 2.Data Conversion to convert String[DT_STR] to Unicode String [DT_WSTR] 3.Sort -> That I thought would remove the duplicate rows from the Data Conversion but the rows are still duplicating which is throwing an Error before it gets to the Destination(I have the CheckBox Checked for removing the duplicate Sort Values) 4.OLE DB Destination

The Error is: "An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'PK'. Cannot insert duplicate key in object 'dbo.'. The duplicate key value is (123).".

In The Data Viewer its duplicating records that I don't need which is causing the Primary Key Constraint For Example:

Data Conversion.sequence
123 Last Name First Name
123 Last Name First Name

The Second Data Flow Task is similar to the first one just the table in the Destination and the Columns I use is different.

I've looked at a lot of post and researched this issue. I am new to using SSIS and looking for the best possible way from a performance standpoint to Load these Two New Tables into a OLEDB Destination. Any recommendations would be greatly appreciated.

Couple Questions I need Answered:

1.Can I have Primary Key and a Foreign Key Setup between my two tables before I execute a package? I was able to Load the flat file into my two tables without a Primary Key and Foreign key referencing the Primary Key in my second table. I need to be able to Join these tables in the future so I need to keep the referential integrity between the two tables. 2. Am I going about this the right way in SSIS with the Transformations I am performing currently? I can't use a Lookup Transform because the Data Types are different between the Source(Flat File) and Destination(OLEDB Source)

If you need me to provide anymore details about the package or flatfile I used and how my Table is Setup in SSMS I can provide more details.

Win 10 - VS2013 - Cannot communicate with the debug host process. Failed to obtain child process active object.

$
0
0

I just moved from a Win 7/VS 2013/SQL 2014 environment to Win 10/VS 2013/SQL 2014. When I attempt to run an SSIS package in a VS solution, I see the error message:  "Cannot communicate with the debug host process. Failed to obtain child process active object."

I've repaired/reinstalled VS 2013 and attempted to reinstall/repair SSDT BI 2013 but cannot seem to do so. When I run the repair option or uninstall and attempt to reinstall, it says the components are already installed and halts. I've tried running in 32 bit vs 64 bit modes by switching the mode in Project properties. I've also attempted to register DtsDebugHost.exe using the /regserver switch but nothing changes.

I'm stuck. I have a lot of SSIS solutions and the only person on my team that does this work so I cannot compare how it is working for others. What am I missing here?


S

Single Package with Multiple Configuration setup

$
0
0

Hi Experts,

I have multiple source databases (all with same structure with different data) and a single target database. I would like to write a single ETL taking one source database and one target database at a time with source and target database connections parametereriszed. So that by changing the connections/connection string I should be able to run the same ETL for different sources and targets.

Is there any way this can be achieved in SSIS configurations?

Let me know your thoughts.

Regards,

Naveen J V


Naveen J V


XML Task in SSIS 2008 R2 vs SSIS 2016

$
0
0

XML Task performing XSLT transformation to modify an xml file. It uses same flatfile connection as source and destination. 

Works fine in SSIS 2008 R2 but the same is not observed in SSIS 2016. In SSIS 2016, it gives error message like "File ABC.xml is being used by another process."

Can someone please advice on this.

Is there some change in the XML task itself? Or is it some bug in SSIS 2008 R2 XML task that was fixed in its successor versions?

SSIS Communication Link Provider exception

$
0
0

I am getting following error while running the package which extracts data from a table which has 150 Million records.

The other tables which has got similar count are running fine. Its only with this table i am getting the error. Can you please help me to figure out the reason ,

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: "Communication link failure".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

running ssis package using dtexec util

$
0
0

I have an SSIS package which downloads files from azure containers and process them. Package executes fine through visual studio 2017. however when I run package from command line using dtexec util I am getting error in the part of SSIS script task which instantiates cloudstorageaccount class

CloudStorageAccount ca = CloudStorageAccount.Parse(connectionstring);

Error that I receive is "Exception has been thrown by target of invocation".

I am guessing this has to do with version of Microsoft.windowsazure.storage dll reference. there are mutliple copies of dll found in various locations on c drive. I have tried referencing dll in visual studio 2017 folder (dll version is 3.2.0.0) and also one in SQLServer/140/../Binn folder. (dll version is 4.3.0.0)

Any help?


Getting generic Errors in all ssis packages : the pre-execute phase and returned error code 0x80131500

$
0
0
Set Inbound Enrollment Batch Number:Error: Insert failed the pre-execute phase and returned error code 0x80131500.
Set Inbound Enrollment Batch Number:Error: KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: An error has occurred when retrieving metadata for CRM entity 'ahp_serialnumbergenerator': CRM service call returned an error: The specified user is either disabled or is not a member of any business unit.(Error Code: -2147220955, Detail Message: The specified user is either disabled or is not a member of any business unit.) ---> KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: The specified user is either disabled or is not a member of any business unit.(Error Code: -2147220955, Detail Message: The specified user is either disabled or is not a member of any business unit.) ---> System.ServiceModel.FaultException`1[KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault]: The specified user is either disabled or is not a member of any business unit. Server stack trace:    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.IOrganizationService.Execute(OrganizationRequest request)    at .ExecuteCore(OrganizationRequest request)    at .(OrganizationRequest, PipelineComponent , Guid , Int32 )    --- End of inner exception stack trace ---    at .(OrganizationRequest , PipelineComponent , Guid , Int32 )    at ..(String )    --- End of inner exception stack trace ---    at ..(String )    at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)    at .(String )    at .(String )    at .( )    at KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmDestinationComponent.PreExecute()   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPreExecute(IDTSManagedComponentWrapper100 wrapper)

Visual Studio 2015 & 64-bit debugging

$
0
0

Hi there.

I have some big SSIS packages that take all the available memory (for 32-bit applications - Roughly 3.5gb) & hence, fail with the Systen.OutOfMemoryException error. I have noticed in Task Manager that DTSDebugHost.exe was running in 32-bit mode which causes it to fail. 

Is there a way to run these packages in 64-bit mode? Note that Run64bitruntime = True & my workstation is 64-bit capable & equipped with 48GB of Ram.

Thanks for your help.


-Audren

Viewing all 24688 articles
Browse latest View live


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