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

by | Jan 15, 2008 | SQL server | 1 comment

Have you received such error? I’ve got in my SSIS package something like this:

“Hresult: 0x00040EDA Description: “Warning: Null value is eliminated by an aggregate or other SET operation.”. End Error Error: 2008-01-12 12:02:52.75 Code: 0xC0047038 Source: STR3c-sells DTS.Pipeline Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component “OLE DB Source” (1) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline sto… The package execution fa… The step failed.”

and I spent a lot of time to find the reason of such situation. In fact there’re two solutions. “Warning: Null value is eliminated by an aggregate or other SET operation” means that some of aggregated columns contain cells with null values. I use stored procedures in my package and package execution failed. So the best way is to remove cells with NULL. It’s also the best way to have database integrity. Second solution is use T-SQL query instead stored procedure (in my case) and put at the begin of query: “SET ANSI_NULLS OFF”. And with this option our job will execute without a problem.

Written by Tomasz Szulczewski

Hi, my name is Tomasz Szulczewski, and I have been in love with information technology for over 25 years, but I still have an IT passion and feel like a geek. I am a person who is problem solver who thinks that not all people must be experts in IT.

Related Posts

#n/A in SSAS cell

Today I get strange error when I made new cube for SQL Server 2008 R2 analysis services. My cube simple  just three dimensions and a few measures. I’ve created as always role for my users and grant them “Read” right [adblockingdetector id="5770e6ed85560"] Part of the...

read more

1 Comment

  1. Rajanand Ilangovan

    Hi,
    I think we need to set ansi warnings off.
    SET ANSI_WARNINGS OFF

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.