Scheduling An SSIS Package That Invokes A Web Service
Apr 30, 2007
Hey,
I have an SSIS package that invokes a web service and then updates a table. It runs fine as long as I am running it on the local machine. However, as soon as I save this package to the sql server, and try to schedule this as a job, it starts to fail. Now, the web service writes to an xml file and also uses an xsd and and an xsl file. When I save a dts package to the sql server, whats the proper way of referencing these files? I think this probably is what is making the package to fail, ut I am not sure.
Any help is greatly appreciated!!
Thanks!
View 11 Replies
ADVERTISEMENT
Apr 3, 2008
Hi,
I have created the package in a local machine and would like to schedule the package without integration services.
Is there any workaround for the above scenario.
Thanks in advance
Regards
Ramesh.R
View 4 Replies
View Related
May 12, 2008
Hi All
I'm new in SSIS Development. I have manage to design and deploy my Package to production SQL(MSDB) Security rely on server storage.
The problem start when I start scheduling in SQL JOB I'm getting the following error.
Executed as user: UCC-SQLSYSTEM. ...ion 9.00.3042.00 for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 8:57:01 AM Error: 2008-05-12 08:57:02.08 Code: 0xC0202009 Source: Test_deployment_Table Connection manager "BLAKE-DBN12.Staging" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Communication link failure". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "TCP Provider: An existing connection was forcibly closed by the remote host. ". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Login failed for user 'BLAKEUCC-SQL$'.". End Error Error: 2008-05-12 08:57:02.08 Code: 0xC020801C Source: Data Flow Task Test_Deployment [97] ... The package execution fa... The step failed.
What can I do to avoid this.
View 2 Replies
View Related
Jan 15, 2008
Hi All
I have created a SSIS Package to complete various tasks and I have managed to deploy it on SQL, however I can't find it in the Management Studio. I just want to be able to schedule this package to run as a job.
Any Ideas?
View 2 Replies
View Related
Feb 13, 2006
Hi ,
How do I schedule SSIS package.
View 6 Replies
View Related
Dec 27, 2005
Hi
I am trying to scheduling package using "Executing Sql Server Agent Task" before that I create new job,But there is error in STEP "Command Line Parameter are Invalid"
Anybody help me for configure jobs for Scheduling
I am new to SQL Server
Thanks in Advance
View 5 Replies
View Related
May 30, 2006
Hi,
I want to schedule an SSIS package to run always. So I tried scheduling the SSIS Package as a Job in the SQL Server Agent and I have set the Schedule Type as "Start automatically when SQL Server Agent Starts".
I have used an WMI Event Watcher task to raise an event when the file dropped in a folder.
And I have provided the configuration file also properly in the job. But still my package is not running properly. The application is running, but it is not raising any events even when the files are dropped in that folder.
Pls anyone of you provide some solution for this.
Thanks & Regards,
Prakash Srinivasan
View 16 Replies
View Related
Feb 8, 2008
Hi
I have a strange scheduling problem.
I have a job, i test it through BIDS - Works
I test it through SSMS - works
I run the job - Works
I schedule for a run time job - Works
I schedule for a recurring job - Works
However (here is the really annoying part) it fails to run at the night run (11.20PM)
there are 6 other packages that run fine after it , 11.30 , 1AM .. 4 AM etc ...
So
last night I changed the package to run at a later time, and it worked, but the other package that
ran 2nd (which now ran 1st) failed !!
its almost as if the 1st package has to fail !!!!!
When i look at the history and detailed log all it says is "The step Failed"
anyway , I can set up a workaround by starting a dummy job that is supposed to fail..
FYI the jobs are run under administrator and they are protected by a password (encryptSensitiveWithpassword) .
View 6 Replies
View Related
Feb 19, 2007
I am getting an error when I try to schedule a package. I can run the package with no problems from BIDS. For some reason it is throwing an error when I try to schedule the package using SQL Server Agent. Information on how to resove this would be greatly appreciated.
Executed as user: MACHINESYSTEM. ...n 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 5:41:55 PM Error: 2007-02-19 17:41:56.01 Code: 0xC0011007 Source: {48427B5A-10F6-4054-B7EB-F0F19B90F334} Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted. End Error Error: 2007-02-19 17:41:56.01 Code: 0xC0011002 Source: {48427B5A-10F6-4054-B7EB-F0F19B90F334} Description: Failed to open package file "C:Documents and Settingsfirst.lastMy DocumentsVisual Studio 2005ProjectsPackage 1.dtsx" due to error 0x800C0006 "The system cannot locate the object specified.". This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the X... Process Exit Code 4. The step failed.
View 11 Replies
View Related
Apr 3, 2008
Hi,
I have created the package in ssis and i want to schedule it local machine without using integration services. Any workaround for scheduling the Package?.
Specify me the steps to configure the package.
Thanks
Regards
Ramesh.R
View 5 Replies
View Related
Jul 4, 2007
Hello Everyone,
When i try to scedule a job on SQL Server Management Studio it gives the Following Error:
Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent.JobObjectkey'.(Micorsoft.SqlServer.Smo)
Can anyone tell me why ?
MS SQL Server Details:
Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
View 18 Replies
View Related
Dec 12, 2006
How can i plan the execution of a package ?
For example, i want to execute the package every 2 minutes for all the time.
I do not want to use SQL Server Agent to do this. I want the package to self contained to do it.
Thanks
Rohit
View 4 Replies
View Related
Jun 15, 2006
Hi,
When I am trying to schedule the SSIS package and start the job, I am getting the following error. It is not executing properly.
"The job failed. The Job was invoked by User prakash.srinivasan. The last step to run was step 1 (TestSchStep1)."
Pls provide some solution to this.
Thanks in advance.
Regards,
Prakash Srinivasan.
View 11 Replies
View Related
Feb 14, 2008
I have created a package that loads data . I need advice on a quik way to schedule this baby .
Regards to ALL
View 1 Replies
View Related
Aug 30, 2007
Hi:
I created a fairly simple SSIS package to move data from a remote server which uses SQL Server Authentication to a local server that uses Windows Authentication. Everything works fine when executing the package within BI studio and if I execute the package by connecting to SSIS. If I schedule it as a SQL Server Agent Job, however, the non-integrated security fails unless I manually edit the connection to include the password. Obviously this is insecure because it is in plain text. What can I do?
Thanks.
View 4 Replies
View Related
Feb 21, 2008
HI,
I am having a strange error coming in SQL server 2005.
I had a DTS package developed in SQl server 2000. Then i had migrated that DTS package to SSIS package using Execute DTS 2000 package. The conversion is successfull.
Then when i manullt execute this package it runs successfully without giving any error.
But then wheh i schedule a SQL server agent job for the same above SSIS package it fails giving me some cryptographic error as follows:
Message
Executed as user: CATOS-CGDBTUW02SYSTEM. ....3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 11:00:00 PM Error: 2008-02-20 23:00:00.66 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2008-02-20 23:00:00.66 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "SQLPassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2008-02-20 23:00:01.00 Code: 0x00000000 Source: Execute DTS 2000 Package T... The package execution fa... The step failed.
Not sure why is this happening.
Manually running the SSIS package from Visual studio does not gives error, but the same SSIS package when is been schedule from SQL server 2005's SQL server agent job it fails giving above error.
Please help me out how to rectify whith this.
Thanks.. in advance
Regards,
Ashok
View 3 Replies
View Related
Apr 10, 2007
I have an SSIS Package that executes a stored procedure. It turns out my stored procedure was missing.
However, the SQL Job Scheduler reported that step as success.
Can anyone tell me why?
`Le
View 8 Replies
View Related
Oct 20, 2006
Hi,
After many days of searching i have eventually been able to set up a web service to call and execute my SSIS package. The SSIS package is set up completely with windows authentication,the web service is run from an application using the same credentials with all necessary access for the SSIS package. I can run the package from the SQL management studio and it works fine, however when i attempt to run it from the web service it appears to work once round the for each loop and then fails for every other time. The error i am getting is as follows:
Executing the query "Set ? = (select max(URC_ID) AS URC_ID FROM
VIEW_A1021_URC
WHERE SerialNumber = ?)
" failed with the following error: "Syntax error, permission violation, or
other nonspecific error". Possible failure reasons: Problems with the query,
"ResultSet" property not set correctly, parameters not set correctly, or
connection not established correctly.
This error doesn't happen on the first iteration, as the package does exactly what it is supposed to do.
Has anyone encounter anything like this before? any help on this matter would be great.
Many thanks in advance,
Grant
View 1 Replies
View Related
Oct 10, 2007
I have a SSIS Package that I am executing from a Web service. The SSIS Package is stored as a file. That works fine. In the SSIS package I have one ADO.NET, .Net ProvidersSqlClient Connection. For the Protection Level I have EncryptSensitiveWithUserKey.
My problem comes when I change the Protection Level to EncryptSensitiveWithPassword. Now the SSIS package is throwing an error when trying to connect to the sql database: Login failed for user _ _
I believe my problem is that I don€™t know how to pass the password of the SSIS package from the Web service into the SSIS package.
Below is part of the code for the Web service:
<WebMethod()> _
Public Function LaunchSSISPackage( _
ByVal variableName As String, _
ByVal variableValue As Object) As Integer 'DTSExecResult
Dim packagePath As String
Dim myPackage As Package
Dim integrationServices As New Application
Dim SSISvar As Variable
myPackage = integrationServices.LoadPackage(packagePath, Nothing)
SSISvar = myPackage.Variables.Add(variableName, False, "User", variableValue)
LaunchSSISPackage = myPackage.Execute()
I appreciate your help with this issue I am having. Thank You.
View 4 Replies
View Related
Aug 22, 2007
Hi all,
There was already several posts about executing packages programmatically from the context of Web Services. I have decided to follow Web Service approach because we were already calling packages programmatically through .NET. So far I have been able to clear all security configuration obstacles as I am able to load package and call Execute but mysteriously package doesn€™t execute. I am reading StopTime, StartTime and ExecutionDuration properties after call to Execute and evidently package doesn€™t execute because StartTime and EndTime are identical and ExecutionDuration is 0 but no error is raised or logged anywhere but package return status is failure)!
We are using SQL Server 2005 with Service Pack 2 on Windows 2003 R2 Enterprise, .NET Framework 2.0. The Domain Account that has Admin privileges on both servers is calling Web Service. DefaultAppPool uses Network Service and Anonymous access is enabled. Network Service is also member of the sysadmin role.
I am sure root of the problem is still in the Security but I am not getting any clue because of lack of any error. Does anyone has any suggestion? Thanks in advance.
Sinisa Catic
View 4 Replies
View Related
Sep 17, 2007
Where do I find about running an SSIS package (.dtsx) from a ASP.Net web service, particularly issues to do with permissions
cheers
Rob
View 1 Replies
View Related
Feb 26, 2007
Posted the same message to the Service Broker forum. But the board is neither responsive nor active. So I am trying this forum. Hope someone can help.
I would like to call an SSIS package from a Service Broker Queue.
There is one way that I am aware of -
Using xp_cmdshell from within an activation stored procedure and using DTEXEC.
Is there a more elegant way of executing an SSIS package from within SSB?
Also,
I am not interested in writing a .NET external activator to process my
messages in the queue. I would like this operation to be strictly
database oriented. Having said this, I am also trying to avoid triggers
processing the messages in the queue.
Thank you!
View 5 Replies
View Related
Nov 15, 2006
I am trying to call a SSIS package from a web service hosted on the same machine as the package file is sitting. All that the package does is a simple Execute SQL task with one datasource connection.
I have set impersonation as true. When I run the package from the web service on the virual port (through Visual studio IDE) it runs fine.
http://localhost:4609/WebServiceRunSSIS/LaunchSSISPackageServiceCS.asmx
In the above case I don't think impersonation means anything coz it runs successfully even when there is no impersonation set!
I then run the same service (asmx page) from the browser after making it a web service on my machine
http://localhost/WebServiceRunSSIS/LaunchSSISPackageServiceCS.asmx
I get an error indicating package failure.
I have enabled logging in SSIS. The package log indicates the following:
Failed to acquire connection "APNetDS". Connection may not be configured correctly or you may not have the right permissions on this connection.
Effectively, my web service impersonated account (which is my admin account) is not being authenticated for any of the db connection (uses windows integrated authentication) and I find that odd. To impersonate, I have set the Impersonation to true in the web.config file. The authentication mode is windows.
Please tell me what bit of security I am missing? In case if it helps, the database connection is to my local database and hence should not deny access to my own account. And yes, I think my impoersonation is working because when I debug, the user.identity shows my user id.
Thank you,
Sumeet
View 9 Replies
View Related
Feb 15, 2015
I have a package on the default instance which runs and completes successfully. When that package is moved to the same SQL server, but a different instance, running under the same service account, it fails. The error is below with some specific stuff removed:
Delete Data from Level 1:Error: Executing the query "-- Variable to capture FileID's
DECLARE @DeleteFil..." failed with the following error: "The DELETE permission was denied on the object '[name removed]', database '[]', schema '[]'.". Possible failure reasons:
Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
This makes me think that the package under the non-default instance ends up running under a different security context.
View 8 Replies
View Related
Mar 2, 2007
I am attempting to run an SSIS package from a web service. Right now both the service and package are on my local machine which is running XP. I have accessed the web service from a client application in debug mode. I am not sure if it is actually running under aspnet_wp.exe because it is XP and a development environment? (separate question)??? The package fails with a series of OnError messages similar to:
The result of the expression ""/c DEL /F /Q "" + @DeployFolder + "\catalog.diff.lz""" on property "Arguments" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
An initial supposition is that the permissions of the web service are inadequate for the package. I have the authentication as "Windows" and <identity impersonate="true" /> in the Web.Config file. When I break in the debugger the Environment.UserName and Environment.UserDomainName are mine and I am an Admin on the box.
the authorization is 'deny users="?".
The article that describes basic implementation of this in a Web Service states:
With its default settings for authentication and authorization, a Web
service generally does not have sufficient permissions to access SQL
Server or the file system to load and execute packages. You may have to
assign appropriate permissions to the Web service by configuring its
authentication and authorization settings in the web.config
file and assigning database and file system permissions as appropriate.
A complete discussion of Web, database, and file system permissions is
beyond the scope of this topic.
And how!
Note that the load is fine and that this is a run time error and that the package runs correctly when run manually from SQL Server using the 'run package' menu item in the Object Explorer tree of the SQL Server Management Console.
I need to know if this is an ASP.NET issue per se or XP or if this is even a security issue. And how to solve it! This is critical path so an expeditious reply with a solution would be greatly appreciated.
View 1 Replies
View Related
Apr 28, 2006
Hi
Using SQL Server 2005 with SP1, I have successfully managed to schedule jobs to run SSIS packages. They connect to another SQLServer 2000 box, using SQLOLEDB connection manager, to extract data and import it into SQL 2005. The protection level for the packages is Server storage so that the job is run under the SQL Agent account. This is a specific domain account so that it can access other servers.
However, using the same setup for a scheduled job to to run an SSIS package which connects to another SQL Server 2000 box with connection manager SQL OLEDB, I get the following error message:
The AcquireConnection method call to the connection manager "xxx" failed with error code 0xC0202009.
As the both the successful and failed jobs seem to have been set up in the same way with the same protection levels and are both run under a domain sql agent account, is there anything else I should be checking that I don't know about?
Any help is much appreciated!
View 3 Replies
View Related
Sep 12, 2007
When running an integration services package from a windows service I get the "Object ... has been disconnected or does not exist at the server." exception after aproximately six minutes of execution.
This is *not* my windows service failing. I can loop indefinately while tracing to a log file within the service and it will run forever. While calling the mypackage.execute(...) method however, after six minutes (give or take) the exception is thrown...
my code looks something like this:
<code>
dim foo as Microsoft.SqlServer.Dts.Runtime.Application
mypackage = foo..LoadPackage(strimportPkgFilename, pkgevents)
results = myPackage.Execute(Nothing, Nothing, pkgevents, Nothing, Nothing)
</code>
<error>
A first chance exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll
Exception in: frmMyForm.DoImports
Message: Object '/b76f98a0_5bd9_49d8_a524_eeb49d55b303/bqbhkjnaofq_ifr_cwz+srid_1.rem' has been disconnected or does not exist at the server.
</error>
oddly, this same code works perfectly if I run it within a windows form application no matter how long it takes.
It also runs fine if the package can complete in under six minutes.
Any suggestions?
Mark
View 2 Replies
View Related
May 19, 2006
Hello,
I have a big problem and i'm not able to find any hint on the Network.
I have a window2000 pc, VS2005,II5 and SQLServer 2005(dev edition)
I created an SSIS Package (query to DB and the result is loaded into an Excel file) that works fine.
I imported the dtsx file inside my "Stored Packages".
I would like to load and run the package programmatically on a Remote Scenario using the web services.
I created a solution with web service and web page that invoke the web service.
When my code execute:
Microsoft.SqlServer.Dts.Runtime.Application.LoadFromDtsServer(packagePath, ".", Nothing)
I got the Error:
Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.
The error message doesn't help so much and there is nothing on the www to give me and advice....
Is it a SSIS problem???
Thank you for any help!!
Marina B.
View 10 Replies
View Related
Apr 6, 2001
I have created a DTS Package which collects data from DB2 and stores in a table on SQL Server v 7.0. The execution of the package works fine.
When I schedule the package by right-clicking and selecting SCHEDULE PACKAGE,
I fill in the dialog box. When the package runs, I receive the following error:
DTSRun: Loading... Error: -2147217390 (80041012); Provider Error: 0 (0) Error string: [Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen (CreateFile()). Error source: Help file: Help context: 0. Process Exit Code 1. The step failed.
I get this same error when I run the package as a job.
The package is in the repository. My run command looks like:
DTSRun /S 111.11.11.11 /U sa /P xxxx /N DTS_Projections /R
The package owner is sa.
Can anyone offer any advise
View 1 Replies
View Related
Aug 1, 2000
Can I call a DTS package from server1 to run on server2 if the package is on server1?
Does the package have to be on both servers? Both databases are identical.
And if not, how do I script the DTS package on server1 to be used and created on server2?
I would appreciate your help.
Thanks,
Dianne
View 2 Replies
View Related
Mar 17, 2000
I created a simple test DTS package to import a text file (2 rows, 5 fields wide) into a test table. When I manually execute the package in DTS, it is successful. When I schedule the package and the text file is located on the local drive (C:) the package is successful. I then modified the package to import the same file from the network drives, manually executing the import the package is successful. But when I schedule this package to import from a network drive it fails. Help? Where could the problem come from? NT security, limitations in SQL Server 7 SW, different levels of security between manual and scheduled processes, network security?
FYI: I am running Server 7, on WIN NT Workstation 4.0, SP5, DB size 12 GB, rolling 90 days of data.
View 1 Replies
View Related
Sep 28, 1999
I can't get my dts package to run when I schedule it.
I keep getting this message.
"The job failed. The Job was invoked by User DALLASdwatson. The last step to run was step 1 (Store)."
I created the DTS Package "Store" and then saved it to Repository.
I can execute the package manually. But can't get it to work when I schedule
it.
Can anyone Please help me and tell me what I am doing wrong.
Thank you for your help.
Dianne
View 1 Replies
View Related
Mar 10, 2000
HAVE CREATED LOCAL DTS PACKAGES WHICH I AM ABLE TO SCHEDULE OK. MY PROBLEM IS I HAVE A DTS PACKAGE WHIC
IMPORTS DATA FROM REMOTE DATABASE, THIS PACKAGE WILL RUN WHEN EXECUTED BUT I CANNOT SCHEDULE IT.
ANY IDEAS PLEASE
THANKS IN ADVANCE
PHILL
View 1 Replies
View Related