Solved

Conversion error in SSIS 2008

Posted on 2012-12-27
7
678 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
  • 4
  • 3
7 Comments
 
LVL 11

Expert Comment

by:sachiek
Comment Utility
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
Comment Utility
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
Comment Utility
Try change this to "Unicode string[DT_WSTR]"
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:pvsbandi
Comment Utility
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
Comment Utility
IC. Are you sure that is the only colum which is giving problem?
0
 
LVL 11

Accepted Solution

by:
sachiek earned 500 total points
Comment Utility
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
Comment Utility
Thank you! This worked fine.
I'm able to load the data by probably not loading the bad data.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now