SSIS not inserting all rows from ODBC (oracle) to SQL server 2019

Kumar, A. be 16 Reputation points
2021-04-05T06:10:44.777+00:00

I have an issue with migration to SQL server 2019.
My Source is Oracle and my Destination is Microsoft SQL Server 2019. My package consists of a simple Data Load task; ODBC Source Connection(oracle)/ and OLE DB Destination connection(2019 SQL server). And data is coming from oracle SQL script.

Issue -> The package is successfully executing but not inserting all rows. If the oracle SQL script is satisfying 100 records the insert is happening for 80 only with no errors or warning.

Have tried :

  1. SSDT 2017(15.8,15.9.3,15.9.7)
  2. Visual Studio Community 2019 with SQL Server Integration Services Projects (3.10 and 3.12.1)
    but facing the same issue.

Note - this issue is resolved when we are changing "TargetServerVersion" from 2019 to 2017 or lower, but when the package is run through the job from SQL server 2019 the count is back to less.

As we need to migrate a lot of packages, we need a solution.

Images of the same package execution below:(correct count from VS 2015 version)

84896-image.png

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,216 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,618 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
542 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,670 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Jenkins, Jennifer 10 Reputation points
    2023-03-18T00:12:55.1733333+00:00

    I have the same exact issue, but it is not happening on all tables only some of them. I do not see a correlation or pattern in row count either between tables. I have a table with 750000 rows only importing 400000, but another table with 950000 rows importing 950000. I have increased the buffer in SSIS and that made it worse. Any suggestions are appreciated. Newest driver installed. SSDT 2017. SQL Server 2019. Standard Oracle Home Driver via a linked server imports the correct row count. I am trying to speed up the ETL via an ODBC in SSIS.

    ***Update I fixed this by setting the Data Flow Task Property: AutoAdjustBufferSize to true. Problem resolved if anyone else is looking for a solution to this.

    2 people found this answer helpful.

  2. Monalv-MSFT 5,901 Reputation points
    2021-04-05T08:16:46.807+00:00

    Hi @Kumar, A. be ,

    May I know if you use other transformations between source and destination?

    Please refer to the following links:
    Upgrade Integration Services Packages

    Best regards,
    Mona

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Yitzhak Khabinsky 26,206 Reputation points
    2021-04-05T14:10:56.747+00:00

    Hi @Kumar, A. be ,

    It is not clear how you are using SSDT for SSIS development in VS2019.
    There is no more SSDT for SSIS, SSRS, and SSAS development in VS2019.
    SSDT role is designated for Database Projects only in VS2019.

    You need to install SQL Server Integration Services Projects extension for VS2019.
    Its download link: SQL Server Integration Services Projects

    Please make sure that you have latest versions installed for both:

    • VS2019 v.16.9.*
    • SQL Server Integration Services Projects v.3.12.1

  4. Arturo Rodriguez Cobo 151 Reputation points
    2021-05-31T10:48:51.89+00:00

    I had a similar problem using an ODBC driver and a DB2 database. I solved it installing the latest version of the ODBC Driver. Hope it helps.

    0 comments No comments

  5. Goutham T. Rajesh 6 Reputation points
    2023-05-31T14:59:53.26+00:00

    Thanks Kumar for posting the fix. My package also ran fine after changing the targetserverversion. Saved me so much time. Appreciate it. :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.