OptionField with dynamic options and Field contains invalid value error

Hello all,

I have an OptionField defined like this:

section_options.load_case = vkt.OptionField("Load Case", options=get_load_case_options, visible=True)

and the function define globally:

def get_load_case_options(params, **kwargs):

I didn’t get any error in the console, but the web page gets stuck with the errors reported in the images:

What can I check further to the more about the errors I get?

thanks

It seems the value stored in the database is not present in the options that are asked for in the snippet you provided (get_load_case_options).

Viktor will block certain invalid input (not inside tables for example) whenever an input is invalid.
Whether that input is used for the view/end-point or not.

Solution: Select a Load Case (not being var) and save.