I have Lookup "Fetch Customers" with SQL statement:
Select Count(CustomerId) As 'Row_count' ,Min(sales_amount) as 'Min_Sales' From [sales].
[Customers]
It returns value
10, 5000
Next I have Lookup "Update Min Sales" with SQL statement, but getting error:
Update Sales_Min_Sales
SET Row_Count = @activity('Fetch Customers').output.Row_count,
Min_Sales = @activity('Fetch Customers').output.Min_Sales
Select 1
Same error occurs even I set Lookup to
Select @activity('Fetch Fetch Customers').output.Row_count
Error:
A database operation failed with the following error: 'Must declare the scalar variable
"@activity".',Source=,''Type=System.Data.SqlClient.SqlException,Message=Must declare the
scalar variable "@activity".,Source=.Net SqlClient Data
Provider,SqlErrorNumber=137,Class=15,ErrorCode=-2146232060,State=2,Errors=
[{Class=15,Number=137,State=2,Message=Must declare the scalar variable "@activity".,},],'
