Showing posts with label missing. Show all posts
Showing posts with label missing. Show all posts

Wednesday, March 28, 2012

Parameter missing value after deployment

Hi Friends,

I'm using MSRS 2005. I have created a drillthrough report using parameter. If I try to execute locally it works fine. I am able to call sub report from the master report by passing parameter. But, If I rey to access the report after deploying on to reporting server, I am getting error patameter xxxx is missing a value. What could be wrong? Please help

Thanks & Regards,

Naveen J V

This may be something to do with deployment. I've sometimes found that after deploying my report parameters don't behave as expected. The solution in the past has either to try to re-deploy (sometimes several times) or delete the reports from the report server and deploy again. A warning would be that the second approach the reportID's (GUIDs) wi8ll be re-created so usage stats will get screwed up.

To test whether it's a deployment issue, I suggest deploying to a different target directory to see if the reports work from there.

|||

Hi Adams

Thanks for the quick turnaround. I have tried deploying it into different servers many times. Everywhere, it throws the same error.

Thanks & Regards,

Naveen J V

Parameter missing

Hi,

I was developed the rdl report and i deployed to the server, In my report having the single input parameter When i run the report

asking parameter value and i was gave the value it was generated the report it is working fine.

Then this rdl report bind to the reportviewer control using

Report viwer tasks :

Choose Report : < Server Report>

Server Report Url:http://localhost/reportserver

Report Path : /Sales/Details

then i run the error should shown:

  • An error has occurred during report processing.
  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied.

    How i pass the parameter value in reportviewer.

    Plz any one would help to me.

    regards

    kumar

    First deploy it and go to the IIS and open the Report folder and browse it.You can find your report there.Run that report.If that is working fine so some other problem was there.Do like that way if it is working so the page should work fine.

    |||

    Hi,

    Thanks for your response

    I did you told that way it is working fine and i was bind the rdl report to Reportviewer in my webpage then i ran the error should occured

    An error has occurred during report processing.

  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied|||

    ptParameters[0] =
    new Microsoft.Reporting.WebForms.ReportParameter("ClientId", sessParam );

    this.ReportViewer1.ServerReport.SetParameters(RptParameters);
    this.ReportViewer1.ServerReport.Refresh();

    check this article for more infohttp://www.codeproject.com/sqlrs/ReportViewer2005.asp

    |||

    It is working fine thanks lot

    regards

    kumar

    sql
  • parameter is missing a value.

    Hi Friends,

    I have created a child report with hidden parameter. When I call this report from the Master report using a link, I am getting error 'the xxxx parameter is missing a value'.

    From, master report, if I click a value, it should take that value to child report where it filters for that value and should display the child report.

    How to overcome this?

    Thanks & Regards,

    Naveen J V

    Have you set any default value for the parameter in your subreport?

    |||

    Hi,

    No default value has been set.

    Regards,

    Naveen J V

    |||Ok, then try giving a default value for your hidden parameter. Give the same expression that you have used in the value field for the parameter. This might work. Not sure.|||

    Hi,

    I already tried this option, but I'm still getting the same error.

    Thanks & Regards,

    Naveen

    |||

    All the parameters created in sub-report should get some value, so if you have more than one parameter in the sub-report and from the master report you are passing value of only one parameter then obviously the value of other parameters will be missing. I suggest you to set the default value for the parameters in the sub report, so that the report get displayed even if you are passing wrong values from the master report.

    By the way what is the expression that you are passing? And how many parameters you have?

    |||

    Hi Rohit,

    My sub report has only one parameter. In my master report, If I click a particular column, it should take me to the sub report, where I should be able to see the filtered report based on the passed value.

    It is working for one of my report which uses a different cube.

    Thanks & Regards,

    Naveen

    |||

    Can you give the expression that you are passing?

    |||

    Rohit,

    While creating a report, in Query builder I selected a parameter (which referes to a member of a dimension). Same parameter I'm using in my report. I am not using any expressions.

    Thanks & Regards,

    Naveen

    |||

    what is the expression you are writting in the navigation properties for the parameter of your sub report?

    |||

    Hi,

    Jump to Report ->Sub_rpt (sub report name)

    Parameter name -> DLVLTM

    Parameter value -> =Fields!TM.Uniquename

    Regards,

    Naveen J V

    |||

    Actually everything seems to be fine. It may be a data issue though.

    anyways again give it a try:

    Go to Sub report and in the report parameter window try by making available values non-queried.

    |||

    Hi Rohit,

    If I dont hide the parameter, the report works fine. If I hide, only then I get this error. In the present context, it should be hidden. Based on the selection made from the master report, it should disply the child report.

    I dont understand wht could be the problem?

    Regards,

    Naveen

    |||

    Hi Rohit,

    I'm getting the same error. Please refer to my rprevious mail.

    Regards,

    Naveen J V

    parameter is missing a value.

    Hi Friends,

    I have created a child report with hidden parameter. When I call this report from the Master report using a link, I am getting error 'the xxxx parameter is missing a value'.

    From, master report, if I click a value, it should take that value to child report where it filters for that value and should display the child report.

    How to overcome this?

    Thanks & Regards,

    Naveen J V

    Have you set any default value for the parameter in your subreport?

    |||

    Hi,

    No default value has been set.

    Regards,

    Naveen J V

    |||Ok, then try giving a default value for your hidden parameter. Give the same expression that you have used in the value field for the parameter. This might work. Not sure.|||

    Hi,

    I already tried this option, but I'm still getting the same error.

    Thanks & Regards,

    Naveen

    |||

    All the parameters created in sub-report should get some value, so if you have more than one parameter in the sub-report and from the master report you are passing value of only one parameter then obviously the value of other parameters will be missing. I suggest you to set the default value for the parameters in the sub report, so that the report get displayed even if you are passing wrong values from the master report.

    By the way what is the expression that you are passing? And how many parameters you have?

    |||

    Hi Rohit,

    My sub report has only one parameter. In my master report, If I click a particular column, it should take me to the sub report, where I should be able to see the filtered report based on the passed value.

    It is working for one of my report which uses a different cube.

    Thanks & Regards,

    Naveen

    |||

    Can you give the expression that you are passing?

    |||

    Rohit,

    While creating a report, in Query builder I selected a parameter (which referes to a member of a dimension). Same parameter I'm using in my report. I am not using any expressions.

    Thanks & Regards,

    Naveen

    |||

    what is the expression you are writting in the navigation properties for the parameter of your sub report?

    |||

    Hi,

    Jump to Report ->Sub_rpt (sub report name)

    Parameter name -> DLVLTM

    Parameter value -> =Fields!TM.Uniquename

    Regards,

    Naveen J V

    |||

    Actually everything seems to be fine. It may be a data issue though.

    anyways again give it a try:

    Go to Sub report and in the report parameter window try by making available values non-queried.

    |||

    Hi Rohit,

    If I dont hide the parameter, the report works fine. If I hide, only then I get this error. In the present context, it should be hidden. Based on the selection made from the master report, it should disply the child report.

    I dont understand wht could be the problem?

    Regards,

    Naveen

    |||

    Hi Rohit,

    I'm getting the same error. Please refer to my rprevious mail.

    Regards,

    Naveen J V

    Monday, March 26, 2012

    parameter is missing a value.

    Hi Friends,

    I have created a child report with hidden parameter. When I call this report from the Master report using a link, I am getting error 'the xxxx parameter is missing a value'.

    From, master report, if I click a value, it should take that value to child report where it filters for that value and should display the child report.

    How to overcome this?

    Thanks & Regards,

    Naveen J V

    Have you set any default value for the parameter in your subreport?

    |||

    Hi,

    No default value has been set.

    Regards,

    Naveen J V

    |||Ok, then try giving a default value for your hidden parameter. Give the same expression that you have used in the value field for the parameter. This might work. Not sure.|||

    Hi,

    I already tried this option, but I'm still getting the same error.

    Thanks & Regards,

    Naveen

    |||

    All the parameters created in sub-report should get some value, so if you have more than one parameter in the sub-report and from the master report you are passing value of only one parameter then obviously the value of other parameters will be missing. I suggest you to set the default value for the parameters in the sub report, so that the report get displayed even if you are passing wrong values from the master report.

    By the way what is the expression that you are passing? And how many parameters you have?

    |||

    Hi Rohit,

    My sub report has only one parameter. In my master report, If I click a particular column, it should take me to the sub report, where I should be able to see the filtered report based on the passed value.

    It is working for one of my report which uses a different cube.

    Thanks & Regards,

    Naveen

    |||

    Can you give the expression that you are passing?

    |||

    Rohit,

    While creating a report, in Query builder I selected a parameter (which referes to a member of a dimension). Same parameter I'm using in my report. I am not using any expressions.

    Thanks & Regards,

    Naveen

    |||

    what is the expression you are writting in the navigation properties for the parameter of your sub report?

    |||

    Hi,

    Jump to Report ->Sub_rpt (sub report name)

    Parameter name -> DLVLTM

    Parameter value -> =Fields!TM.Uniquename

    Regards,

    Naveen J V

    |||

    Actually everything seems to be fine. It may be a data issue though.

    anyways again give it a try:

    Go to Sub report and in the report parameter window try by making available values non-queried.

    |||

    Hi Rohit,

    If I dont hide the parameter, the report works fine. If I hide, only then I get this error. In the present context, it should be hidden. Based on the selection made from the master report, it should disply the child report.

    I dont understand wht could be the problem?

    Regards,

    Naveen

    |||

    Hi Rohit,

    I'm getting the same error. Please refer to my rprevious mail.

    Regards,

    Naveen J V

    parameter is missing a value error

    I am trying to populate a report "rdlc" file within a reportviewer control in a webpage. It works fine when is ran as a RDL file as a report services solution. Now that I created my datasource that will populate my report, I get an error "The 'beg_date' parameter is missing a value", which is a field that is specified back from the result of the procedure. Anyone know how to approach this?

    Private connAs String Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Me.Load conn = System.Configuration.ConfigurationManager.ConnectionStrings("ESQLConn").ConnectionString()End Sub Protected Sub Button1_Click(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Button1.Click AddReportDataset()End Sub Private Sub AddReportDataset()Dim ds1As ReportDataSource =New ReportDataSource("DataSource1", sd1())Dim ds2As ReportDataSource =New ReportDataSource("DataSource2", sd2())Dim ds3As ReportDataSource =New ReportDataSource("DataSource3", sd3())Me.rptViewer.LocalReport.DataSources.Add(ds1)Me.rptViewer.LocalReport.DataSources.Add(ds2)Me.rptViewer.LocalReport.DataSources.Add(ds3)End Sub Private Function sd1()As SqlDataSourceDim compnameAs ControlParameter =New ControlParameter compname.DefaultValue =Me.txtCompany.Text.ToStringDim begdateAs ControlParameter =New ControlParameter begdate.DefaultValue =Me.txtBegDate.Text.ToStringDim enddateAs ControlParameter =New ControlParameter enddate.DefaultValue =Me.txtEndDate.Text.ToStringDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="csp_rpt_ef0115_db" sqlds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure sqlds.SelectParameters.Add(compname) sqlds.SelectParameters.Add(begdate) sqlds.SelectParameters.Add(enddate)Return sqldsEnd Function Private Function sd2()As SqlDataSourceDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="SELECT DISTINCT RTRIM(Act_Type) + ISNULL(Act_Sub_Type,'') AS Type FROM AR_Act" sqlds.SelectCommandType = SqlDataSourceCommandType.Text Return sqlds End Function Private Function sd3() As SqlDataSource Dim sqlds As New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand = "select Item from dbo.Pick_Items with (nolock)
    where fPick_Name='asxdbLocations" sqlds.SelectCommandType = SqlDataSourceCommandType.TextReturn sqldsEnd Function

    hello,

    you seem to be commenting some of you code out by using ' instead of "

    See your original post and look at the text in green which is commented out. Could this be the problem?

    Regards

    Marco

    |||

    use those link it might help you http://www.c-sharpcorner.com/UploadFile/asif.blog/DynamicDataGrouping08042006115320AM/DynamicDataGrouping.aspx

    Parameter is missing a value

    I have a report parameter with Allow null value checked (and also Allow blank value). The report works as expected when viewed in Visual Studio, i.e. if I don't supply a value for the parameter, the report still renders. However, when I try to view this report through the web ReportViewer I get the error message "The X parameter is missing a value". It works fine when a value is supplied but I want that parameter to be optional.

    Any idea what's going wrong here?

    Thanks.

    All parameters must have a value. In your case, it sounds like you want the default value to be null (or maybe empty string). Have you specified this as the default value? Can you post a sample RDL?

    |||

    This is the parameter:

    <ReportParameter Name="Group1">

    <DataType>String</DataType>

    <Nullable>true</Nullable>

    <AllowBlank>true</AllowBlank>

    <Prompt>Group1</Prompt>

    </ReportParameter>

    In VS, Null is selected as the default value.

    In the code that sets up the ReportViewer, I've tried both excluding the SetQueryParameter call for that parameter and also passing an empty string and both result in that error message.

    |||This all looks ok. Will you post your code that sets the report definition and any other parameters?|||

    Microsoft.Samples.ReportingServices.ReportViewer rv = new Microsoft.Samples.ReportingServices.ReportViewer();

    rv.ServerUrl = "http://localhost/ReportServer$SQL2005";

    rv.ReportPath = "GroupedReport";

    rv.Width = Unit.Percentage(100);

    rv.Height = Unit.Percentage(100);

    rv.Parameters = Microsoft.Samples.ReportingServices.ReportViewer.multiState.False;

    //several parameters are added via

    rv.SetQueryParameter("ParamName", ParamValue);

    Then for this particular parameter, I've tried just leaving out the set parameter call and also tried doing this:

    rv.SetQueryParameter("Group1", "");

    and

    rv.SetQueryParameter("Group1", null);

    Neither of which worked.

    And then of course:

    plhReport.Controls.Add(rv);

    Thanks for your help.

    |||

    I didn't realize you were using the viewer sample. Since you are using SQL 2005, have you considered using the ReportViewer control that ships with Visual Studio 2005? It provides a lot more functionality than the sample and offers much better integration with your application.

    You can get a lot of good information on the control from www.gotreportviewer.com.

    |||

    Yeah, I'm in the process of converting the code to that new control and it seems to get rid of this problem.

    Thanks.

    |||

    Please help guys i posted in this forum yesterday and no one has replied. I cant even seem to get my report woking at all?

    My form is very simple at the moment and has a drop down list that when a service is selected fires of a postback!

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <cc1:Combobox ID="Combobox1" runat="server" CSSOptionIcon="ico" AutoPostbackEnable="true"

    FolderStyle="./combobox/styles/blueGray" Height="500" InnerWidth="500" Width="500">

    </cc1:Combobox>

    </div>

    <div>

    <rsweb:ReportViewer ID="SRViewer" runat="server" Visible="false" Height="600px" Width="600px" Font-Names="Verdana" Font-Size="8pt">

    </rsweb:ReportViewer>

    </div>

    </form>

    </body>

    </html>

    when fired the form databinds the report to a dataset / table that is returned based on drop down selection and year. for now i phisivcally put in '2007'

    Protected Sub SRViewer_DataBinding(ByVal sender As Object, ByVal e As EventArgs) Handles SRViewer.DataBinding

    Dim dt As DataTable = New DataTable

    dt = ServiceReport(Combobox1.Text, "2007").Tables(0)

    Dim DR As DataColumnCollection = dt.Columns

    Dim FD As DataColumn = dt.Columns("No_of_Complaints")

    Dim tD As DataColumn = dt.Columns("MonthName")

    Dim bindDs_name As String = "dt"

    Dim reportName As String = "Service Report"

    Dim reportPath As String = "Report1.rdlc"

    Dim fullReportPath As String = reportPath + reportName

    Dim txtReportTitle As String = "Service Report"

    If Session("fullReport") Is Nothing Then

    Session.Add("fullReport", reportPath + reportName)

    Else

    Session.Remove("fullReport")

    Session.Add("fullReport", reportPath + reportName)

    End If

    SRViewer.LocalReport.DisplayName = "Service Report"

    SRViewer.LocalReport.ReportPath = "Report1.rdlc"

    Dim No_of_Complaints As ReportParameter = New ReportParameter

    Dim Month_Name As ReportParameter = New ReportParameter

    No_of_Complaints.Name = "No_of_Complaints"

    Month_Name.Name = "Month_Name"

    For Each FD In DR

    No_of_Complaints.Values.Add(FD.ToString())

    Month_Name.Values.Add(tD.ToString())

    Next

    Dim myReportParams As ReportParameter() = New ReportParameter() {No_of_Complaints, Month_Name}

    SRViewer.LocalReport.SetParameters(myReportParams)

    If Not (dt Is Nothing) Then

    SRViewer.LocalReport.DataSources.Clear()

    SRViewer.LocalReport.DataSources.Add(New ReportDataSource(bindDs_name.Trim, dt))

    dt.Dispose()

    End If

    End Sub

    my report viewer wouldnt even compile without me addind a dataset and some parameters to it!! I dunno why i even need these parameters? i've downloaded numerous examples and cant actually ubderstand the logic behind this particuar control...

    <?xml version="1.0" encoding="utf-8"?>

    <xs:schema id="dt" targetNamespace="http://tempuri.org/dt.xsd" xmlns:mstns="http://tempuri.org/dt.xsd" xmlns="http://tempuri.org/dt.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">

    <xs:annotation>

    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">

    <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">

    <Connections>

    <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="connString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="connString (Web.config)" ParameterPrefix="@." PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.connString.ConnectionString" Provider="System.Data.SqlClient">

    </Connection>

    </Connections>

    <Tables>

    <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SelectServiceReportTableAdapter" GeneratorDataComponentClassName="SelectServiceReportTableAdapter" Name="SelectServiceReport" UserDataComponentName="SelectServiceReportTableAdapter">

    <MainSource>

    <DbSource ConnectionRef="connString (Web.config)" DbObjectName="TestComplaints.TestComplaint.SelectServiceReport" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetServiceData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetServiceData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetServiceData" UserSourceName="Fill">

    <SelectCommand>

    <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">

    <CommandText>TestComplaint.SelectServiceReport</CommandText>

    <Parameters>

    <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="dt" DbType="Int32" Direction="ReturnValue" ParameterName="@.RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">

    </Parameter>

    </Parameters>

    </DbCommand>

    </SelectCommand>

    </DbSource>

    </MainSource>

    <Mappings>

    <Mapping SourceColumn="Total" DataSetColumn="Total" />

    <Mapping SourceColumn="MonthName" DataSetColumn="MonthName" />

    </Mappings>

    <Sources>

    </Sources>

    </TableAdapter>

    </Tables>

    <Sources>

    </Sources>

    </DataSource>

    </xs:appinfo>

    </xs:annotation>

    <xs:element name="dt" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dt" msprop:Generator_DataSetName="_dt">

    <xs:complexType>

    <xs:choice minOccurs="0" maxOccurs="unbounded">

    <xs:element name="dt" msprop:Generator_UserTableName="dt" msprop:Generator_RowDeletedName="dtRowDeleted" msprop:Generator_TableClassName="dtDataTable" msprop:Generator_RowChangedName="dtRowChanged" msprop:Generator_RowClassName="dtRow" msprop:Generator_RowChangingName="dtRowChanging" msprop:Generator_RowEvArgName="dtRowChangeEvent" msprop:Generator_RowEvHandlerName="dtRowChangeEventHandler" msprop:Generator_TablePropName="dt" msprop:Generator_TableVarName="tabledt" msprop:Generator_RowDeletingName="dtRowDeleting">

    <xs:complexType>

    <xs:sequence>

    <xs:element name="Total" msprop:Generator_UserColumnName="Total" msprop:Generator_ColumnPropNameInRow="Total" msprop:Generator_ColumnVarNameInTable="columnTotal" msprop:Generator_ColumnPropNameInTable="TotalColumn" type="xs:string" minOccurs="0" />

    <xs:element name="MonthName" msprop:Generator_UserColumnName="MonthName" msprop:Generator_ColumnPropNameInRow="MonthName" msprop:Generator_ColumnVarNameInTable="columnMonthName" msprop:Generator_ColumnPropNameInTable="MonthNameColumn" type="xs:string" minOccurs="0" />

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    <xs:element name="SelectServiceReport" msprop:Generator_UserTableName="SelectServiceReport" msprop:Generator_RowDeletedName="SelectServiceReportRowDeleted" msprop:Generator_TableClassName="SelectServiceReportDataTable" msprop:Generator_RowChangedName="SelectServiceReportRowChanged" msprop:Generator_RowClassName="SelectServiceReportRow" msprop:Generator_RowChangingName="SelectServiceReportRowChanging" msprop:Generator_RowEvArgName="SelectServiceReportRowChangeEvent" msprop:Generator_RowEvHandlerName="SelectServiceReportRowChangeEventHandler" msprop:Generator_TablePropName="SelectServiceReport" msprop:Generator_TableVarName="tableSelectServiceReport" msprop:Generator_RowDeletingName="SelectServiceReportRowDeleting">

    <xs:complexType>

    <xs:sequence>

    <xs:element name="Total" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Total" msprop:Generator_ColumnPropNameInRow="Total" msprop:Generator_ColumnVarNameInTable="columnTotal" msprop:Generator_ColumnPropNameInTable="TotalColumn" type="xs:int" minOccurs="0" />

    <xs:element name="MonthName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="MonthName" msprop:Generator_ColumnPropNameInRow="MonthName" msprop:Generator_ColumnVarNameInTable="columnMonthName" msprop:Generator_ColumnPropNameInTable="MonthNameColumn" minOccurs="0">

    <xs:simpleType>

    <xs:restriction base="xs:string">

    <xs:maxLength value="30" />

    </xs:restriction>

    </xs:simpleType>

    </xs:element>

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    </xs:choice>

    </xs:complexType>

    </xs:element>

    </xs:schema>

    I have no clue why i should use this dataset? The data i need comes from

    Public Function ServiceReport(ByVal Service As String, ByVal Year As String) As DataSet

    Dim SR As New DataSet

    Dim db As New Database

    Try

    db.CommandText = "SELECT sum([Total])as No_of_Complaints,[MonthName]" & _

    "FROM [TestComplaints].[dbo].[servicereport]" & _

    "where [Service] = '" + Service + "' and DatePart(yy, [ReceivedDate]) = '" + Year + "'" & _

    "GROUP By [MonthName]"

    SR = db.ReturnDataSet(conn)

    Catch ex As Exception

    Throw ex

    End Try

    Return SR

    End Function

    where i have classes like database in my project that return tables etc.

    when i run this in sql all i retrieve is what i want to present in the 3D type charts..

    5 April
    2 August
    3 December
    4 February
    7 January
    3 July
    6 June
    5 March
    10 May
    1 November
    6 October

    my x-m axis showing the months and y axis the total value..

    I wont probably hear from anyone but thought to post anyways.

    sql

    Parameter is missing a value

    Hi Folks,

    I'm receiving the "Parameter is missing a value" error message while testing my report.

    I have five parameters, two of which are hidden that gets prefilled from the query below. The hidden parameters are DatatechClient and DatatechProduct.

    SELECT ClientNameProduct, DatatechClient, DatatechProduct
    FROM V_TranslationTable
    WHERE (CMRNum = @.Cmr) AND (AcctNum = @.ClientNum)

    Three parameters are shown and the report works fine as long as the CMRNum and AcctNum is found in the V_TranslationTable however, the error generates when they are not found. I looked through the other threads in this forum that deals with "Parameter is missing a value" but it didn't appear to be a solution shown.

    Thanks in advance for any assistance you give.

    I take it that when either CMRNum or AcctNum don't exist, you don't want the report to error out. Use this in your query - the report should run and return nothing, but won't error out:

    Where IsNull(CMRNum,'') = @.Cmr AND IsNull(AcctNum,'') = @.ClientNum

    |||

    Hi Jamvir,

    Thanks for responding.

    I need to give more clearity. My report consists of six datasets and I'm working with RS2005. @.Cmr and @.ClientNum gets populated by a query in my first two datasets. My two hidden parameters @.DatatechClient and @.DatatechProduct are a part of my third dataset and they are the columns that are coming back blank from the query below.

    SELECT ClientNameProduct, DatatechClient, DatatechProduct
    FROM V_TranslationTable
    WHERE (CMRNum = @.Cmr) AND (AcctNum = @.ClientNum)

    Blank parameters for @.DatatechClient and or @.DatatechProduct are being passed to my fifth dataset query below.

    SELECT EntityID, PrimaryDirInd, IsOnContract, [5DigitCode], EntityName, Addr1, City, State, Zip, Attn, Phone, ClientID, ProductID
    FROM V_EntityDirectories
    WHERE ((DirID = @.DirNum) AND (ClientID = @.DatatechClient) AND (ProductID = @.DatatechProduct))
    ORDER BY EntityID

    Also blank parameters for @.DatatechClient and or @.DatatechProduct are being passed to my sixth dataset query below.

    SELECT PkgHdngs.ClientID, PkgHdngs.ProductID, PkgHdngs.DirID, PkgHdngs.HdngSeqNum, PkgHdngs.HdngText, PkgHdngs.HdngCode, PkgHdngs.DirVer, HdngAds.AdUnitID, HdngAds.AdRate
    FROM PkgHdngs INNER JOIN
    HdngAds ON PkgHdngs.ClientID = HdngAds.ClientID AND PkgHdngs.ProductID = HdngAds.ProductID AND PkgHdngs.DirID = HdngAds.DirID AND PkgHdngs.DirVer = HdngAds.DirVer AND PkgHdngs.HdngSeqNum = HdngAds.HdngSeqNum
    WHERE ((PkgHdngs.DirID = @.DirID) AND (PkgHdgns.ClientID = @.DatatechClient) AND (PkgHdgns.ProductID = @.DatatechProduct))
    ORDER BY PkgHdngs.ClientID, PkgHdngs.ProductID, PkgHdngs.DirID

    Best regards

    |||

    Have Non queried default values for DatatechClient and DatatechProduct parameters and use the follwing expression for it:

    =IIf(Count(Fields!DatatechClient.Value, "DataSet3") > 0, First(Fields!DatatechClient.Value, "DataSet3"), "SomeDefaultValueOrBlank")

    and similarly for DatatechProduct

    Parameter is missing a value

    I have a report parameter with Allow null value checked (and also Allow blank value). The report works as expected when viewed in Visual Studio, i.e. if I don't supply a value for the parameter, the report still renders. However, when I try to view this report through the web ReportViewer I get the error message "The X parameter is missing a value". It works fine when a value is supplied but I want that parameter to be optional.

    Any idea what's going wrong here?

    Thanks.

    All parameters must have a value. In your case, it sounds like you want the default value to be null (or maybe empty string). Have you specified this as the default value? Can you post a sample RDL?

    |||

    This is the parameter:

    <ReportParameter Name="Group1">

    <DataType>String</DataType>

    <Nullable>true</Nullable>

    <AllowBlank>true</AllowBlank>

    <Prompt>Group1</Prompt>

    </ReportParameter>

    In VS, Null is selected as the default value.

    In the code that sets up the ReportViewer, I've tried both excluding the SetQueryParameter call for that parameter and also passing an empty string and both result in that error message.

    |||This all looks ok. Will you post your code that sets the report definition and any other parameters?|||

    Microsoft.Samples.ReportingServices.ReportViewer rv = new Microsoft.Samples.ReportingServices.ReportViewer();

    rv.ServerUrl = "http://localhost/ReportServer$SQL2005";

    rv.ReportPath = "GroupedReport";

    rv.Width = Unit.Percentage(100);

    rv.Height = Unit.Percentage(100);

    rv.Parameters = Microsoft.Samples.ReportingServices.ReportViewer.multiState.False;

    //several parameters are added via

    rv.SetQueryParameter("ParamName", ParamValue);

    Then for this particular parameter, I've tried just leaving out the set parameter call and also tried doing this:

    rv.SetQueryParameter("Group1", "");

    and

    rv.SetQueryParameter("Group1", null);

    Neither of which worked.

    And then of course:

    plhReport.Controls.Add(rv);

    Thanks for your help.

    |||

    I didn't realize you were using the viewer sample. Since you are using SQL 2005, have you considered using the ReportViewer control that ships with Visual Studio 2005? It provides a lot more functionality than the sample and offers much better integration with your application.

    You can get a lot of good information on the control from www.gotreportviewer.com.

    |||

    Yeah, I'm in the process of converting the code to that new control and it seems to get rid of this problem.

    Thanks.

    |||

    Please help guys i posted in this forum yesterday and no one has replied. I cant even seem to get my report woking at all?

    My form is very simple at the moment and has a drop down list that when a service is selected fires of a postback!

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <cc1:Combobox ID="Combobox1" runat="server" CSSOptionIcon="ico" AutoPostbackEnable="true"

    FolderStyle="./combobox/styles/blueGray" Height="500" InnerWidth="500" Width="500">

    </cc1:Combobox>

    </div>

    <div>

    <rsweb:ReportViewer ID="SRViewer" runat="server" Visible="false" Height="600px" Width="600px" Font-Names="Verdana" Font-Size="8pt">

    </rsweb:ReportViewer>

    </div>

    </form>

    </body>

    </html>

    when fired the form databinds the report to a dataset / table that is returned based on drop down selection and year. for now i phisivcally put in '2007'

    Protected Sub SRViewer_DataBinding(ByVal sender As Object, ByVal e As EventArgs) Handles SRViewer.DataBinding

    Dim dt As DataTable = New DataTable

    dt = ServiceReport(Combobox1.Text, "2007").Tables(0)

    Dim DR As DataColumnCollection = dt.Columns

    Dim FD As DataColumn = dt.Columns("No_of_Complaints")

    Dim tD As DataColumn = dt.Columns("MonthName")

    Dim bindDs_name As String = "dt"

    Dim reportName As String = "Service Report"

    Dim reportPath As String = "Report1.rdlc"

    Dim fullReportPath As String = reportPath + reportName

    Dim txtReportTitle As String = "Service Report"

    If Session("fullReport") Is Nothing Then

    Session.Add("fullReport", reportPath + reportName)

    Else

    Session.Remove("fullReport")

    Session.Add("fullReport", reportPath + reportName)

    End If

    SRViewer.LocalReport.DisplayName = "Service Report"

    SRViewer.LocalReport.ReportPath = "Report1.rdlc"

    Dim No_of_Complaints As ReportParameter = New ReportParameter

    Dim Month_Name As ReportParameter = New ReportParameter

    No_of_Complaints.Name = "No_of_Complaints"

    Month_Name.Name = "Month_Name"

    For Each FD In DR

    No_of_Complaints.Values.Add(FD.ToString())

    Month_Name.Values.Add(tD.ToString())

    Next

    Dim myReportParams As ReportParameter() = New ReportParameter() {No_of_Complaints, Month_Name}

    SRViewer.LocalReport.SetParameters(myReportParams)

    If Not (dt Is Nothing) Then

    SRViewer.LocalReport.DataSources.Clear()

    SRViewer.LocalReport.DataSources.Add(New ReportDataSource(bindDs_name.Trim, dt))

    dt.Dispose()

    End If

    End Sub

    my report viewer wouldnt even compile without me addind a dataset and some parameters to it!! I dunno why i even need these parameters? i've downloaded numerous examples and cant actually ubderstand the logic behind this particuar control...

    <?xml version="1.0" encoding="utf-8"?>

    <xs:schema id="dt" targetNamespace="http://tempuri.org/dt.xsd" xmlns:mstns="http://tempuri.org/dt.xsd" xmlns="http://tempuri.org/dt.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">

    <xs:annotation>

    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">

    <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">

    <Connections>

    <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="connString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="connString (Web.config)" ParameterPrefix="@." PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.connString.ConnectionString" Provider="System.Data.SqlClient">

    </Connection>

    </Connections>

    <Tables>

    <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SelectServiceReportTableAdapter" GeneratorDataComponentClassName="SelectServiceReportTableAdapter" Name="SelectServiceReport" UserDataComponentName="SelectServiceReportTableAdapter">

    <MainSource>

    <DbSource ConnectionRef="connString (Web.config)" DbObjectName="TestComplaints.TestComplaint.SelectServiceReport" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetServiceData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetServiceData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetServiceData" UserSourceName="Fill">

    <SelectCommand>

    <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">

    <CommandText>TestComplaint.SelectServiceReport</CommandText>

    <Parameters>

    <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="dt" DbType="Int32" Direction="ReturnValue" ParameterName="@.RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">

    </Parameter>

    </Parameters>

    </DbCommand>

    </SelectCommand>

    </DbSource>

    </MainSource>

    <Mappings>

    <Mapping SourceColumn="Total" DataSetColumn="Total" />

    <Mapping SourceColumn="MonthName" DataSetColumn="MonthName" />

    </Mappings>

    <Sources>

    </Sources>

    </TableAdapter>

    </Tables>

    <Sources>

    </Sources>

    </DataSource>

    </xs:appinfo>

    </xs:annotation>

    <xs:element name="dt" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dt" msprop:Generator_DataSetName="_dt">

    <xs:complexType>

    <xs:choice minOccurs="0" maxOccurs="unbounded">

    <xs:element name="dt" msprop:Generator_UserTableName="dt" msprop:Generator_RowDeletedName="dtRowDeleted" msprop:Generator_TableClassName="dtDataTable" msprop:Generator_RowChangedName="dtRowChanged" msprop:Generator_RowClassName="dtRow" msprop:Generator_RowChangingName="dtRowChanging" msprop:Generator_RowEvArgName="dtRowChangeEvent" msprop:Generator_RowEvHandlerName="dtRowChangeEventHandler" msprop:Generator_TablePropName="dt" msprop:Generator_TableVarName="tabledt" msprop:Generator_RowDeletingName="dtRowDeleting">

    <xs:complexType>

    <xs:sequence>

    <xs:element name="Total" msprop:Generator_UserColumnName="Total" msprop:Generator_ColumnPropNameInRow="Total" msprop:Generator_ColumnVarNameInTable="columnTotal" msprop:Generator_ColumnPropNameInTable="TotalColumn" type="xs:string" minOccurs="0" />

    <xs:element name="MonthName" msprop:Generator_UserColumnName="MonthName" msprop:Generator_ColumnPropNameInRow="MonthName" msprop:Generator_ColumnVarNameInTable="columnMonthName" msprop:Generator_ColumnPropNameInTable="MonthNameColumn" type="xs:string" minOccurs="0" />

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    <xs:element name="SelectServiceReport" msprop:Generator_UserTableName="SelectServiceReport" msprop:Generator_RowDeletedName="SelectServiceReportRowDeleted" msprop:Generator_TableClassName="SelectServiceReportDataTable" msprop:Generator_RowChangedName="SelectServiceReportRowChanged" msprop:Generator_RowClassName="SelectServiceReportRow" msprop:Generator_RowChangingName="SelectServiceReportRowChanging" msprop:Generator_RowEvArgName="SelectServiceReportRowChangeEvent" msprop:Generator_RowEvHandlerName="SelectServiceReportRowChangeEventHandler" msprop:Generator_TablePropName="SelectServiceReport" msprop:Generator_TableVarName="tableSelectServiceReport" msprop:Generator_RowDeletingName="SelectServiceReportRowDeleting">

    <xs:complexType>

    <xs:sequence>

    <xs:element name="Total" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Total" msprop:Generator_ColumnPropNameInRow="Total" msprop:Generator_ColumnVarNameInTable="columnTotal" msprop:Generator_ColumnPropNameInTable="TotalColumn" type="xs:int" minOccurs="0" />

    <xs:element name="MonthName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="MonthName" msprop:Generator_ColumnPropNameInRow="MonthName" msprop:Generator_ColumnVarNameInTable="columnMonthName" msprop:Generator_ColumnPropNameInTable="MonthNameColumn" minOccurs="0">

    <xs:simpleType>

    <xs:restriction base="xs:string">

    <xs:maxLength value="30" />

    </xs:restriction>

    </xs:simpleType>

    </xs:element>

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    </xs:choice>

    </xs:complexType>

    </xs:element>

    </xs:schema>

    I have no clue why i should use this dataset? The data i need comes from

    Public Function ServiceReport(ByVal Service As String, ByVal Year As String) As DataSet

    Dim SR As New DataSet

    Dim db As New Database

    Try

    db.CommandText = "SELECT sum([Total])as No_of_Complaints,[MonthName]" & _

    "FROM [TestComplaints].[dbo].[servicereport]" & _

    "where [Service] = '" + Service + "' and DatePart(yy, [ReceivedDate]) = '" + Year + "'" & _

    "GROUP By [MonthName]"

    SR = db.ReturnDataSet(conn)

    Catch ex As Exception

    Throw ex

    End Try

    Return SR

    End Function

    where i have classes like database in my project that return tables etc.

    when i run this in sql all i retrieve is what i want to present in the 3D type charts..

    5 April
    2 August
    3 December
    4 February
    7 January
    3 July
    6 June
    5 March
    10 May
    1 November
    6 October

    my x-m axis showing the months and y axis the total value..

    I wont probably hear from anyone but thought to post anyways.

    parameter is missing a value

    I have a SQL Report in SQL 2005 that has 2 datasets. The second
    dataset queries a value that is passed as a parameter to the first
    dataset. It works well as the main report but when I use it as a
    linked report and put a default on parameter field and hide the
    prompt, it gives me "xxx parameter is missing a value". It seems that
    it's not reading the parameter at all.
    Now if I have the second dataset as Non-queried and embed the value
    and label fields on the report itself, it works well even as a linked
    report. However, I dont want to do this because these values and
    labels change. I cannot embed it on each report (around 50 of them)
    and change each report one by one if there is a change.
    I appreciate your help in advance.
    Ben
    %$^*&I finally got the report to work. The first dataset didn't recognize
    the 3-character default value because it expected a 10 character
    string (as declared in the second dataset). I just added seven
    trailing spaces without quotes and it worked fine.
    Ben
    On Nov 15, 11:57 am, benito <lochinvar...@.gmail.com> wrote:
    > I have a SQL Report in SQL 2005 that has 2 datasets. Theseconddatasetqueriesavaluethat is passed as a parameter to the firstdataset. It works well as the main report but when I use it as a
    > linked report and put a default on parameter field and hide the
    > prompt, it gives me "xxx parameter is missing avalue". It seems that
    > it's not reading the parameter at all.
    > Now if I have theseconddatasetas Non-queried and embed thevalue
    > and label fields on the report itself, it works well even as a linked
    > report. However, I dont want to do this because these values and
    > labels change. I cannot embed it on each report (around 50 of them)
    > and change each report one by one if there is a change.
    > I appreciate your help in advance.
    > Ben
    > %$^*&

    Friday, March 23, 2012

    Parameter - Set default values - Some fields missing

    Please help. I'm using Crytal Reports v.9. I would like to create a parameter and want to set default values. The table I'm using contains 150 fields, however, the Browse Field drop down only shows 22 fields. Is there a way to fix this so that it'll show all 150 fields?

    Thanks a lot to all who respond!

    - SCham -What is the database you are using?
    Why do you want to set default value to 150 columns?