inputDialog error - Object reference not set to an instance of an object

I have a bot that runs every few weeks and has been working for years. Today I’m getting an error the above error on an InputDialog.

IsPassword is TRUE, no Options or OptionsString (because IsPassword is TRUE).
The string is set when the variable is declared, and the scope is set to a parent sequence, so I’m confident it’s not a null variable issue. And as I said before, this used to work.

I have cleared the cache. I deleted and recreated the InputDialog step.

Putting the InputDialog in it’s own sequence and I get the following exception error:

in Get XXX company financial data.xaml
at InputDialog “Ask for XXXXXXX password”
at Flowchart “Get_XXX_Co_financial_data”
at Sequence “XXXbot”
at Get_XXX_company_financial_data “Get XXX company financial data”

System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Core.Activities.InputDialog.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Help. How can I fix this?

2 Likes

Hello @DaveF,

Looks like this is an issue with specific version of activity.

I tried with V25.12.2, V26.2.0, V26.2.1, V26.2.2 and then V25.12.2 is working where as V26.* versions are failing.

Try downgrade system activities to V25.12.2 and try.

Thanks,
karthik

1 Like

Thank you for reporting this @DaveF, and your extra information @chinthakayala_karthik.

We will investigate it.

1 Like

Hi,

I encounter the same problem, what I did for Input Type as Text Box, you can add empty array string {“”} to “Option” Property.

Hope this helps.

1 Like

I think here is the reason why.

Thanks for the suggestion @johnny_o. I’ tried that. Sadly, ss it is a password I’m prompting for, I have IsPassword enabled, and with that enabled you can’t also have anything in Options.

Thanks @chinthakayala_karthik and @loginerror.
I was on an earlier version of UiPath.System.Activities - v26.2.1 and v26.2.2
I have just upgraded that package and it looks like it’s fixed in v26.2.3

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.