SSIS Package Cancels instantly on Debug

江枫思渺然 提交于 2019-12-04 04:19:30

问题


I have a rather simple SSIS package that I've used many times to import a tab delimited file into a single table in a database.

I attached a new source file to the package and attempted to run the package.

  • The package starts
  • A cmd prompt appears briefly, then disappears [?!]
  • The process then exits, on the Flat File Source component. [??!]
  • Output displays as follows:

SSIS package "C:\Users...\Conversion\LoadHistory.dtsx" starting.

Information: 0x4004300A at Load Data to Legacy Database - Test, SSIS.Pipeline: Validation phase is beginning.

Information: 0x4004300A at Load Data to Legacy Database - Test, SSIS.Pipeline: Validation phase is beginning.

Information: 0x40043006 at Load Data to Legacy Database - Test, SSIS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at Load Data to Legacy Database - Test, SSIS.Pipeline: Pre-Execute phase is beginning.

Information: 0x402090DC at Load Data to Legacy Database - Test, Flat File Source [14]: The processing of file "C:\Users...\Conversion\Production\Historicals\Source_2341.txt" has started.

Information: 0x4004300C at Load Data to Legacy Database - Test, SSIS.Pipeline: Execute phase is beginning.

SSIS package "C:\Users...\Conversion\LoadHistory.dtsx" finished: Canceled.

The program '[4380] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

The file appears to adhere to the format specs I am expecting. The only concern I can think of is that the file originally was encoded as UCS-2 Little Endian and we are expecting a UTF-8 or ANSI format. I used Notepad++ to re-encode the file as UTF-8 and the file passed the initial meta-data checks as a result, so I have to assume that is resolved.

I am not sure what could be causing the package to automatically cancel.

Has anyone experienced this before?


回答1:


I found the issue. It appears the file being used as a source was to blame afterall. The UTF-8 format, while passing the meta-data check, appears to be at fault. I converted the file to ANSI format, as a shot in the dark, and was able to import the file normally without the above anomalies.

I am not sure as to why command prompt was opening however.

Thank you for the responses




回答2:


I had exactly the same issue today. It was caused by one of records in the file.



来源:https://stackoverflow.com/questions/23681298/ssis-package-cancels-instantly-on-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!