excel - MSBI Merge:如何将 Excel 文件与 SSIS 中的测试文件合并?
问题描述
如何将 Excel 文件与 SSIS 中的测试文件合并?
我试图在 SSIS 中使用 Merge 将 Excel 文件与文本文件合并,但它抛出错误为[Flat File Source [41]] Error: Data conversion failed
. “标题”列的数据转换返回状态值 4 和状态文本Text was truncated or one or more characters had no match in the target code page.
解决方案
通过单击 Advance 并选择每一列,只需从 Flat File Connection Manager Editor 将 OutputColumn 大小设置为 255。例如,我有四列 Name、Title、Company 和 Location。对于这些列,首先我将数据类型更改为 Unicode 字符串 [DT_WSTR],因为 txt 文件具有字符串 [DT_STR],因为 Excel 文件具有 Unicode 数据类型。此外,将 OutputColumn 大小设置为 255。
推荐阅读
- c++ - Crypto++中的椭圆曲线点算术
- azure-devops-server - 如何将板列映射到 Azure Devops Server 中的自定义状态
- java - 如何使用 java 向 IBM MQ 发送 ack 消息
- oracle-apex - Oracle Apex SQL Workshop - 新行(CHR10)在 varchar DB 列中不起作用
- python - 尝试调用 tensorflow-hub 的预测方法时,在邮递员中找不到错误 404
- docker - 如何限制 docker swarm 中每个节点运行的最大容器数
- javascript - 鸭子键入未知对象时处理 null 的问题
- laravel - Laravel:有些东西正在改变方法,它是什么?
- python - 我正在尝试为数据集创建一个临时文件
- python - 通过更改 3 个位置的所有组合