在SSIS中,我有一个查找转换,它只执行将新数据插入表中的功能,称之为tableY。所以过程如下:
0) Aggregate (group by) the primary key for the input row
1) Do a lookup with the current input row on tableY using the primary key
2) Insert the input row if there is not a match (the current row does not exist in tableY)
我收到的错误是“违反了主键列的完整性限制”
这怎么可能,因为所有输入都是唯一的,变换的输出是“查找无匹配输出”?
答案 0 :(得分:0)
您的查找转换可能正在使用TableY的缓存副本。尝试在查找转换编辑器中选择“无缓存”(但加载时间可能会受到影响)。
有关查找缓存模式的详细信息,请参阅this blog post。