1

BIML 中是否支持平衡数据分发器组件?文档有这个: https ://varigence.com/Documentation/Language/Element/AstBalancedDataDistributorNode

但是当我使用这个元素时,我得到以下错误:

Error 0 FlowFramework, Version=5.0.60425.0, Culture=neutral, PublicKeyToken=015f370a62f9a1a3. No translator was found for the component Data Distributor of type AstBalancedDataDistributorNode in Dataflow ...

我的 biml 看起来像这样:

<BalancedDataDistributor Name="Data Distributor">
    <InputPath OutputPathName="Insert Row Count.Output"/>
    <OutputPaths>
        <OutputPath Name="DD1" />
        <OutputPath Name="DD2" />
        <OutputPath Name="DD3" />
        <OutputPath Name="DD4" />
        <OutputPath Name="DD5" />
    </OutputPaths>
</BalancedDataDistributor>

我找到了this example,它似乎将其视为自定义组件。也许这是在它被内置到 SSIS 之前:http: //www.bimlscript.com/Snippet/Details/82 它在 SQL 2016 中不起作用 - BIML 会生成它,但它在任务上有错误的图标,它可以'尝试执行时找不到组件。

4

1 回答 1

2

我使用这个片段作为模板来工作:http: //www.bimlscript.com/Snippet/Details/82

为了使它适用于我的 SSDT 版本,我必须更新 ComponentClassId,如下所述(487806FB-4C3B-4DCD-B91D-62CAAE06D460C925C2DD-D414-4F4D-942E-F4F3E4871666)。前者可能来自 SQL 2014

<CustomComponent Name="Data Distributor" ComponentClassId="C925C2DD-D414-4F4D-942E-F4F3E4871666" ComponentTypeName="Balanced Data Distributor" ContactInfo="Balanced Data Distributor;Microsoft Corporation; Microsoft SqlServer; (C) Microsoft Corporation; All Rights Reserved; http://www.microsoft.com/sql/support;0">
    <InputPaths>
        <InputPath OutputPathName="Insert Row Count.Output" Identifier="Data Distributor Input"/>
    </InputPaths>
    <OutputPaths>
        <OutputPath Name="DD1" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
        <OutputPath Name="DD2" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
        <OutputPath Name="DD3" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
        <OutputPath Name="DD4" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
        <OutputPath Name="DD5" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
    </OutputPaths>
</CustomComponent>
于 2017-07-26T14:26:21.893 回答