Quantcast
Channel: SQL Server Reporting Services, Power View Forum
Viewing all articles
Browse latest Browse all 4035

Cannot find either column "dbo" or the user-defined function or aggreg...

$
0
0

Hello,

I am getting this error messge:

Cannot find either column "dbo" or the user-defined function or aggregate "dbo.fx_GetAllPaddlesPerAuction", or the name is ambiguous.

It relates to my customer user function called "[dbo].[fx_GetAllPaddlesPerAuction]", I created to return a column like this: 1821,4581,20123,100

some times it will have 1 number or 5 numbers seperated by a comma, I know this works because i tried it in ssms, and it works fine, when i put it into SSRS, it gives me the error message above, and when i go to view columns, all the columns are gone, when there should be 8 columns, can anyone help?

thanks in advance

WITH CTE1(customerid, auctionid, bidamount)
		as
		(
			SELECT  CustomerID_FK, b.AuctionID_FK,CurrentBid
			FROM A.BID B
			JOIN A.LOT L 
			ON B.LotID_FK = L.ID_PK
			WHERE --L.WinningPaddleID_FK <> L.OwnerPaddleID_FK
			--AND BidTypeID_FK = 109 --Final Bid
			CurrentInd = 1 --Not necessarily true
			AND B.CancelledInd = 0
			AND B.ActiveInd = 1
		)
		select customerid, convert(varchar,auctionid) + ' - ' + c.Name as AuctionName
		, FirstName, LastName, b.Company, b.BidLimit, sum(a.bidamount) as bidamount,
		b.BidLimit - SUM(a.bidamount) as Remaining_Bid_Balance
		, case
		when b.BidLimit < sum(a.BidAmount) then 'Over'
		when b.BidLimit > sum(a.BidAmount) then 'Under'
		end as 'Amount Status',
		[dbo].[fx_GetAllPaddlesPerAuction](customerid,auctionID) as PaddleNumbers
		from CTE1 a
		Join C.CUSTOMER b
		on a.CustomerID = b.ID_PK
		Join A.AUCTION c
		on a.auctionid = c.ID_PK
		where auctionid = @AuctionID
		group by customerid, auctionid,FirstName, LastName,b.Company,b.BidLimit,c.Name


Viewing all articles
Browse latest Browse all 4035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>