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

The Script Task uses version 15.0 script that is not supported in this release of Integration Services

$
0
0

Hi All,

We are migrating an SSIS project from SQL 2012 to SQL 2016. The project upgraded successfully without any issues and able to run few packages without any errors. But there are few packages which has got the script task and they are failing. The error message is as below: -

Error: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_bb19096e98ab45d2a2d6132b995cd509" uses version 15.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.Load
FromXML(XmlElement elemProj, IDTSInfoEvents events)

This runs fine when run from BIDS (VS2015). It also runs fine if the project is deployed from BIDS and run through agent job. But when the deployment happens through .ispac (deployment) file, this error occurs. Can somebody suggest how to get past this error?

Is it any known issues with migration or with SSIS 2016?

Thanks.



Automate SSIS Project Deployment, Create environment , environment variables, environment reference and Map Project Parameters to environment variables

$
0
0

HI 

I am trying to automate all steps from deploying a ssis project to referencing an environment and mapping Project Parameters with environment varaibles

1) I have deployed the ispac file to server

2) Created an environment under SSISDB of Integration catalog

3) Created environment variables on the above created environment. 

4) Created an environment reference 

5) Mapped the Project Parameters to environment variables.

Can all this be done by a script instead of doing from SSMS ?

For Each Loop on Object recordset to Dynamically build/update/append a Variable to store and create a Query

$
0
0

Good day,

I have a For Each Loop recordset object that for each records creates a file and inserts a record in Oracle table

CreateObjectRecordsetVar > ForEach Record in object > (Create File > Insert record in oracle table) until recordset complete (+/-1000 iterations) = 1000 files & 1000 single records inserts

As the Inserts takes times per record, I would like to know if I can create update/append a variable or object to build the insert while loop so that I can move my insert outside of loop then insert occurs only once.

example:1 iteration >  VarBuild = select @varcol1, @varcol2

             2 iteration >  VarBuild = VarBuild + Union all select @varcol1, @varcol2

         +/- 1000 iteration >  VarBuild will have build 1000 selects as 1 query to insert

then when done it does 1 insert of a 1000 rows to oracle table, but I need to store or build the var as I loop.

the reason why its in the loop because if it fails that record does not get inserted.

or another way to highlight the failed record to exclude in the insert statement

Kindly advise on ideas or other options please to increase the performance of insert

Regards



مراكز صيانة تكييفات كاريير 01014723434_01225025360البحيره

SQL query (Advanced Select Statement )

$
0
0

Geeeting

im kinda new to SQL and im trying to figure out how to merge between 3 tables  and use sum function aswell it's little bit complicated ! i will demonstrate this in an example  :

Table SalesOrder :

               SalesOrderID | OrderDate |

  •                  1           |    1/1/2000
  •                  2           |    1/1/2010  
 

Table SalesOrderDetail

                SalesOrderDetailID | salesOrderID | Product

  •                  1                     |    1                |   Car_BLue
  •                  2                     |    2                 |    Car_Yellow
  •                  3                     |    3                 |   Car_Blue
  •                  4                     |    4                 |   Car_Yellow

ProductCost

Product       | Start Date cost | End Date cost | Cost

Car_yellow | 1/1/1990   |   1/1/2005   | 100

car yellow  | 1/2/2005   | NULL   | 200

Blue Car  | 1/1/1990 | NULL  | 200

i want my select statement to be something like that the problem the cost change depend on the order date and i need to merge 2 table to get the information  :

SalesOrderDetailID | salesOrderID | Product   | Cost

         

JSON Extract to XML destination (Kingswaysoft)

$
0
0

So I've been frustrated trying to solve this problem using the Kingswaysoft components. They seem quite rigid to work with and not at all flexible, but I'm hoping it's because I'm still a novice.

I'm using the JSON source component to read from a JSON file, and an XML destination to create an XML-document and send it to a web service.

I am reading from a JSON product order and extracting the data into columns.  Namely 2 output columns: 

1. Root Order - Complex Element:  Contains general Order information

2. Orderlines - (Array) - RepeatingComplexElement: Contains the elements in the Orderlines-array, namely each product line.

My problems:

1.

Root Order output has a JSON-value "Currency", that I need to map into an XML-element "CurrencyCode". But the Input-column "Currency" is not available to this CurrencyCode-element, as it belongs to the "Root Order"-input. I can't choose it from the dropdown list. 

Changing the JSON-order structure is not really an option, so the only other solution I can think of, is to split the entire process up into several DataFlow-tasks and use variables. But it seems like such an ugly solution, for a simple thing. 

2.

I have another JSON-value "Quantity" that I need to map to 2 different XML-elements. But I can only use the Input-column 'Quantity' once in the XML destination-component.  I worked around this by copying the JSON-value into a new column in a Premium Derived Column, and assigning this new column to the other Quantity field, in XML destination. It seems to works fine, but I was wondering if there was a better way?

Thanks a lot in advance!



List SSIS packages using the java

$
0
0

is it possible to list the packages available in ssis using java, if not please let know the way where i can list the packages other than Microsoft studio.

Thanks in advance 

event handler for ole db connection failure

$
0
0

Hi,

My ssis package consist of DFT,(Extract) containing:

  • Ole db source running a query against a cube
  • Ecozyroc Excel destination to dump data into excel

The issue i face is intermittent.Sometimes I face the following error refusing to connect to the cube.In this case,the DFT fails and whole package fails .I am running this via a job which fails.However ,if i retry from agent job after few mins,it works.

I want the package to continue running with either waiting a few mins within package and continue with next iteration.I tried to catch this error via event handler setting propagate=false,retain same connection=true,but everything in vain.

I see lot of goggle results stating it is not possible to handle this event and suggested a script task like below,but wanted to know if there is another way.

https://stackoverflow.com/questions/15302274/ssis-looping-through-servers-and-handling-failed-logins

Also,i have attached an image of how my package looks like:

the for loop loops through the object containing user emails and for each email, a query runs to pull data for that user,dumps them into excel and uploads the file in sharepoint.What breaks at times is the connection to the cube in DFT.

This is the error i see:

Package:


Debug Failure in SSIS ScriptTask when using Microsoft Excel Reference (interop)

$
0
0

Fellow SSISers

I have moved some ssis 2008 packages to ssis 2016.

These packages use Excel (Microsoft.Interop). This was necessary for the specific requirements by customer. Only way to really do what we needed.

Now, I can absolutely confirm that I no longer can get breakpoints to work when using interop on ssis 2016.

When I remove the reference for Excel (and the code inside that uses the reference). the breakpoint works.

When I put it back, the breakpoint is ignored. Even if I just add the reference without the vb code, it still failes to breakpoint.

This is in the main package NOT A CHILD PACKAGE.

1 - Does anyone know if MS is working on a fix for this?

2 - Other than putting messagebox.show in the code or other cluggy approaches, is there a workaround?

Thanks,

MG

SSIS connection to MySQL

$
0
0

Hello,  
Looking for some help with creating an SSIS connection manager to a MySQL database.  I have tried the following with no luck:

https://smallbusiness.chron.com/connect-mysql-ssis-60851.html

The error message is:

Test connection failed because of an error in initializing provider. Authentication to host '' for user '' using method 'caching_sha2_password' failed with message: Access denied for user using password: NO

My setup is:

Windows 10x64
Microsoft Visual Studio Enterprise 2017  
VisualStudio.15.Release/15.9.11+28307.586
MySQL for Visual Studio   1.2.8
SQL Server Data Tools   15.1.61903.01040
Microsoft SQL Server Integration Services Designer
Version 15.0.1100.123
MySQL connector/Net 8.0.16
MySQL Community Server 8.0.16

Thanks
Mike


There are blank spaces between each record in my FIXED WIDTH TEXT FILE DESTINATION

$
0
0

I have SSIS package to create FIXED WIDTH TEXT FILE.

I set up my text file connection manager as

Format = Ragged right

In the Flat File Connection Manager Editor:

I set all my columns as Fixed width in ColumnType except the very last column.

The last column, I have set up ColumnDelimiter as {CR}{LF}

Every column lines up perfectly.

But I don't know why there are blank records between each record.

The sample of my FIXED WIDTH TEXT FILE looks something like below: 

1HAZEL C BROWN 123 MAIN STREET    ORLANDO      FL32746

1JOHNN S BROWN 909 SOUT STREET    ORLANDO      FL32746

how to view historical changes in ssis package

$
0
0

Hello ,

is there a way to see the deployed package instead of the current package

explain:

there is a deployed package that works

i entered to the package via ssis and start modify changes to the package didn't save/deploye/rebuild/build

and i think the server reboot or "Admin" kick me and restart the server

now i entered to the package and see changes save  (didn't deployed/build again)

is there a way i could see the deployed package with all of the workflows (etl -the control flow,data flow, parameters etc..) so i could compare between the versions: the deployed and the current displayed

or something close because there is SCD process that is now empty that i believe it shouldn't  be empty

some info:

working on sql server 2012

ssis 2010

thanks in advanced

Error creating SSIS 2019 package programmatically

$
0
0

I am able to create package programmatically when it comes to ssis 2016 but when i try to create package programmatically i am getting below error.

"could not load file or assembly 'microsoft.sqlserver.dtsruntimewrap, version=15.100.0.0, culture=neutral, publickeytoken=89845dcd8080cc91' or one of its dependencies. the system cannot find the file specified."

Created sample package and uploaded in below one drive location.

https://1drv.ms/u/s!AlyBhK9gzDw2kTrlFaxfPtog8hBl

What i have observed is Microsoft.SqlServer.DTSRuntimeWrap for 2016 exists in "C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\v4.0_13.0.0.0__89845dcd8080cc91" but ssis 2019 which is part of visual studio 2017 installation didn't install in GAC_32 but installed in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\Binn\Microsoft.SQLServer.DTSRuntimeWrap.dll".

So installed it into gac using gacutil but now i am getting below error.

"Microsoft.SqlServer.Dts.Runtime.DtsComException: 'An Integration Services class cannot be found. Make sure that Integration Services is correctly installed on the computer that is running the application. Also, make sure that the 64-bit version of Integration Services is installed if you are running a 64-bit application."


Sam

SSIS package ran on 2010, fails on 2016 with Cannot open datafile. What am I missing?

$
0
0

I have a very simple Data Flow task that moves the results of a query to a *.csv file on a network drive.  It ran fine on SSIS 2010, but not now on SSIS 2016.  Note: I have another solution with over 100 packages that moved over fine (all are generated from BIML files), but it does not access a network drive.

When I run it on my desktop on VS 2017 it runs successfully.

Executing it manually in SSMS 2016 (as myself, Integration Services Catalog) it fails with Error: Cannot open the datafile "\\<server>\<root>\<dir>\<filename>.csv" and Warning: Access is denied. First line error is: 0xC020200E. Scheduled in Agent fails with same error.

I've done this:

deployed from VS 2017 with target server set to 2016

Re-configured the package's connection managers, tried various login ID's and two proxies, changed connection Managers from task level to package level.

The box itself has access to the drive and file.  Checked/re-set permissions to folder and file, Effective permissions are good.

Deleted existing output file.

Does Sql-Server 2016 have an off switch to access network drives?

Any thoughts will be gratefully appreciated.

Mac McCaskie

How to use RowCount with conditional split?

$
0
0

Hi Everyone,

Can anyone please help me with the following scenario?

- There is a table from which I am pulling the dataset. As per the row count in the dataset, I want to either create a text file based on the RowCount (i.e if rowcount=0; Create Emptied File  or if rowcount>0; Create Textfile).

To achieve it, I used the below flow but it is not working as expected. Am I doing anything wrong? If yes, please guide me with proper solution.

Currently, it goes to Case1 and Case2.

Conditional Split cases:

Case1 (There are no Record): If @rowcount ==0

Case2 (There are Record) : If @rowcount>0


Get dataflow programmatically

$
0
0

Hello,

my needs is create a master package who launch package with parametre ( source , destination query , column mapping...)

So I add a script task to update connexion and query in my control flow before data flow.

Can you tell me in this script task in C# how can get dataflow by name ? 

Cannot find the record using the where clause

$
0
0

Hi,

I have a very basic package that loads the data from sql server table1 to another sql server table2 . The counts are the same in both the source and the destination. Now comes the weir part. 

On the destination table i did a select with WHERE Clause

select * from destinationtable where invoiceno='0048742' and i do not get any records. I did select * from the destinationtable and copied the dataset to excel and i filtered and can see the record 48742. I tried LTRIM and RTRIM but still nothing pops up. I am sure i am missing some basic thing , but at this time i have no idea where to look. please let me know where and what to try

Thanks


SV

Edit script task doesnt work in VS 2013 and SSDT 12.0 with windows 7 ?

$
0
0

Edit script task doesn't work in VS 2013 and SSDT 12.0  with windows 7 ?

I m trying to open the edit script task but it doesnt open and nothing happens.




Cannot connect to SSIS, dtsruntimewrap exception 0xC00160AC

$
0
0

I just updated SSMS to v18 and now I cannot connect to SSIS. I was able to previously.

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

Cannot connect to ..

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

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

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

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476

fyi: the for help link above is out of date.

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

Program Location:

  at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request)

  at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)

  at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

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

Exception from HRESULT:0xC00160AC (Microsoft.SqlServer.DTSRuntimeWrap)

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

For help, click: http://go.microsoft.com/fwlink/?LinkId=506689

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

Program Location:

  at Microsoft.SqlServer.Dts.Runtime.Application.GetServerInfo(String server, String& serverVersion)

  at Microsoft.SqlServer.Dts.SmoEnum.DTSEnum.GetData(EnumResult erParent)

  at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData()

  at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req, Object ci)

  at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo, Request request)

  at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request)

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

Exception from HRESULT:0xC00160AC (Microsoft.SqlServer.DTSRuntimeWrap)

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

Program Location:

  at Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.GetServerInfo(String bstrMachineName, String& serverVersion)

  at Microsoft.SqlServer.Dts.Runtime.Application.GetServerInfo(String server, String& serverVersion)

I don't know why the versions are different in the about box, but there they are.

I found no SSIS related issues in the error logs.

select @@version

/*

Microsoft SQL Server 2017 (RTM-GDR) (KB4293803) - 14.0.2002.14 (X64)   

Jul 21 2018 07:47:45   Copyright (C) 2017 Microsoft Corporation  

Developer Edition (64-bit) on Windows 10 Home 10.0 <X64> (Build 17763: )

*/



SSIS OLE DB deprecation... what to do about it?

$
0
0

Hi

I know that Microsoft announced deprecation of OLE DB for SQL Server but what does it mean for SSIS Developer? I've started doingSSIS Tutorials YouTube and thought I will find this out and mention it... as it sounds like an important one ;)

Questions I have:

1) Is OLE DB is deprecated in next release than would I have to upgrade existing connections?

2) I think ADO.NET runs on top of OLE DB? If yes than I have the same question as question 1 for ado.net as I suspect the answer will be the same?

3) What about Lookups? I thought they support only OLEDB?

4) What connections should I use? ODBC? Is there anything else that can connect to SQL Server? 

5) What are drawbacks of ODBC for SSIS? Any extra considerations for development / deployment?

Many thanks in advance!

Emil

Viewing all 24688 articles
Browse latest View live


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