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)
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.