Solved

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

Posted on 2015-02-19
6
153 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
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:SimonAdept
Comment Utility
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
Comment Utility
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:SimonAdept
Comment Utility
>> 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 21

Expert Comment

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

Accepted Solution

by:
SQLSearcher earned 0 total points
Comment Utility
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
Comment Utility
Resolved issue by myself.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now