SSIS错误:数据透视密钥值"(无法转换为字符串)"无效

时间:2017-09-12 16:46:43

标签: ssis key pivot

我正在尝试对我的表使用数据转换,如下所示。

Type

我正在尝试使用列PeopleId作为透视密钥并将Null作为设置键来旋转此表。由于Type列中有ssis值,因此在运行CacheFactory cacheFactory = CacheFactory.CreateCacheFactory(); Cache c = cacheFactory.Create(); PoolFactory poolFactory = PoolManager .CreateFactory() .SetSubscriptionEnabled(true) .AddLocator("x.x.x.x", 10334); Pool pool = null; if (PoolManager.Find("myPool") == null) pool = poolFactory.Create("myPool"); int loadConditInterval = pool.LoadConditioningInterval; RegionFactory regionFactory = c.CreateRegionFactory(RegionShortcut.CACHING_PROXY); IRegion<string, string> r = regionFactory.SetPoolName("myPool").Create<string, string>("r"); r.GetSubscriptionService().RegisterAllKeys(); r.AttributesMutator.SetCacheListener(new MyListener<string, string>()); 包后会收到此错误消息。

1 个答案:

答案 0 :(得分:0)

替换NULL值。数据透视转换中的列名称需要实际的字符串值。没有它就无法转动