Parameter name: reason missing while running InjectJsScript

When I try to use InjectJsScript action with one line of JS code. I got Workflow Exception.

Source: System.Activities
Message: The argument reason is null or empty
Parameter name: reason
Exception Type: ArgumentException

I don’t see “reason” in Properties tab of InjectJsScript.

@Worthy

You might have missed to pass the argument in InjectJavaScript Activity.

Regards,
Mahesh

But there is no argument Reason. I’m using UiPath 2018.1.4

@Worthy

You have to pass the variables value used in JavaScript in Input Parameters field.

Regards,
Mahesh

The JS is like this: $(‘#sch-tree div.acc-rec td.toggle button.plus’).click();

So what variables?

I set InputParameter to empty string and does’t helped.

Hi Please let me know if you got the solution, me too facing the same issue.

Thanks,
Megharaj