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 9241255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:20:19+00:00 2026-06-18T08:20:19+00:00

Excel: Input file contains the data as shown below. Column —— 123456 234567 ADCDEF

  • 0

Excel:

Input file contains the data as shown below.

Column
------
123456
234567
ADCDEF

CSV/Text:

Output file contains the data as shown below

Column
------
123456
234567
NULL

Why does SSIS package write NULL value instead of ABCDEF in the last row when transferring data from Excel to CSV?

  • 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-06-18T08:20:20+00:00Added an answer on June 18, 2026 at 8:20 am

    The issue is that Excel file contains mixed data that is both numerical values and strings, which is causing Excel to read the first few rows and infer the data type of the column as numerical, which is not true in this case. When you create a Excel Data Source to read this Excel file, you will notice that the column is defined as number and treats it that way. Hence the string never makes it to the output file.

    You need to modify the ConnectionString property of the Excel connection manager to include IMEX=1 to indicate that the data source might contain values of different data types.

    IMEX stands for intermixed Read more about it here: Connection strings for Excel

    Here is an example to illustrate the difference.

    I created two identical Excel files as per the data provided in the question.

    Excel_1

    Excel_2

    Created an SSIS package with following connection managers.

    Excel_1 had the following connection string

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\ExcelFile_1.xls;Extended Properties="Excel 8.0;HDR=YES";
    

    Excel_2 had the following connection string. The difference being the additional IMEX=1;. You need to manually add this to the ConnectionString property of the Excel Connection Manager. To view the properties, click on the Excel Connection Manager and press F4.

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\ExcelFile_2.xls;Extended Properties="EXCEL 8.0;IMEX=1;HDR=YES";
    

    Connections

    Designed the data flow as shown below to transfer Excel_1.xls to FlatFile_1.csv and Excel_2.xls to FlatFile_2.csv

    Package

    You can see in the output that the first flat file does not have any value for third row but the second file does. The reason is the first Excel connection manager inferred that the column type is numerical, which is not true. However, the second file treated the

    FlatFile_1

    FlatFile_2

    You can right-click on the Excel data source and click Show Advanced Editor...

    Excel data source

    On the Advanced Editor, click Input and Output Properties, expand Excel Source Output and then expand External Columns. Click Column.

    You will notice that the data type of the column on first Excel data source is set to double-precision float [DT_R8] on the first Excel connection manager Excel_1

    Excel_1 Advanced

    You will notice that the data type of the column on second Excel data source is set to Unicode string [DT_WSTR] on the first Excel connection manager Excel_2

    Excel_2 Advanced

    Hope that helps.

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

Sidebar

Related Questions

i want to convert my input Excel file into the Output XML file. If
I wish to write to a CSV file some data. One of the column
I wrote a script to parse an input text file and output three new
I had some data in excel file. I changed the file to .csv file
I have a txt file that contains data which I need to input to
I have a web page where it will input an excel/CSV file from the
I have a large collection of data in an excel file (and csv files).
I'm trying to open a file for input in Excel with this line :
I want to upload an Excel File using (HTML.Input) in some folder in server
I am reading the input Excel file and in that i have 1 fields

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.