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

  • Home
  • SEARCH
  • 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 8266731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:15:58+00:00 2026-06-08T05:15:58+00:00

I am using SSIS (SQL Server 2008 R2) to transform an input CSV file

  • 0

I am using SSIS (SQL Server 2008 R2) to transform an input CSV file into an SQL table. Five columns in the input file (reals – e.g. 19.54271) occasionally have a bad value (strings – e.g. "NAN") that cause the package to fail.

What is the simplest way to check these 5 columns for the bad value "NAN", convert that into either a NULL value or known bad numeric (-9999), and write the corrected values into the same final SQL table?

I have the following mess going so far, and finally decided to ask if there is a simpler way…

enter image description here

My current conditional logic:
enter image description here

My Case1 Derived Column Conversion:
enter image description here

Note: Still not sure if I can combine the other derived columns into one instance, but since my destination can have only one input, I suspect I will need to…

TIA

  • 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-08T05:16:00+00:00Added an answer on June 8, 2026 at 5:16 am

    It looks like using a script component would be the best way to proceed if my logic had been more complex than simply converting bad values into nulls.

    However, the logic with transformation objects is fairly straightforward, so hopefully this can help someone else:

    The package (note that I redirect rows for suspect columns in the datasource):
    SSIS package

    The conditional split logic:
    [EDIT: I found that every case condition requires a separate processing path. If you are evaluating multiple expressions, you can do so in one case by appending them with the || operator.]
    Case Condition Logic

    The derived column logic:
    derived column logic

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

Sidebar

Related Questions

I am using SSIS to insert a Excel file into a Sql Server Table.
I'm pulling in data from a flat file into a SQL Server 2008 table.
I am using SSIS (SQL Server 2008) to lookup values from a table. I
I'm using SSIS to import data from Excel sheets into SQL Server 2005, the
Hi i am using SQL Server 2008. How can I import an Excel file
I'm creating a data mart in SQL Server 2008 using SSIS for load, and
I am using SQL Server SSIS 2008 R2. I want to dynamically change a
I am using SSIS with SQL Server 2008 R2. I am importing large-ish text
I am running a SSIS package using SQL Server 2008 Job. The package crash
I have an Execute SQL task (SQL 2008) where I'm using two SSIS variables

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.