[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Trying to import; gets error on execute; I cannot figure it out the problem

Posted on 2014-01-18
7
Medium Priority
?
6,514 Views
Last Modified: 2016-02-10
The data appear ok on preview. Not sure what is going on.  

Please help


- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Description" 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 "Description" (18)" failed because truncation occurred, and the truncation row disposition on "output column "Description" (18)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
 (SQL Server Import and Export Wizard)
 
Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:\Users\owner\Downloads\downloadT.txt" on data row 88.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - downloadT_txt" (1) returned error code 0xC0202092.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
0
Comment
Question by:goodk
[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
  • 2
7 Comments
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 39791017
Your input data is too large for the target field for some or all of the import records.
0
 

Author Comment

by:goodk
ID: 39791032
I have less than 100 records.  You mean size of the description?

How to address the problem?
0
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 39791041
If your target field in the database is 100 characters and your input/import data is trying to insert 200 characters it isn't going to work.

How big are your target fields and find which bits in your data are exceeding that size limit for the field.

You address the problem by deleting some of the text from the import data.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:goodk
ID: 39791048
I used the automated feature, which created the fields.  Seems like I have to create my own table and append to it?
0
 

Author Comment

by:goodk
ID: 39791102
I did change the append table and made the description filed very large but still no luck

I do not get any records in the table.  So do not know where to start
0
 
LVL 66

Accepted Solution

by:
Jim Horn earned 2000 total points
ID: 39792305
>The data conversion for column "Description" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

Building on Lee's answer, and assuming this is an SSIS package...
1  Go into your SSIS package using the designer.  Double-click on the Connection for the file we're talking about.  
2.  When the 'Flat File Connection Manager Editor' appears, click on Advanced, then click on yuor fourth column, and eyeball what's in the OutputColumnWidth.  That's what the SSIS package is expecting as a column width.
3.  Now open your flat file using whatever designer tool you choose (I use UltraEdit), and eyeball the fourth column, and note if there are any values that are larger than the OutputColumnWidth property in #2.

Now you have a couple of choices to fix this..
1.  Increase the OutputColumnWidth property to handle the large values.
2.  In your data flow task, double-click on the Source task, then click on Error Output, and for that column (and others?) in the Truncation column choose'Ignore Failure' instead of 'Fail Component'.
3.  Verify with the source of your data, using a big stick if you can get away with it, how wide the column should be, and if there are values that are wider than that show them the values and ask them to correct them and send you another file.
0
 

Author Closing Comment

by:goodk
ID: 39792482
worked in a first try after changing the setting in Advanced settings on the input.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

656 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