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

Running SSIS package with script component on SQL Server 2016 gives error Component Mismatch Exception

$
0
0

I have SSIS project deployed on SQL Sever 2016, the project has a package that uses script component, the package runs with no errors locally on VS 2017 but when deployed gives error.

Solutions that I tried

1)Changed the target version to SQL Server 2016 in SSIS project

2)Change the .NET runtime on script component to 4.6

,still no luck .Any help would be appreciated

error report-

Data Flow Task 1:Error: Microsoft.SqlServer.Dts.Pipeline.ComponentVersionMismatchException: The version of Script Component is not compatible with this version of the DataFlow.  [[The version or pipeline version or both for the specified component is higher than the current version.  This package was probably created on a new version of DTS or the component than is installed on the current PC.]]
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostCheckAndPerformUpgrade(IDTSManagedComponentWrapper100 wrapper, Int32 lPipelineVersion)

Data Flow Task 1:Error: The component metadata for "Script Component" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.



SSIS between SQL 2017 and 2008R2 using Kerberos Delegation .. oy ..

$
0
0

I have three machines participating in this exercise and I think I have everything configured properly -- but I'm still getting an error.

The error is the dreaded 'nt authority\anonymous' login error that we know comes from a double-hop issue from either a bad configuration of delegation or it not being configured, at all.

First machine is my client with SSMS 17.x; it is on this machine that I'll be right-clicking the package to configure the environment and execute.

Second machine is the dev server on which I have SQL 2017 and the Integration Services installed; it is this machine that stores the SSIS package I will be executing; I'm using a group managed service account for the SQL service set up with Kerberos Delegation (constrained, but still functioning between this and the legacy instance).

Third machine is a legacy SQL 2008 R2 instance that contains an old database in which the SSIS package will be executing a sproc to return a dataset; I'm using regular domain user account configured as a service account; Kerberos Delegation has been set on this account also (again, constrained).

The SSIS package has project-level connection managers that are configured to use Windows Authentication on each target instance (dev and legacy).  Package runs fine from VS (as expected); also runs fine when I run it from the dev machine.

I'm credentialed up on all machines - I get the same error whether I use a domain admin or user account.  The SPN's are set up so that the dev and legacy instances can communicate.  In fact, the linked server connection is configured to use Kerberos Delegation and works as expected; so I know Kerberos is configured properly (at least between the SQL service accounts).

But when I execute the SSIS package from my client machine, it will fail with the 'anonymous' error.

I understand that SQL 2008R2 SSIS doesn't support Kerberos Delegation -- well, maybe I understand it.  I've always taken that statement to mean I can't run a SSIS package *from* SSIS 2008 and expect delegation to work.  In this case, I'm executing on SQL 2017 and trying to run a sproc on a 2008R2 database (basically an RPC call).  I'm not using SSIS on 2008R2 at all.

Do I need to somehow configure a SPN for ISServerExec.exe, or will it use the SPN for the SQL service acct?  Or -- is it that I'm using constrained delegation and need to add an entry for ISServerExec.exe (in whatever manner that service is identified for SPNs)?  Those're really my only thought-out questions -- the rest of it is; what am I missing?

Error in Web Service Task

$
0
0

Hello Everyone,

I am using Web Service Task in SSIS package but intermittently i am getting below error due to package got failed.

ERROR MESSAGE - An error occurred with the following error message: 
  "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException:Failed to clean up. The proxy created for the Web service might not have been deleted.     
  at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvoker.CleanUp()     
  at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()". 

Need your assistance to resolve and learn something new.

Regards,

Tarun

moving SSIS projects from one server to another

$
0
0

Hi everyone,

we have a few projects SSIS projects on our production server. These jobs needs some changes and so we would like to move it to our development server where we have the visual studio installed.

can someone please suggest ways to move the projects across?


NKS

XML Task using XSLT

$
0
0

HI was able to create csv file from  XML file using XSLT. The XML has thousand's of rows but it was populating only one row , can some one help me out what needs to be done to populate. do we need to use for loop inside xslt ?

Thanks

Raj

SSIS processes data well in VS but doesn't process data file in SSMS schedules job

$
0
0

Hello Experts,

I've created a SSIS project in Visual Studio and it runs well to process the text file, insert records in SQL tables and move the processed file to archive folder when I manually execute the package in Visual Studio.

But, after I deployed the project to SSISDB in the Integration Services Catalogs and created a job in SQL Server Agent, I can see that the job succeeded in the history, but the the text file was not processed, the records were not inserted to the SQL tables and the text file was not moved to archive folder (of course)

Why the same package is running correctly in Visual Studio but not in jobs in SQL Agent? What is not configured or set correctly    

Thanks,


lw


ssis flatfile connection text qualifier issue

$
0
0

We have a ssis package with flatfile connection single quote ' text qualifier which works well in 2008 R2 version with pipe delimiter,  example:

c1|c2|c3|
'John'|'Mc'Donalds'|'New york'
'Marry'|'Gold'|'New york'

The same connection manager fail in 2017 SSIS package /after upgrade or if we try to create a new one, the data gets messes up due to that text qualifier in column value. Any tip/trick to resolve this?

Thanks in advance.


Mahesh

Use CSOM to add values to Microsoft Project Server Lookup table

$
0
0

Hi everyone.  Hope this finds you well. Some background:  I have a requirement to integrate Microsoft Project Server (MPS) with a Project Management tool and send data from the PM tool to MPS.  The project data will be utilized as drop-down values in a Lookup Table.  From my understanding, writing data to MPS is done through the CSOM.  

Question:  

Can anyone provide guidance how to use the CSOM for Lookup table manipulation, i.e. inserting/deleting lookup values?  Do you have code that can be shared?

Thanks everyone.  Please let me know if there are questions.  Appreciate any assistance.

Hans 





Forbidden (403) error when trying to setup OData connection with SSIS 2012

$
0
0

Hi, 

I am trying to setup OData connection to pull feed from Sharepoint online. It throws 'The remote server returned an error: (403) Forbidden. (System)' error.

'Microsoft Online services Authentification' is set to True.

User ID: <userlogon>@company.com

Sharepoint URL: https://xxxx.sharepoint.com/sites/Project/_api/web/lists/...

am I missing some settings? can you please help?

Thanks,

Malveka

Early Arriving Facts/Late Arriving Dimension

$
0
0
I am beginner to SQL BI and made some researches about Early Arriving Facts/Late Arriving Dimensionand I can't really understand the concept. I want a concrete example explaining this case once encountered.

Adding HTML code to a script task in SSIS

$
0
0
How do i add HTML code in a script task using C# as the primary language. 

SSIS and ScriptTask failing: "Exception has been thrown by the target of an invocation"

$
0
0

Hi there,

I created a simple SSIS package with only one element at the moment.

ScriptTask is pointed to ahttp://hurt.super-toys.pl/xml/super_toys_ceneo_pelny.xml

Via User::Url 

Unfortunately it fails

What can be done to test it properly and how can I get more detailed Error pleae?



at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

  at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

  at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

  at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

  at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()



Execute SQL Task, Single Row ResultSet value doesn't get retained.

$
0
0

I run an Execute SQL Task with a Single Row result set, then a Script Task.

I have set PreExecute and PostExecute breakpoints on the Execute SQL Task and a PreExecute on the Script Task, and am watching a var in a Debug Watch Window (Ctrl + Alt + W,1).

On the Execute SQL Task PreExecute, the var = 'Automate Weekly Failed'

On the Execute SQL Task PostExecute, the var = 'Rejections from daily subcontractor files'

On the Script Task PreExecute, the var has reverted to the prior value, 'Automate Weekly Failed'

I have made sure that I do not have the same var defined with 2 different scopes.  It is only defined at the package level.

I have tried both ADO.NET and OLE DB connections.

Any ideas?

How to execute a Task, Pause for 30 seconds then execute again until table row count is zero?

$
0
0


I have looked on the net and read several blogs but cant seem to find what I am looking for.

I need to run a task based on the row count of a table. If the count is greater than zero, then run the task. Pause for 30 seconds, check the count again, then run the task again. keep doing this until the count is zero then stop or move to something else.

Thank you for your help.



ssis equivalent to waitfor delay

$
0
0

it looks like folks are recommending against using the db engine for built in delays (to avoid file name conflicts) but I dont see any ssis based solutions to delaying by 90 seconds each call to my child pkg.  I dont really want a table with a ready flag like one author seems to be proposing.

 

Is my only hope a .net based loop (or delay) in a script, one that gets current date and uses .net to hold up the parent pkg?  Will daylight savings time interfere with such a solution?   Maybe I should use ticks?  Or I see a sleep .dll in one post.  


Error when running the package through job

$
0
0

I have created a package from Import/Export wizard and saved the package into SQL Seever. I can able run the package with out any error from integration services ->Stored Package -> MSDB. But when I run the same package through job I am getting the following error.

NOTE: I am using same user to run manually and agent service.

Message:

Executed as user: xxxx. Microsoft (R) SQL Server Execute Package Utility Version 12.0.4100.1 for 64 bit Copyright (C) Microsoft Corporation. All rights reserved. Started 12:08:59 PM Error 2019-06-07 12:09:01.28 Code 0xC0208449 Source: Data Flow Task 1 Source - Query [80] Description: ADO NET Source has failed to acquire the connection {xxxx} with the following error message: "The type initializer for 'Sap.Data.Hana.HanaConnection' threw an exception.". End Error Error: 2019-06-07 12:09:01.28 Code 0xC0047017  Source: Data Flow task 1 SSIS Pipeline Description: One or more component failed validation. End Error Error: 2019-06-07 12:09:01.28  Code:0xC0024107  Source: Data Flow Task 1  Description: There were errors during task validation End Error DTExec. The Package execution returned DTSER_FAILURE(1). Started: 12:08:59P.M Finished: 12:09:01 PM Elapsed: 1.375 seconds. The package execution failed. The step failed.


Naresh

Error at Integration Service

$
0
0

Hi there,

I'm gonna import a package in Integration Service, but I receive this error:

The object name is not valid. The name cannot be empty.
 ({9F8398B6-C8F4-4AF5-8D64-2FD1C96F95C3})

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

   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents events, Boolean loadNeutral)
   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents events)
   at Microsoft.DataTransformationServices.Controls.PackageProtectionUtils.<>c__DisplayClass4.<LoadPackageFromFile>b__3(String password, IDTSEvents events)
   at Microsoft.DataTransformationServices.Controls.PackageProtectionUtils.LoadPackageWithPassword(PackageLoader loader, IWin32Window dialogParent, String packageName, Boolean askOptionalPassword, String& packagePassword, DtsProtectionEventListener errorListener)
   at Microsoft.DataTransformationServices.Controls.PackageProtectionUtils.LoadPackageFromFile(String file, IWin32Window dialogParent, Boolean askOptionalPassword, PackageUpgradeOptions packageUpgradeOptions, String& packagePassword, DtsProtectionEventListener errorListener)
   at Microsoft.DataTransformationServices.Controls.PackageLocationControl.LoadPackage(DtsProtectionEventListener errorListener, PackageUpgradeOptions packageUpgradeOptions, String& packagePassword)
   at Microsoft.DataTransformationServices.Controls.PackageLocationControl.LoadPackage(DtsProtectionEventListener errorListener, String& packagePassword)
   at Microsoft.SqlServer.Dts.ObjectExplorerUI.ImportPackageAsAction.ImportPackage(ImportPackageAsForm dlg)

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

The object name is not valid. The name cannot be empty.
 ({9F8398B6-C8F4-4AF5-8D64-2FD1C96F95C3})

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

   at Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.LoadPackage(String FileName, Boolean loadNeutral, IDTSEvents100 pEvents)
   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents events, Boolean loadNeutral)

The package has been imported, and I want to update it. I deleted the old package, but the problem still exists.

What should I do now?

SSIS Memory Errors without any Memory Pressure

$
0
0

After upgrading an SSIS package from SQL Server 2008R2  to SSIS 2014 (12.0.442) I am seeing the package fail with the following error:

Error: A buffer failed while allocating 104856448 bytes.

The next set or information indicates however that there does not actual shortage of memory on the instance as per below log

Error: The system reports 11 percent memory load. There are 206157959168 bytes of physical memory with 182876856320 bytes free. There are 4294836224 bytes of virtual memory with 1266438144 bytes free. The paging file has 244410011648 bytes with 225109983232 bytes free.

Information: Buffer manager allocated 2530 megabyte(s) in 13653 physical buffer(s).

Information: Component "LkpPlanMember" (125) owns 2530 megabyte(s) physical buffer.

[SSIS.Pipeline] Error: The Data Flow task failed to create a buffer to call PrimeOutput for output "OleSrcAtunePlanInvestment" (269) on component "OLE DB Source Output" (280). This error usually occurs due to an out-of-memory condition.

The Server is running SQL Server 2014 Enterprise Edition version - 12.0.442 with 192GB of Ram. The Max Memory on the SQL Server instance was reduced to 64GB to ensure that plenty of memory is available

This package has been running for years on a SQL Server 2008 R2 version with only 128GB of Ram

Does anyone have ideas on how to correct this error?

Can I loop through a SQL table using the Foreach Item Enumerator?

$
0
0
I need to loop through records in a table and process them (I have the process part figured out).  I initially tried using the Foreach ADO Enumerator, but I'm having issues (errors) with the field variables.  I believe using the Foreach Item Enumerator would be a simpler and better maintenance-wise approach, but I'm not able to find anything related to the Foreach Item and recordset looping.  Is this possible?

Rambler_358

Accessing Project parameter or SSIS Catalogue Environment variables in Script Task

$
0
0

Hi Team,

We want to populate few parameters from database so that they are passed on to particular projects deployed on SSIS catalogue.

We have mapped environment variables of Project - 1 to few other projects. So that if these are set, they will passed onto other projects as well.

We want to set the environment variables (or atleast project parameters) Project -1 from database in script task.

However, we have seen that project variables cannot be used in READWRITEVARIABLES in script task.

Any suggestions if we can access SSIS catalogue - environment variable sin the script task?

NOTE: Not looking for package variables as we need to configure them in every child package in order to pass on the values from parent package. Does not look effective.

Request your help!

Thanks,

Gayathri

Viewing all 24688 articles
Browse latest View live


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