SSIS错误代码DTS_E_OLEDBERROR。发生OLE DB错误。错误代码:0x80040E14

时间:2017-08-24 13:20:40

标签: ssis syntax-error oledb oledbexception

为什么我不能在循环中使用相同的连接。请问你能帮帮我吗?我会解释一切。

步骤如下:

  1. " Get By Brand" block(执行SQL任务):我查询Brand数据,输出 是对象。例如,输出是" AAA"," BBB" - 接下来的循环 步骤将运行两次。
  2. " Foreach Loop by All Brand" block:传递第一轮循环。 第二轮循环不是。即使" Gen Header文件" 块(数据流任务)不会从第一轮更改 - 连接和 从第一轮开始就是一样的。
  3. 第二轮循环错误: Second round of loop is error

    Gen Header文件的详细信息"块(数据流任务): The detail of "Gen Header file" block(Data Flow Task)

    Gen Header文件的详细信息"块(数据流任务),变量名称User :: SQL_P_SCRIPT也不会从第一轮更改: The detail of "Gen Header file" block(Data Flow Task)

    错误信息如下:

    Information: 0x4004300A at Gen Header file, DTS.Pipeline: Validation phase is beginning.
    Error: 0xC0202009 at Gen Header file, OLE DB Source revise [12072]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
    An OLE DB record is available.  Source: "Microsoft OLE DB Provider for Oracle"  Hresult: 0x80040E37  Description: "ORA-00942: table or view does not exist
    ".
    Error: 0xC004706B at Gen Header file, DTS.Pipeline: "component "OLE DB Source revise" (12072)" failed validation and returned validation status "VS_ISBROKEN".
    Error: 0xC004700C at Gen Header file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Gen Header file: There were errors during task validation.
    Warning: 0x80019002 at Foreach Loop by All Brand: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) 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.
    Warning: 0x80019002 at RP_PROD_SpareServer102002211: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) 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 "RPInStaySurvey.dtsx" finished: Failure.
    

1 个答案:

答案 0 :(得分:0)

因为我在循环中多次使用相同的连接。因此,我将连接名称“RetainSameConnection”的属性设置为True(默认值为False)。问题解决了。