SSIS 2016 project failing. How to insert error trapping to find out why?

I was  creating another SSIS  project by copying to another project. The flat file source changed and the target SQL remained the same. I am getting this message"

[Flat File Source [2]] Error: Data conversion failed. The data conversion for column ""MyField"" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

and upon looking at the data I cannot see anything wrong. How do I put in an error trap that will give more detailed information?
LVL 1
rwheeler23Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lcohanDatabase AnalystCommented:
By the error"Text was truncated or one or more characters had no match in the target code page" my guess is that you have some UNICODE or maybe even UTF8 character in the source (flat file as you call it) that cannot be converted to SQL because there's no corespondent Code Page(language) on the SQL side. You can enable SSIS Logging for more details as described here:

https://docs.microsoft.com/en-us/sql/integration-services/performance/integration-services-ssis-logging?view=sql-server-2014

https://docs.microsoft.com/en-us/sql/integration-services/troubleshooting/troubleshooting-tools-for-package-execution?view=sql-server-2014
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwheeler23Author Commented:
I discovered that by setting all fields to DT_STR(8000) I could finally read the file. So whatever is creating this file is not the same as all the others as I was initially told. Looking at the csv in Notepad did not reveal any difference as all looked fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SQL

From novice to tech pro — start learning today.