I have a SSIS package that runs smoothly when I execute it from Visual Studio, but when I run it via SQL Server Job Task, it always fails to run and and throws this error:
Message Executed as user: hidden\hidden. Microsoft (R) SQL Server Execute Package Utility Version 11.0.6020.0 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 10:23:40 AM Error: 2018-12-17 10:23:40.63 Code: 0x00000001 Source: Update Report Description: Exception has been thrown by the target of an invocation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 10:23:40 AM Finished: 10:23:40 AM Elapsed: 0.594 seconds. The package execution failed. The step failed.
I don't know the exact problem, the other jobs work normally, I guess it could be related to the fact that we just migrated to a new server, and the other jobs are old jobs that are mirrored from the old server.
This SSIS package contains scripted tasks which modify an excel file. This is normal in my company because we run many automation tasks, all of which have been working normally until now.
Any idea to solve this problem?