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

时间:2015-04-06 12:25:37

标签: sql-server excel ssis package jobs

我已经为滴答系统创建了一个SSIS包。它将数据从Excel加载到Staging表,然后加载到生产表 包装的步骤如下:
1.截断登台表 2.将excel加载到临时表 3.调用负责数据转换的过程以及从分段到产品表的数据加载。

我已经在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 设置为 false ,并且软件包也使用 32位运行时,我已使用Package属性中的Executing Optins选项卡设置。<登记/>
文件已关闭,我有权打开它。
我正在使用Windows 8,SQL Server 2014和Visual Stdio 2010 for SSIS 任何建议都会非常有用。

1 个答案:

答案 0 :(得分:0)

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