Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Conversion error in SSIS 2008

Posted on 2012-12-27
7
Medium Priority
?
709 Views
Last Modified: 2012-12-27
Hi,

  We are migrating data from DB2 UDB 9.7 to MS Sql Server 2008, using SSIS 2008.
  Since DB2 is Unicode by default, we had to add a Data Conversion transformation between the DB2 source and the Sql Server target.

 Now, we are getting an error message from one of the columns and the error was in the lines of
Data Conversion Error: Data conversion failed while 
converting column xxx to column "Copy of xxx. 
The conversion returned status value 4 and status text "
Text was truncated or one or more characters
 had no match in the target code page.". 

Open in new window


So, we want to be able to ignore this error and move ahead with the load. But instead of ignoring that one error, it has not loaded anything into the column that was causing this issue. So, when we looked at the target table, there were all NULLs in this column.

Can someone kindly suggest a way to ignore the errors and load the rest of the data in the column, as is?
0
Comment
Question by:pvsbandi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 11

Expert Comment

by:sachiek
ID: 38723815
Did you double check colum size? This be a issue too.

Also target code setting sometimes need to changed too.

Is it possible for you to post the screenshot of that data mapping step?
0
 

Author Comment

by:pvsbandi
ID: 38723850
Sure, please find the conversion screenshot attached. The one highlighted in Black, is the column that has issue.
  The length of the column in the source is 50. But even after i changed it to 300 in the data conversion as well as in the target, it is still causing the issue.
Data-Conversion-Screenshot.png
0
 
LVL 11

Expert Comment

by:sachiek
ID: 38724034
Try change this to "Unicode string[DT_WSTR]"
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:pvsbandi
ID: 38724048
Unicode never worked. That's why we had to add a data conversion transform and change it to DT_STR.
0
 
LVL 11

Expert Comment

by:sachiek
ID: 38724123
IC. Are you sure that is the only colum which is giving problem?
0
 
LVL 11

Accepted Solution

by:
sachiek earned 2000 total points
ID: 38724155
Try this option..

go to the properties of the source and select 'show advanced editor'.

go to tab 'input and output properties'
 
expand the tree node 'oledb souce output'
 
expand the child node 'output columns'
 
click on the specific column that gives you trouble.
 
when you click on the column, the properties of the column will be displayed on the right side. Go to property 'TruncationRowDisposition' and change the value to 'RD_IgnoreFailure'.
0
 

Author Closing Comment

by:pvsbandi
ID: 38724484
Thank you! This worked fine.
I'm able to load the data by probably not loading the bad data.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question