2015-12-14 49 views
0

我正在嘗試執行ETL分段過程,但仍然遇到此錯誤。關閉微軟建議的UAC,設置XACT ABORT ON和其他所有東西,沒有任何幫助。 這是我在Visual Studio開始調試時得到的錯誤。真的很感謝一些幫助。SSIS學生,ETL分段過程

SSIS package "D:\Demofiles\Lab01\Starter\AdventureWorksETL\Stage Data.dtsx" starting. 
Executing ExecutePackageTask: D:\Demofiles\Lab01\Starter\AdventureWorksETL\Extract Internet Sales Data.dtsx 
Information: 0x4004300A at Extract Customers, SSIS.Pipeline: Validation phase is beginning. 
Information: 0x4004300A at Extract Internet Sales, SSIS.Pipeline: Validation phase is beginning. 
Information: 0x4004300A at Extract Customers, SSIS.Pipeline: Validation phase is beginning. 
Information: 0x4004300A at Extract Internet Sales, SSIS.Pipeline: Validation phase is beginning. 
Information: 0x4001100A at Extract Internet Sales Data: Starting distributed transaction for this container. 
Information: 0x4004300A at Extract Customers, SSIS.Pipeline: Validation phase is beginning. 
Information: 0x40043006 at Extract Customers, SSIS.Pipeline: Prepare for Execute phase is beginning. 
Information: 0x40043007 at Extract Customers, SSIS.Pipeline: Pre-Execute phase is beginning. 
Error: 0xC0202009 at Extract Customers, Customers [2]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37. 
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E37 Description: "Invalid object name 'cdc.lsn_time_mapping'.". 
Error: 0xC004701A at Extract Customers, SSIS.Pipeline: Customers failed the pre-execute phase and returned error code 0x80040E37. 
Information: 0x4004300B at Extract Customers, SSIS.Pipeline: "Staging DB" wrote 0 rows. 
Information: 0x40043009 at Extract Customers, SSIS.Pipeline: Cleanup phase is beginning. 
Task failed: Extract Customers 
Information: 0x4001100C at Extract Customers: Aborting the current distributed transaction. 
Information: 0x4001100C at Extract Internet Sales Data: Aborting the current distributed transaction. 
Task failed: Stage Internet Sales 
Warning: 0x80019002 at Stage Data: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. 
SSIS package "D:\Demofiles\Lab01\Starter\AdventureWorksETL\Stage Data.dtsx" finished: Failure. 
The program '[6628] DtsDebugHost.exe: DTS' has exited with code 0 (0x0). 

與錯誤的第一行,它指定

的OLE DB記錄。源:「Microsoft SQL Server本機客戶端11.0」Hresult:0x80040E37描述:「無效的對象名'cdc.lsn_time_mapping'。」。

+0

您是否已經在此機器上捕獲變更數據?這就是'cdc'模式連接到 – billinkc

+0

我剛剛嘗試過EXEC sys.sp_cdc_enable_db,我們剛剛開始我們在SSIS上的課程,這些labfiles/demofiles應該是一個關於SSIS如何工作和通過做/看着,我不認爲這些錯誤應該發生,因爲其他模塊完美無缺地工作,除了這一個。我很抱歉,如果我看起來像一個itard,但我們昨天開始我們的課程,這一切對我來說都是全新的。如果有人有時間爲如何解決這個問題的新手如何可能,將不勝感激,將不勝感激。 謝謝你的時間 – Bizzmo

回答

1

您的SSIS包錯誤,因爲您的OLE DB連接的目標中不存在表cdc.lsn_time_mapping。你指定了正確的目標數據庫嗎?

+0

是的,指定了正確的數據庫,它存在並且是空的。 – Bizzmo

+0

看看這個博客:http://www.mattmasson.com/2011/12/cdc-in-ssis-for-sql-server-2012-2/ – Jaco