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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:15:18+00:00 2026-05-29T04:15:18+00:00

say I have input data like so: firstName | lastName | Country Bob |

  • 0

say I have input data like so:

firstName | lastName | Country
Bob | Smith | UK
Jane | Doe | France
Hank | Scorpio | UK

and the target tables are:

People
ID | firstName | lastName | CountryId

Country
ID | CountryName
0 | France

Now in SSIS data flow task I read the input, use a lookup to search the Country table for a matching CountryName, if it exists no problem, return the ID and carry on, but if it does not exists I want to use an OLEDBCommand to create the record in the Country table, get the ID and carry on.

However, what is happening is that UK is getting passed to the OLEDBCommand twice.

How should I be handling this scenario? is there some way of forcing the lookup to check one record at a time as it seem to be checking a batch before adding the missing records. I have tried changing the cache options between full and none to no affect.

  • 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-29T04:15:20+00:00Added an answer on May 29, 2026 at 4:15 am

    You could go around to set buffer size to 1 (one row per buffer), and no cache on the lookup, but even so you risk (because of the parallelisation of ssis) to have two rows going at it at the “same time”.

    What you can do however is to think of it differently. Perhaps you don’t need to do it all in one step.

    First, load all users and check against country. For those that doesn’t have, gather up in an aggregate (based on country), and insert those into your Country table.

    Then, you can load all your users using a normal lookup – because the Country table has been prefilled.

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

Sidebar

Related Questions

Lets say I have a FirstName > MiddleName > LastName hierarchy (~10k rows, for
lets say I have a Datetime column in DB. It has a data like
Let's say we have an SDK in C++ that accepts some binary data (like
Say you want to take CMU's phonetic data set input that looks like this:
Say I have an input file, and a target directory. How do I determine
Ok say you have this: <input id=test value= /> Value of that input is
Let's say I have an html form. Each input/select/textarea will have a corresponding <label>
Let's say have something like: SELECT energy_produced, energy_consumed, timestamp1 AS timestamp FROM ( SELECT
Say you have an application divided into 3-tiers: GUI, business logic, and data access.
Say I have a class named Frog, it looks like: public class Frog {

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.