question

himanshu1012 avatar image
himanshu1012 asked

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

I created a SPROC and when execute against a single value it is working fine. But when SPROC is working in SSIS job , its displaying error Warning: Null value is eliminated by an aggregate or other SET operation. I made all NULL values as 0 but error continues. Also added ANSI statement. I dont have SSIS job access. Below is code of SPROC -----**********************************----------------- CREATE PROCEDURE [dbo].[CPCALC_FixedFeeEligible] @ProjectID UNIQUEIDENTIFIER, @PARA_VAR NUMERIC (18,2) output AS SET ANSI_WARNINGS OFF begin Declare @EngagementID UNIQUEIDENTIFIER Declare @ffEligible NUMERIC (18,2) select @EngagementID = engagementid from dbo.project where projectid = @ProjectID IF ( (select count(*) from dbo.fixedfeeschedule ff where ff.Deleted =0 and ff.prepaid<>1 and ff.EngagementID = @EngagementID ) > 0) Begin select @ffEligible = sum(CASE WHEN NOT(ff.Prepaid = 1) THEN ISNULL(ff.invoicedamount,0) ELSE 0 END) FROM dbo.fixedfeeschedule ff where ff.Deleted =0 and ff.EngagementID = @EngagementID end ELSE Begin set @ffEligible = 0 END set @PARA_VAR = isNull(@ffEligible,0) END
aggregatesssis errornull
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.