Solved

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

Posted on 2015-02-19
6
171 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: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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

816 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