I have two parameters in my report, @CustomerId and @SalesType, however the @CustomerId parameter is not passing correctly into my report and results in the error Must declare the scalar variable "@CustomerId".
Below is the beginning of my query where this is happening.
Declare @customer nvarchar(max) , @sales varchar(10)
Set @customer = @CustomerId;
Set @sales = @SalesType;
The parameter is the correct case and is a multi-select parameter. Why could this be happening? If i define it it work, @SalesType works so im stuck why @CustomerId isnt.
Thank you.