Parameter name: reason missing while running InjectJsScript

js

#1

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.


#2

@Worthy

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

Regards,
Mahesh


#3

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


#4

@Worthy

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

Regards,
Mahesh


#5

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.