Solved

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

Posted on 2015-02-19
6
214 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
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.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

688 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