Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
SQL Server Import Error
SQL Server Import Error
Rate Topic
Display Mode
Topic Options
Author
Message
vijay.singh 14112
vijay.singh 14112
Posted Monday, October 29, 2012 3:46 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Monday, May 13, 2013 5:31 AM
Points: 149,
Visits: 62
Hi Experts,
Need your help in fixing this. I am trying to import data from .XLS file to a table using import and export wizard. I am getting the below error.
- Executing (Error)
Messages
Error 0xc020901c: Data Flow Task 1: There was an error with output column "LocalLanguageLabel" (18) on output "Excel Source Output" (9). The column status returned was: "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 "LocalLanguageLabel" (18)" failed because truncation occurred, and the truncation row disposition on "output column "LocalLanguageLabel" (18)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - Sheet1$" (1) returned error code 0xC020902A. 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)
I dont want to edit registry/Use Distributed queries since i cannot do that on production.
Thanks in Advance.
Regards,
Vijay
Post #1378170
anthony.green
anthony.green
Posted Monday, October 29, 2012 3:58 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
The error relates to truncation so your trying to insert CHAR(100) into CHAR(50) for example, find the maximum size of the data in the column detailed and then increase the size of this field in the DB.
Another one will be that the source is set to the default size of 50 but the field is actually 25 and needs to be changed in the connection manager or add in a data conversion task.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1378176
ib.naji
ib.naji
Posted Monday, October 29, 2012 4:06 AM
SSC Journeyman
Group: General Forum Members
Last Login: Today @ 8:50 AM
Points: 91,
Visits: 97,306
Error 0xc020901c: Data Flow Task 1: There was an error with output column "LocalLanguageLabel" (18) on output "Excel Source Output" (9). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)
This looks like the output column out of the Excel data source (in SSIS) is not configured with the correct text size (or character encoding).
So what you need to do is go back to the first stage of your Import/Export wizard configuration, and edit the output data-type length/type for the LocalLanguageLabel column.
I think the wizard takes the first 100 items as a sample to build the data-types, which means there is alot of margin for error.
/>L
-----------------
... Then again, I could be totally wrong! Check the answer.
Check out posting guidelines here for faster more precise answers
.
I believe in Codd
... and
Thinknook
is my Chamber of Understanding
Post #1378180
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.