Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6591573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:26:25+00:00 2026-05-25T17:26:25+00:00

I am trying to import data from excel to Sql Server using Import wizard.

  • 0

I am trying to import data from excel to Sql Server using Import wizard. Everything seems fine in the first steps. The wizard is able to read the excel file and properly identify columns. But in the final step when the process actually runs, it fails giving the following errors:

Error 0xc020901c: Data Flow Task 1: There was an error with output
column “AlternateName” (24) 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 “AlternateName”
(24)” failed because truncation occurred, and the truncation row
disposition on “output column “AlternateName” (24)” 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)

The column, AlternateName has max data length of 658 chars. The destination table has the column AlternateName defined as varchar(1000). So I was not sure why am I getting this error. But then I noticed this

enter image description here

I have a hunch that this may be causing the issue. But then how do I change the Source column defined as varchar 255 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:26:26+00:00Added an answer on May 25, 2026 at 5:26 pm

    You may need to write your own query in the wizard and cast the columns as varchar(1000) – I’m not 100% sure that will work. ALternately, how big is the sheet? The wizard only “looks down” so many rows (IIRC 10000 by default, it’s a registry setting) to determine data type and width. Re-sort the excel file so that the longest AlternateName value is at the top.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import some data from Excel to SQL Server, I have a
Hi I am tring to import data from excel to sql 2005 .working fine
I am trying to import data from excel into a datatable using c#. Here
I am trying to import data from a FoxPro database into Sql Server however
I'm trying to import some data (using oracle sql developer) from a .csv file
I'm trying to import some data from excel into a database . i got
I'm using C# and .NET 3.5, trying to import some data from old dbf
I'm trying to import XML data from an excel spreadsheet (saved as an 'XML
I am trying to import data from a utf-8 encoded flat file into SQL
I am trying to import data from a mySQL database into Microsoft SQL because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.