Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SQL Agent running SSIS package and reports succeeded but data has not changed.

Posted on 2015-02-19
6
Medium Priority
?
306 Views
Last Modified: 2016-02-15
Hello Experts Exchange
I have two SSIS packages, when I run them in BIDs they run fine and data is updated, when I schedule them to run in SQL Agent the jobs report Succeeded but not data has changed.

There is three steps in the SSIS package.
1) Copy Access file from server to local server. (Execute Process Task)
2) Truncate Table. (Execute T-SQL Statement Task)
3) Import data from Access DB in to SQL. (Data Flow Task)

I am using SQL Server 2012, on Windows 2008.

Has anyone seen this problem before?  How do I get SQL Agent to work?

Regards

SQLSeracher
0
Comment
Question by:SQLSearcher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Simon
ID: 40618451
When you run them in SQL Agent they are executed under the permissions of the service account that has been specified for SQL Agent. Does the SQL Agent account have permission to truncate tables?

There are many scenarios where SSIS will return success when the developer/user would not consider the outcome a success. e.g. the final step found no data to import, but this is not an error, so it completes and reports success.

Try having a look in SQL Agent's job history for that job.
0
 

Author Comment

by:SQLSearcher
ID: 40618545
Hello SimonAdept
The service account for SQL Agent is my user account, so there should be no problem there.

This is the message in the history;
Message
Executed as user: DMUKAD\plg. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.5532.0 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  08:00:00  Error: 2015-02-19 08:00:01.35     Code: 0xC000F427     Source: Copy file from Source      Description: To run a SSIS package outside of SQL Server Data Tools you must install Copy file from Source of Integration Services or higher.  End Error  DTExec: The package execution returned DTSER_SUCCESS (0).  Started:  08:00:00  Finished: 08:00:01  Elapsed:  0.64 seconds.  The package executed successfully.  The step succeeded.

Does this mean anything to you?

Regards

SQLSearcher
0
 
LVL 18

Expert Comment

by:Simon
ID: 40618840
>> Description: To run a SSIS package outside of SQL Server Data Tools you must install Copy file from Source of Integration Services or higher.

This line suggests that you dont have a necessary component (Copy file from Source) on the server. So that looks like your step 1 is failing.

It's not an SSIS task that I've ever done myself. The MS reference suggests that it is a File System task rather than a Execute Process Task.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 40620497
Do you have proper permissions to create file at local server folder?
0
 

Accepted Solution

by:
SQLSearcher earned 0 total points
ID: 40620680
Hello
I have resolved the problem I had to do two things to get the system working.

Install SQL Server Integration Services 11.0, I did this by going to Control Panel --> Programs and Features --> Select Microsoft SQL Server 2012 (64 bit) --> Uninstall/Change.  Then added the Integrations services.

Next I changed my bat file copy command to a CMD command line, by following configuration on this web page,

Regards

SQLSearcher
0
 

Author Closing Comment

by:SQLSearcher
ID: 40627789
Resolved issue by myself.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question