2015-12-14 79 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