Data conversion failed - SQL Server

I have been trying to import a Text file from my system to an SQL Server Db.(2005).
I am using the Import& Export tool to do the same. One particular field is giving errror all the time as below.

Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "CounterpartyLongname" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
 (SQL Server Import and Export Wizard)
Error 0xc020902a: Data Flow Task 1: The "output column "CounterpartyLongname" (138)" failed because truncation occurred, and the truncation row disposition on "output column "CounterpartyLongname" (138)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
 (SQL Server Import and Export Wizard)

CounterpartyLongname is currently stored as NVARCHAR 50.

When i looked at the flat file the maximum stored charechters in the "CounterpartyLongname" field is 95 Charechters.

Hence i changed, in teh column mappings the Data type to NVARCHAR 150, but it is still giving the same error.

Any help as to how to import this file successfully.


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.

siva_iafAuthor Commented:
Screen shot of data type attached
Rajkumar GsSoftware EngineerCommented:
Just give a try


Let me know


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
siva_iafAuthor Commented:
Thanks. Modified using the advanced properties of the flat file and it worked.
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
Microsoft SQL Server 2005

From novice to tech pro — start learning today.