Summary:
This article troubleshoots an error that occurs due to the parameter type being set to ‘check list’.
Symptoms:
When a user clicks on a report to launch in Portal, they receive the following error message:
Portal Version: 4.5.30401.1057
Message: [Arg_NullReferenceException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.41212.00&File=mscorlib.dll&Key=Arg_NullReferenceException
Details:
System.NullReferenceException: [Arg_NullReferenceException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.41212.00&File=mscorlib.dll&Key=Arg_NullReferenceException|
at OneStop.Portal.ViewModels.ParameterCheckListViewModel.
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at OneStop.Portal.ViewModels.ParameterCheckListViewModel.
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at OneStop.Portal.ViewModels.ParameterCheckListViewModel.OnLookupFinished()
at OneStop.Portal.ViewModels.ParameterCheckListViewModel.set_Value(Object value)
at OneStop.Portal.ViewModels.ReportViewModel.SelectHistoryItem(HistoryItemViewModel historyItem)
at OneStop.Portal.ViewModels.ReportViewModel.
at OneStop.Portal.ViewModels.ReportHistoryViewModel.OnSelectedItemChanged()
at OneStop.Portal.ViewModels.ReportHistoryViewModel.set_SelectedItem(HistoryItemViewModel value)
at OneStop.Portal.ViewModels.ReportHistoryViewModel.SelectFirstRecent()
at OneStop.Portal.ViewModels.ReportViewModel.
at OneStop.Portal.Services.ReportService.
The error message may appear after running the report as well.
Causes:
If only a select number of reports appear to error out, the cause of the error is from the parameter type of the report parameters. Most likely the parameter type is set to ‘check list’.
Resolution:
Change the parameter type to any other ones like ‘lookup edit’.
Afterward, save and reload the report onto the Portal and test to make sure it runs.
Properties:
Web Portal 4.x