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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:51:07+00:00 2026-06-13T16:51:07+00:00

An SSIS Package was failing with an error message as below: Code: 0xC0202009 Source:

  • 0

An SSIS Package was failing with an error message as below:

Code: 0xC0202009
Source: DFT Populate ImageSummary OLE_SRC ProductImage [1]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: “Microsoft SQL Native Client” Hresult: 0x00040EDA Description: “Warning: Null value is eliminated by an aggregate or other SET operation.”.

On investigation, we have found that the message Warning: Null value is eliminated by an aggregate or other SET operation. is being returned by a SQL server (2005) query which the SSIS package runs as the source in DFT to insert into a destination table.

Select ProductID ,ImageTypeID ,DistinctImageCount ,ImageSize 
from 
    (select a.ProductID ,a.ImageTypeID ,a.DistinctImageCount ,a.ImageSize ,RANK() OVER (PARTITION BY a.ProductID, a.ImageTypeID ORDER BY a.ImageSize) As Ranker 
    from 
        (SELECT TOP 100 Percent spi.ProductID ,sit.ImageTypeID ,CAST(COUNT(DISTINCT spi2.ImageTypeID) as bit) DistinctImageCount ,CAST(spi2.Size as varchar(50)) as ImageSize 
        FROM Stage.ProductImage spi CROSS JOIN Reference.ImageType sit LEFT JOIN Stage.ProductImage spi2 ON spi.ProductID = spi2.ProductID AND sit.ImageTypeID = spi2.ImageTypeID 
        GROUP BY spi.ProductID, sit.ImageTypeID,spi2.Size 
        ORDER BY spi.ProductID, sit.ImageTypeID,spi2.Size
        )a
    )b 
where ranker = 1 
Order by ProductID,ImageTypeID

We have resolved the issue by eliminating the warning message from SQL server by modifying the query:

From

CAST(COUNT(DISTINCT spi2.ImageTypeID)as bit) DistinctImageCount

To

CAST(SUM(DISTINCT ISNULL(spi2.ImageTypeID,0)) as bit) DistinctImageCount.

However we have few questions as below which we couldn’t find an explanation and hoping to get an answer on this forum:

  1. Why does a warning from SQL bubbles up to the SSIS package and causes the
    SSIS package to fail?

  2. If we run the same package in all other dev and UAT environments
    with the same data set, it works fine. We can see the warning
    showing up in the SQL Server Management Studio, however does not
    cause the SSIS to fail. However the SSIS package in our Production
    environment fails. We are failing to understand the logic? Is there
    any threshold of warnings?

  • 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-13T16:51:09+00:00Added an answer on June 13, 2026 at 4:51 pm

    SSIS package failure due to the following warning message is a known bug that has been reported by many at Microsoft Connect website.

    Warning: Null value is eliminated by an aggregate or other SET operation

    Link to the bug report on Connect website.

    Microsoft team’s last update on the issue:

    This problem was resolved in SQL Server 2012 RTM (11.00.2100.60 or later).
    There is no hotfix available for SQL Server 2005/2008/2008R2.
    

    I don’t know the cause of the issue and Microsoft team has also closed this bug as not reproducible. One of the workarounds listed on the Connect website is adding the following statement before your query. Please make sure to include the semicolon at the end.

    SET ANSI_WARNINGS OFF;
    

    Read more about ANSI_WARNINGS on MSDN.

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

Sidebar

Related Questions

Our packages are randomly failing with the following error message: SSIS Error Code DTS_E_OLEDBERROR
I have an SSIS package that is failing with the above error. The database
I have run an ssis package and got error in one of the tasks(the
I have simple SSIS package in which On Error event handler I have created
I have an SSIS package, with Excel as the source, loading data to an
I'm working with an SSIS Package that pulls data from a DB2 source, runs
I have a SSIS package that reads from a flat file source. The target
I have an SSIS package which reads an Excel File (Data Flow Source) and
I have a SSIS package that has a child package that is failing. The
My SSIS package says it is successful, but when it runs it ends not

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.