SSIS包正在执行成功,虽然具有相同包的作业失败

问题描述:

我已经创建了一个用于打勾系统的SSIS包。它将Excel中的数据加载到Staging表,然后加载到生产表。
包的步骤如下:
1.截断暂存表。
2.将excel载入登台表。
3.调用一个负责数据转换的过程以及从分段到prod表的数据加载。SSIS包正在执行成功,虽然具有相同包的作业失败

我已经在SQL Server集成服务上导入了软件包。
程序包正在成功执行。但是当我用这个包运行作业时,我得到了以下错误。

Source: TicketWeeklyLoad Connection manager "Ticket Weekly Sheet Connection Manager"  
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. 
An OLE DB record is available. Source: "Microsoft JET Database Engine" 
Hresult: 0x80004005 Description: "The Microsoft Jet database engine cannot open the file 'C:\Users\MyUser\Desktop\CMS\DATA\SSIS\File.xls'. 
It is already opened exclusively by another user, or you need permission to view its data.". 
End Error Error: 2015-04-06 16:46:53.40  Code: 0xC020801C  
Source: Load Weekly Excel to Tct_Stg Ticket Weekly Source Excel Sheet [103]  
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. 
The AcquireConnection method call to the connection manager "Ticket Weekly Sheet Connection Manager" failed with error code 0xC0202009. 
There may be error messages posted before this with more information on why the AcquireConnection method call failed. 
End Error Error: 2015-04-06 16:46:53.40  Code: 0xC0047017  Source: Load Weekly Excel to Ticket_Stg SSIS.Pipeline  
Description: Ticket Weekly Source Excel Sheet failed validation and returned error code 0xC020801C. 
End Error Error: 2015-04-06 16:46:53.40  Code: 0xC004700C  Source: Load Weekly Excel to Ticket_Stg SSIS.Pipeline  
Description: One or more component failed validation. End Error Error: 2015-04-06 16:46:53.40  
Code: 0xC0024107  Source: Load Weekly Excel to Ticket_Stg  
Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). 
Started: 4:46:53 PM Finished: 4:46:53 PM Elapsed: 0.313 seconds. The package execution failed. The step failed. 


此外Run64BitRuntime集到和封装还使用,我已经在包属性使用执行Optins标签中设置 32位运行时

文件已关闭,我确实有权打开它。
我正在使用Windows 8,SQL Server 2014和Visual Stdio 2010 for SSIS。
任何建议都会非常有帮助。

+2

SQL Server是否在您的计算机或其他计算机上运行?什么是SQL Agent服务帐户? _您可能有权打开它,但SQL Server代理服务帐户可能不在。 – 2015-04-06 12:29:49

+0

我正在使用Windows身份验证连接到本地服务器。 – 2015-04-06 12:35:07

+2

最可能的问题是运行SQL Server代理作业的帐户无权访问该文件。 – ughai 2015-04-06 12:36:04

工作是失败,因为网络服务设定为内置帐户在SQL Server代理。
但是Excel文件在我的本地系统上。
一旦我选择本地系统内置帐号作业成功运行。