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

The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009

$
0
0

I have deployed my packages into Sql Server and I am using Configuration File. As my Data Source is Excel, I have changed the connection string during deployment with Server Path. But I am getting the following errors. Actually the File Exist in Path. May I know What is cause of the issue? Do I need to give any permission to execute the package.

 

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed. 

 

component "Excel Source Service Contract Upload" (1) failed validation and returned error code 0xC020801C. 

One or more component failed validation. 

 

There were errors during task validation. 

DTS_E_OLEDBERROR, Error Code: 0x80004005 Source: "MS JET DB Engine" Description : Path is not valid


 


Issue while migrating SQL 2012 job to SQL 2017

$
0
0

Hi ,

We are migrating SSIS 2012 pacakge to SSIS 2017 version and deploying in SQL 2017 server.

we are getting the below error.

Option "/download" is not valid. The command line parameters are invalid. The step failed.

Could you please help.

SSIS Automate ssis package execution

$
0
0

Hello,

I'm looking for a free scheduler to automatically execute my package .detsw and the config File .dtsConfig  

I cant use SQL Server Agent

Thanks in advance.


SSIS send mail task

$
0
0

Hello,

how can i create a local smtp server to test the send mail Task, i dont want to use the script task .

Thanks in advance

How to add drop downs to excel exports

$
0
0

I am creating dynamic excel files with each file consisting of 2 worksheets in it. In both the worksheets I am looking to create a drop down with few values for few of my columns. 

I am not getting it to be done using ssis excel destination.

Thanks

Write and delete CSV files in SQL database

$
0
0

Hi !

I have a question about creating a job in SQL 2012 and I would like some help.

So I have a local folder on a PC which contains CSV files that are generated by another system via VBS script with unique names as follows ("id_yyyymmdd_hhmmss"):

"id_20190913_090000",

"id_20190913_094512",

"id_20190913_103205", ...

I need to create a scheduled SQL Server Agent job (e.g. every minute) that runs a package with a dataflow as follows: if there are CSV files in this local folder when the event occurs that is written to SQL database of each files in the correct order (oldest to newest file) and only after writing the data contained in the CSV file the CSV file be deleted from the local PC folder.

The intention is to create a kind of buffer (local folder) between the system that generates the CSV files via script and the SQL database so that, in case of communication loss or slowness, it does not affect writing to the SQL database. Currently the system writes directly to the SQL database via script (without generating CSV files), however it is generating slowness since each write has to open the connection to the database and then close, stopping the execution of the script.


What I would like to ask help is how to save multiple CSV files in the SQL and after the confirmation of writing delete the recorded file.

I appreciate any help!

Cheers,
Berg

SSIS Execute Process Task not running Python script

$
0
0

I've searched high and low for a solution and none of them worked. Some of the more common "solutions" are to use a batch file that launches Python and pass the .py script as an argument; launch the Python executable in the Execute Process Task passing the .py script as an argument; check permissions; etc.

My Python script runs perfectly fine outside of SSIS. Creating a batch file that changes working directory and calls Python with my .py script as an argument runs fine outside of SSIS. Even boiling the task down to a basic command (e.g., mkdir) in a DOS prompt and calling that from the Execute Process Task with cmd.exe doesn't work. It appears that SSIS does not want to execute anything from the Execute Process Task suggesting it's a priv (or some type of configuration) issue, but I can't see how that's possible because I'm trying everything on my local machine where I'm an administrator. I'm not even trying to do anything that accesses network resources; it's all simple local stuff just to see how the Execute Process Task works and then incrementally escalating the complexity after the "plumbing" works, but I can even get the basic plumbing working.

What is the missing ingredient here to get this Execute Process Task working?

Thanks in advance.

Miscellaneous info: Dell Latitude running Windows 10 Pro version 1903; SQL Server 2016 v13.0.4259.0 (X64) running on a Windows 2012 R2 server; Visual Studio Professional 2015 w/SSDT.

SQL Agent jobs are failing with Required privileges are held by client.

$
0
0

Hi ,

I have SQL Jobs that are running normally till the windows patches got installed. It says 

(reason: A required privilege is not held by the client).  The step failed.

I googled it and tried all the options but no luck. 

I deleted the proxy and Credentials and created back again.

I checked the proxy account and all the permission are there as required.

My Windows support team uninstalled the patch and rebooted the server with no luck.

We are using SQL Server 2016 on Windows server 2016

When i run the package manually via Integration service catalog the packages are going into pending state.

Its been 15 day since it started failing. Please help me with the fix.


cvsuman



how to change the Sharepoint id from the source to the destination?

$
0
0

Hello,

I am trying to get the data from an onprem Sharepoint list source into another Sharepoint online list. But the Sharepoint ID on prem is not matching what i have on the Sharepoint online. Mine starts with 1, 2, 3..... Is there a way i can accomplish this on the SSIS package? Any help will be much appreciated. 

Thank you,


How to convert nvarchar to decimal in SQL

$
0
0

When I use cast function value has turned to round number but I need value to be decimal.

My expression was:

Casewhen column name=''thennullelsecast (column name as decimal(18, 2))end cast value

Any suggestions please

Saphire


Error: 0x3 at Foreach Loop Container: Variable "User::Result" does not contain a valid data object

$
0
0

Hi,

I use execute sql task and foreach loop in my package.

In the sql task , I use sql query and put variable in result set.

In the foreach loop , I read the varible.

When I run package, I get error:

Error: 0x3 at Foreach Loop Container: Variable "User::Result" does not contain a valid data object

All help will be appreciated.

thx

How to Replace a Comma with a space in a Derived Column

$
0
0

I'm trying to replace any commas in a column with a space. I'm using the following in a derived column: 

(DT_TEXT)REPLACE([VendorMasterName] ,"-","")

Anytime I try to save the Derived Column, I'm receiving the following error: 

Error at Data Flow Task [Derived Column [218]]: Attempt to parse the expression "(DT_TEXT)REPLACE([VendorMasterName],",","")" failed. The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis. 

I've also Tried the following:

(DT_STR)REPLACE([VendorMasterName] ,"-","")

(DT_TEXT)REPLACE([VendorMasterName] ,'-','')

Any help would be greatly appreciated! 

Thank You

SSIS Transaction handling failure

$
0
0

Hello all,

I'm at a loss with an SSIS package I inherited. It contains:

  • 1 Script Task
  • 3 Execute SQL tasks
  • 5 Data flow tasks (each contains a number of merges, lookups, data inserts and other transformations)
  • 1 file system task of the package.

All of these are encapsulated in a Foreach loop container. I've been tasked with modifying the package so that if any of the steps within the control/data flow fails, the entire thing is rolled back. Now I've tried two different approaches to accomplish this:

I. Using Distributed Transactions.

I ensured that:

  • MSDTC was running on target server and executing client (screenshot enclosed)
  • msdtc.exe was added as an exception to server and client firewall
  • Inbound and outbound rules were set for both server and client to allow DTC connections.
  • ForeachLoop Container TrasanctionLevel: Required
  • All other tasks TransactionLevel: Supported
  • My OLEDB Connection has RetainSameConnection set to TRUE and I'm using SQL Server Authentication with Save Password checked

When I execute the package, it fails right after the script task (first step) with the following message:

[Execute SQL Task] Error: Failed to acquire connection "NHS". Connection may not be configured correctly or you may not have the right permissions on this connection.

Task Get BatchNo From FileControl failed

Information: Aborting the current distributed transaction.

Finished, 3:07:45 PM, Elapsed time: 00:00:35.985

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Finished, 3:07:45 PM, Elapsed time: 00:00:37.109

[Connection manager "NHS"] Error: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00E "The transaction has already been implicitly or explicitly committed or aborted".

[Connection manager "NHS"] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x8004D00E.

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Finished, 3:07:45 PM, Elapsed time: 00:00:37.328

II. After spending an entire week trying to figure out a workaround, I decided to try SQL Tasks to try to accomplish my goa using 3 Execute SQL Tasks: 

  • BEGIN TRAN before the foreach loop container
  • COMMIT TRAN After the ForeachLoop Container with a Success Constraint
  • ROLLBACK TRAN After the ForeachLoop Container with a Failure constraint

In this case, foreachloop container and all other tasks have TransactionLevel property set to Supported. Now here, the problem is that the package executes up to the fourth data flow task and hangs there forever. After logging into SQL Server and verifying the running sessions, I noticed sys.sp_describe_first_result_set;1 as a headblocker session. Doing some research, I found it could be related to a few TRUNCATE statements in some of my Data flow tasks which could cause a schema lock. I went ahead and changed the ValidateExternalMetaData property to False for all tasks within my data flow and changed my truncate statements to DELETE statements instead. Re-ran package and still hangs in the same spot with the same headblocker. As an alternative, I tried creating a second OLEDB connection to the same database, assigned that new OLEDB Connection to my BEGIN, ROLLBACK and COMMIT SQL tasks with RetainSameConnectionProperty set to TRUE and changed the RetainSameConnectionProperty to FALSE (and tried it with TRUE as well) in the original OLEDB connection (the one used by the data flow tasks). This worked in the sense that the package appeared to execute (It ran and Commit Tran executed fine) and then I ran it again with a forced error to cause it to fail and the Rollback TRAN task executed successfully, however, when I queried the affected tables, the transaction hadn't rolled back, all new records were inserted and old ones were updated (the begin tran was clearly started in a different connection and hence didnt affect the packages workflow).

I'm not sure what else to try at this point. Any help would be truly appreciated, Im about to go nuts with this!

P.S. additionally, all objects have "DelayValidation" set to true on everything and the SQL Server is 2012.

SSIS package failed due to hidden characters in Excel source file (flat file)

$
0
0

I am experiencing an issue with failing my SSIS package due to hidden characters sits in some of the Excel columns. Some cells in the excel spreadsheet column are blank and they have some hidden characters that might cause this failure to transfer data from Excel flat file to SQL database. When I manually clear those empty cells package will work with no issues. So I want to find a way to clear those columns/cells that have hidden characters

If someone can help me on this would be much appreciated.

Thanks Heaps

Monalisa44

Could not load file or assembly 'microsoft.sqlserver.integrationservices.server

$
0
0

I'm trying to deploy a SSIS package from Visual Studio to my secondary server.  The db owner is the same on server 2 as it is on server 1.  This is the error message that I get.

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: 
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException: 
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
 (Microsoft SQL Server, Error: 10314)



Load 2 values in a recordset

$
0
0

Hi All

My data flow looks like 

1. table source ( which has 2 columns as quest_ID and page_ID )

2. recordset ( i want to load both IDs in one recordset in 2 object data type variables )

the above im doing because going forwrad i would need those 2 IDs of same row ofocurse to use it in a for loop

my question is can i load two variables in a recordset



SSIS Package failed to execute after convert to package deployment model

$
0
0

Hi

I have a working SSIS packages running well from debug mode. So to deploy to SQL Server, I actually converted to Package Deployment Model, so that it can generate a dtsconfig file with login credentials.

The problem is, after I converted to Package Deployment Model and created that dtsconfig file, I no longer able to execute the package from debug mode, it kept throwing error. Any advice? Thanks.

'Execute SQL Task: Failed to acquire connection "DB Conn". Connection may not be configured correctly or you may not have the right permissions on this connection.'


OST to PST Conversion

$
0
0

I have tried a lot of tools for conversion but found OST to PST Converter one of the best, it is ads free , easy to use, fast in processing, please recommend me any other tool also that can help me in  easy conversion from ost to pst conversion online.

coolutils dotcom slash OSTtoPSTConverter


sharepoint list source siteURL is not changing in visual studio.

$
0
0

I have developed a dtsx package on one machine in visual studio 2015. This solution reads from SharePoint 2013 list as source and destination is SQL server.

Now I copied that code solution to another machine. I wish to change site URL in Sharepoint list source component and run but this parameter is not changing. I checked if files are not READONLY.

1) site url in "sharepoint list source" is not changing it goes back to old machine url when I save and reopen it.

I have full permissions on both machines.

2) Can I read sharepoint list from another server and dump data on my SQL server?


Error: 0xC001000E at Package1: The connection "" is not found.

$
0
0

Hi,

I'm new to SSIS, I run a package and meet the errors.

Error: 0xC001000E at Package1: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Error: 0xC02020EA at Package1, Log provider "SSIS log provider for SQL Server": The connection manager "" is not found. A component failed to find the connection manager in the Connections collection.

Viewing all 24688 articles
Browse latest View live


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