2015-06-03 43 views
0

我試圖做BIML如下:FuzzyLookup在BIML

FuzzyLookup Columns tab

我在一點上如何做到這一點的BIML虧損。以下是我已經試過:

<FuzzyLookup 
     Name="Fuzzy Lookup" 
     ConnectionName="WO7" 
     Exhaustive="true" 
     AutoPassThroughInputColumns="true" 
     > 
     <ExternalReferenceTableInput Table="map.AgencyWO7" /> 
     <Inputs> 
     <Column SourceColumn="AgencyName" TargetColumn="AgencyName" /> 
     </Inputs> 
     <Outputs> 
     <Column SourceColumn="AgencyId" TargetColumn="AgencyIdWO7" /> 
     <Column SourceColumn="AgencyName" TargetColumn="AgencyNameWO7" /> 
     </Outputs> 

結果是以下錯誤:

(-1,-1) : Error 5 : The input column for the Fuzzy Lookup Fuzzy Lookup references external column that cannot be found in the reference table. Verify that the input mapping references a valid column in the reference table. Property TargetColumn. EmitSsis. There were errors during compilation. See compiler output for more information.

+0

也許你可以在這裏找到的代碼示例:http://stackoverflow.com/q/21755311/416988 – lucazav

回答

0

我想你可能丟失以前的基準轉換是有效的連接箭頭,有你一直在使用SSDT。 另外我用來設置passthrough = true的格式是以每列爲基礎的。

<FuzzyLookup Name="Fuzzy Lookup" MatchIndexName="" ConnectionName="WO7"> 
    <InputPath OutputPathName="[Previous Transform Name].Output" /> 
    <ExternalReferenceTableInput Table="map.AgencyWO7" /> 
    <Inputs> 
     <Column MinSimilarity="85" MatchTypeExact="true" PassThrough="true" SourceColumn="AgencyName" TargetColumn="AgencyName" /> 
    </Inputs> 
    <Outputs> 
     <Column SourceColumn="AgencyId" TargetColumn="AgencyIdWO7" /> 
     <Column SourceColumn="AgencyName" TargetColumn="AgencyNameWO7" /> 
    </Outputs> 
</FuzzyLookup> 

試試上面的代碼,如果一切都失敗了,你可以在SSDT設計模糊的查找,然後將其導入到使用霧/ BimlStudio這是非常可靠的BIML。

https://varigence.com/Mist

乾杯