BUG: Submitting Form Defaults Result in System.NullReferenceException

I am using a UiPath form for some automation. I have a couple of radio buttons defaulting to values. These values seem like they only default the selection but on submission they do not actually save to the variable like I would expect. I get an error: System.NullReferenceException: Object reference not set to an instance of an object.

Is this working as designed or is there something I’m missing to get these values to store in the variables?

@Cox_Cameron_M_TS_CI3129_I

May I know what is the return type you are using?

cheers

I am using a string. These should default to the values “loggedOut” and “address”. Instead they are null. If I manually select an option it populates correctly.

@Cox_Cameron_M_TS_CI3129_I

Did you happen to set the direction to out?

Cheers

It is a variable within the same scope. Again, it works correctly if I manually choose it, but when using it as a “Default” option within the form it stores nothing.

@Cox_Cameron_M_TS_CI3129_I

Can you show the sisplay page

Cheers

Radio button options are marked as “Default” in the form designer and are pre-selected on load. When I submit, these values are stored as null instead of the associated string. If I were to manually select the radio button options, they populate may variable with the correct string. So I think this is a bug related to the default selection feature.

This has been submitted as a bug to UiPath

1 Like