troubleshooting Question

Error when saving parameter values as default values

Avatar of GaryRasmussen
GaryRasmussenFlag for United States of America asked on
Crystal Reports.NET Programming
20 Comments2 Solutions790 ViewsLast Modified:
I have a C# Windows fom application that has a .NET Crystal Report Viewer.  The application opens an XML file with all the information it needs in order to display the report.  It will also save the parameter values used as default values in the report if the user wants it to.  I have one report that is giving me an error that I am unable to find anything about on the web.

System.Runtime.InteropServices.COMException (0x80042009): The parameter field default values contain some field values that are not valid.  They must be discrete values only.
   at CrystalDecisions.ReportAppServer.Controllers.ParameterFieldControllerClass.Modify(Object OldParameterField, ParameterField NewParameterField)
   at CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition.ApplyDefaultValues(ParameterValues defaultValue)
   at RocktonReportEngine.ReportForms.CrystalReport.ProcessReportParameters()
The report has 2 parameters.  A discrete parameter and a range parameter.  I have lots of reports that have both types of parameters but this report is the only one that it is causing the error so I wonder if there is something different about this report but I don't know what to look for.  Something is different about this report that my code is not accounting for.

I would be glad to include my code but for now I was just wondering if anyone has seen this before and or what it means.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros