FormError

From SMT-X
Jump to: navigation, search

In this chapter you'll find some common error message that may occur while building forms and specifically when using NCLAC function or dynamic list filter.

   System.ArgumentOutOfRangeException: 'lstValue' has a SelectedIndex which is invalid because it does not exist in the list of items. Parameter name: value
   CAUSE: This error is most probably caused by a filtered list that has the option "pre-select first value" enabled. The content of the list switches or becomes empty and the system tries to restore the previously selected value. 
   SOLUTION Uncheck the option preselect first value and try to achieve the same result by using the default answer option.