Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:17:03+00:00 2026-06-01T15:17:03+00:00

i have a report that i have been sending a parameter to which worked

  • 0

i have a report that i have been sending a parameter to which worked just fine.
the report parameter was declared:

string[]  pclist = new string(){ "A", "B", "C" };
ReportParameter pcode = new ReportParameter( "pcode", pclist, false );

which gives me a new report parameter that is initialized with a string array of 3 values. so far so good.

inside the report, the ‘pcode’ parameter is defined as a ‘String’, and is used like:

...
and PCode in ( @pcode )
...

recently, because the values for the parameter needed to change depending on who is logged in, we changed this such that the parameter gets it’s string array from the return value of a method call. (the method gets the values from the database):

ReportParameter pcode = new ReportParameter( "pcode", FetchParams("X"), false );

FetchParams(“X”) performs a select on the database and returns a string[] of values. most of the time it works fine. however, sometimes the report does not run and only returns the error message:

The 'pcode' parameter is missing a value

what we determined is that sometimes there are dozens of values be returned by FetchParams(“X”). when the number of values in the string[] gets too big, the report fails with that error message. apparently, there is some kind of upper limit to the number of values that can be used to instantiate a ReportParameter object.

initially we thought that the limitation might be in sql server itself as a limit to the number of values that can be handled by an in clause. however, the error message does not seem to support this conclusion.

edit: trial and error has shown for this particular case, 33 is the upper limit for the number of values in the string array.

does anyone have any experience with this problem?
is there an upper limit to the number of values in the array passed to the ReportParameter ctor?
is there a way to configure the upper limit to be a larger number?

any and all help will be appreciated.
thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:17:04+00:00Added an answer on June 1, 2026 at 3:17 pm

    hokay, folks, here is the real answer to this bit of mystery.

    the report has a parameter called ‘pcode’.
    the ‘pcode’ parameter has a data source that creates a list of drop down values.

    now the code that runs the report is generating a list of values for the pcode parameter.
    when the list of values is passed to the report, if there is a value that doesn’t match the report’s list generated from it’s data source, you get the mind-numbing ssrs error message:

    The 'pcode' parameter is missing a value

    ug-ly. but that’s m$ for ya.

    for the record, there does not seem to be a limit to the number of values in the string array being passed to the ReportParameter ctor… that and the error message is coming from ssrs, not the code generating the ReportParameter object.

    hope this might help someone else that has this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a report that tracks how long certain items have been in the
I have some report and plenty of parameters inside that report. One of parameter
I have been struggling to make a set of reports that gives the sum
I have a report that uses a TChart that I am maintaining. One of
I have a report that renders data returned from a stored procedure. Using profiler
I have a report that is used by a windows service and a form
I have a report that I created with Crystal Reports 2008. This report uses
I have a report that takes two parameters from a couple of text boxes
I have a report that calculates multiple date differences (in business days, not DATEDIFF)
I have a report that I'm exporting to PDF using the VS2008 version of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.