2015-04-06 109 views
0

我已經創建了一個用於打勾系統的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

回答

0

工作是失敗,因爲網絡服務設定爲內置帳戶在SQL Server代理。
但是Excel文件在我的本地系統上。
一旦我選擇本地系統內置帳號作業成功運行。