script-task

SSIS Script Task - No Interface Supported

限于喜欢 提交于 2019-12-11 13:07:24
问题 Purpose : I have an SSIS Solution with various packages, one set of these packages is currently created with a package per table due to them having different structures. The aim is to create a template package (done), update variables/table names (done), reinitialise and re-map columns, execute package for each table. Problem : So, as you can tell, I'm up to the point that i need to reinitialise but I am unable to get to the data flow task and keep getting this error: No such interface

Debugging a Javascript within Camunda's Script-Task

ⅰ亾dé卋堺 提交于 2019-12-11 12:45:16
问题 I'm trying to merge two arrays in a Script Task of type Javascript within a Process in Camunda . Here's my script: var arr1 = execution.getVariableTyped("arr1", true); var arr2 = execution.getVariableTyped("arr2", true); var merged = []; for (var i1 in arr1) { var found = false; for (var i2 in merged) { if (arr1[i1].id == merged[i2].id) { found = true; break; } } if (!found) { merged.push(arr1[i1]); } } for (var i1 in arr2) { var found = false; for (var i2 in merged) { if (arr2[i1].id ==

Meta Data refresh while looping through tables in SSIS

房东的猫 提交于 2019-12-11 05:27:10
问题 The situation: I have a list of queries written so that each select data from their respective table. I want to create this list of queries as an SSIS object variable and iterate through each one, using the query as a OLE DB source in a DFT. Is there any way to do this so that the DFT source component does not have an issue with the meta data being incorrect, after we switch to a query using a different table than the first? The destination will also be changing as well. I know that you can

SSIS is executing successfully, but it doesn't seem to be running the script task portion

柔情痞子 提交于 2019-12-10 17:45:14
问题 I have an SSIS package that runs an SQL query and exports it to a csv file via a Data Flow Task. After the csv is created, I have a "Script Task" set to connect to an SMTP server and send the csv file as an attachment. On my local machine the package runs fine, but when I load it into SQL Server Management Studio on the server it doesn't work as expected. SQL Server MS says that the package executed successfully, and the csv file is generated in the location expected. However, the "Script

How to avoid manually browsing DLL in Add Reference of Script Task when deploying package on production?

孤街浪徒 提交于 2019-12-10 13:25:24
问题 I use EPPlus.dll library for generating Excel files on the fly for attachment and generate mailer in Script Task of SSIS package. When there is new requirement for change in mailer comes, I do the change in Script Task on my local machine and send the built package file ( .dtsx ) to DBA team for deployment. Now everytime I have to ask the DBA team to share production server screen with me where I: Open the file in Visual Studio Data Tools solution Browse to the dll location Add Reference to

SQL Server 2012 SSIS Script Task for sending mail from Gamil to Gmail , showing “DTS Script :Runtime Error”

筅森魡賤 提交于 2019-12-08 06:37:53
问题 I am using SSIS 12, SQL Server 2012, Visual Studio 2012 and .net 4. My SSIS script task code(for sending mail): // Introduction to the script task /* The Script Task allows you to perform virtually any operation that can be accomplished in * a .Net application within the context of an Integration Services control flow. * * Expand the other regions which have "Help" prefixes for examples of specific ways to use * Integration Services features within this script task. */ using System; using

SQL Server 2012 SSIS Script Task for sending mail from Gamil to Gmail , showing “DTS Script :Runtime Error”

自作多情 提交于 2019-12-08 03:57:27
I am using SSIS 12, SQL Server 2012, Visual Studio 2012 and .net 4. My SSIS script task code(for sending mail): // Introduction to the script task /* The Script Task allows you to perform virtually any operation that can be accomplished in * a .Net application within the context of an Integration Services control flow. * * Expand the other regions which have "Help" prefixes for examples of specific ways to use * Integration Services features within this script task. */ using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using System.Net; using

Time parsing Issue using DateTime.ParseExact()

↘锁芯ラ 提交于 2019-12-02 04:04:28
I have a Time Value stored as string with the format HH:mm I used the following code to parse it as date with Today Date DateTime.ParseExact("09:00","HH:mm",New System.Globalization.CultureInfi("En-GB")) The Result Is 2017-03-15 09:00:00 When Running this Code From another machine i get the following Result: 1899-12-31 09:00:00 I replaced my code to the following DateTime.ParseExact(DateTime.Now.ToString("yyyy-MM-dd") & " 09:00","yyyy-MM-dd HH:mm",New System.Globalization.CultureInfi("En-GB")) And it works Fine, But i still want to Know why every system parsed the date to a different Value???

Error: 0x1 at XX: Exception has been thrown by the target of an invocation

我与影子孤独终老i 提交于 2019-12-02 03:00:15
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 6 months ago . I am trying to copy files from an FTP server to a local drive using C# Task script in SSIS. The script ran well in SQL Studio 2008 R2, but there was a version update to 2016 using SQL SSDT (SQL Server Data Tools) 2015, and when I first executed the script it ran OK, but later threw the following error: Error: 0x1 at 3-Copy and rename EC Files: Exception has been thrown by the

Failing to read String value from an excel column

流过昼夜 提交于 2019-12-01 22:45:30
问题 SSIS script task reading only numeric values of excel but fails to read the alphanumeric values present in the same column I've tried using IMEX=0, IMEX=1 and IMEX=2. But the Alphanumeric values are being generated as NULL in my SQL server table. //Excel Connection String string ConStr; ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileFullPath + ";Extended Properties=\"Excel 12.0;HDR=" + HDR + ";IMEX=0\""; If the 1st 8 column 'A' values are integer (0,1,2,3,4,5,6,7) and then