I've done so many google searches and have come to no success.Where I work, we use some garbage called ENVOX Studio where our customers call in through telephone, and ENVOX uses some stored procedures from our SLQ Database. They have some RSS junk setup written in VBScript and the error logs keep showing the following when attempt to generate one of our Reporting Services reports:An attempt was made to set a report parameter 'Treatment' that is not defined in this report.All the code in the script works fine except for the additions I made, not sure why it's not working.[code="vb"]Dim ReportDir as string = "C:\Reporting Services\"Public Sub Main() ' I CHANGED (2) TO (3) SINCE I ADDED A NEW PARAMETER BELOW Dim parameters(3) As ParameterValue parameters(0) = New ParameterValue() parameters(0).Name = "Site" parameters(0).Value = Site parameters(1) = New ParameterValue() parameters(1).Name = "Patient" parameters(1).Value = Patient parameters(2) = New ParameterValue() parameters(2).Name = "RefaxFlag" parameters(2).Value = RefaxFlag 'THIS IS THE CODE I ADDED parameters(3) = New ParameterValue() parameters(3).Name = "Treatment" parameters(3).Value = Treatment[/code]My SQL SP code that executes the report is:[code="sql"]SET @CommandString = 'rs -i ' + char (34) + 'C:\Reporting Services\P2003\Randomization.rss' + char (34) + ' -s http://localhost/reportserver' + ' -v Site=' + @Site + ' -v Patient=' + @Patient + ' -v RefaxFlag=' + @RefaxCall + ' -v Treatment=' + cast(@Treatment as varchar(1)) + ' -e Exec2005';[/code]My SP works just fine. Apparently it's the VBScript in that RSS file.
↧