我遇到一个问题,我需要将DTS pkgs带到新服务器并让它们作为计划的SQL作业运行。我已经进入DTS pkg并编辑了连接以包括新的2008服务器名称和新的UNC路径。 DTS包采用具有固定长度的平面文件,并将这些值加载到db表中。编辑DTS后,我导出到结构化DTS包文件。然后我转到新服务器并使用迁移向导将DTS转换为DTSX文件。完成后,我将DTSX导入集成服务,其保护级别为“依靠服务器存储和角色进行访问控制”。
然后我运行包,因为以下原因而失败:
Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1]
Description: Data conversion failed. The data conversion for column "Col004" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
End Error Error: 2013-03-04 23:19:13.01 Code: 0xC020902A Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1] Description: The "output column "Col004" (22)" failed because truncation occurred, and the truncation row disposition on "output column "Col004" (22)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component. End Error Error: 2013-03-04 23:19:13.01 Code: 0xC0202092 Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1] Description: An error occurred while processing file "\\hpf15release\global$\cold\coldin\FTP_DXPX\Medical_Services_Master_File" on data row 1. End Error Error: 2013-03-04 23:19:13.01 Code: 0xC0047038 Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task SSIS.Pipeline Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Flat File Source" (1) returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:19:12 PM Finished: 11:19:13 PM Elapsed: 0.952 seconds. The package execution failed. The step failed.
我正在使用与旧服务器中使用的相同的包...和平面文件,它在旧服务器上正常工作。它尝试复制的表具有相同的列具有相同的特征...因此试图了解此错误的来源。
任何帮助很多人赞赏
答案 0 :(得分:0)
请检查目的地表结构是否与之前相同。它可能是数据类型问题。之前我遇到过同样的问题,并通过数据类型转换修复它。