UiPath Documentation
activities
latest
false
Workflow activities

SY-USG-017 - Invoke Workflow Empty Value-Type Arguments

Workflow Analyzer rule that detects empty value-type input arguments of Invoke Workflow File activities.

Rule ID: SY-USG-017

Scope: Project

Default action: Warning

Description​

Checks the Invoke Workflow File activities for empty input arguments of a value type, such as a number or a Boolean, when the invoked workflow declares a default value for them. A value type cannot be null, so an empty argument reaches the invoked workflow as the default value of its type, for example 0 or False, not as the default value declared in the invoked workflow.

The rule reports each affected argument with its name, its type, and the default value declared in the invoked workflow.

The rule checks only invoked .xaml workflows whose file name is a literal path. It skips activities that pass their arguments through Arguments variable, and it does not report arguments whose type differs from the one declared in the invoked workflow, which SY-USG-016 reports instead.

Recommendation​

Set a value for the argument, for example by selecting Refresh arguments on the Invoke Workflow File activity, which fills in the default values declared in the invoked workflow. Alternatively, declare the argument in the invoked workflow as a nullable type, such as Nullable(Of Int32), so that an empty argument receives the declared default.

The rule is available starting with System 26.10.1.

  • Description​
  • Recommendation​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated