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.


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


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


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


The JS is like this: $(’#sch-tree div.acc-rec td.toggle’).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.