Add and configure Run Pro GP Tool

The Run Pro GP Tool step runs a configured geoprocessing tool, Python script, or ModelBuilder model in ArcGIS Pro.

When the step is run, the Starting icon Starting appears on the job tile. When the tool starts, the Running icon Running appears to indicate that the tool is running.

If any of the step parameters are configured with ArcGIS Arcade expressions, they are converted to the appropriate values before the tool starts running.

If the Visible At Runtime option is enabled, the tool configured in the step opens in the Geoprocessing pane and allows you to define parameter values before the tool is run. If default parameter values were configured, they appear when you run the step and can be overridden. If User Prompt and Step Help values aren't configured for the step, the step completes automatically when it is run.

Note:

If a parameter value obtained from an ArcGIS Arcade expression is incompatible with the tool, the step fails.

When the step is run, the following actions can be performed:

  • If the Visible At Runtime option is enabled, parameters values can be provided and the step can be run by clicking Run in the Geoprocessing pane.
  • The step can be cancelled by clicking Cancel.
    Note:

    In some cases, you may be unable to cancel this step after it starts running.

Configure the step

To configure the step, do the following:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. Drag Run Pro GP Tool from the Step Library panel to a connection arrow of a step on the workflow canvas.

    The Step Details panel appears.

  3. Provide a name for the step in the Step Name text box.
  4. Optionally, add the message you want to appear when the step is run in the User Prompt text box.

    You can also use the following example to display a dynamic value using ArcGIS Arcade expressions:

    
    'This job is currently assigned to ' + jobOwner($job) + '.'
  5. Choose the type of tool you want to run in the Arguments section:
    • System Toolbox—Geoprocessing tools included with ArcGIS Pro and toolboxes imported into an ArcGIS Pro project
    • Other Toolbox—Custom geoprocessing tools and scripts
  6. Do one of the following:

    Tools in the system toolboxes

    Type the toolbox alias of the toolbox that contains the tool that you want to run in the Toolbox Alias text box.

    The toolbox alias can be found on the Python tab on the tool’s help page in the ArcGIS Pro documentation.

    Tools imported into an ArcGIS Pro project

    Type the toolbox alias of the toolbox that contains the tool that you want to run in the Toolbox Alias text box.

    Right-click the toolbox in the Catalog pane and click Properties to view the toolbox alias.

    Custom geoprocessing tools and scripts

    Type the full path to the toolbox in the Toolbox Path text box. The path to the toolbox can also reference toolboxes stored in a file geodatabase or an enterprise geodatabase. The path must be accessible in ArcGIS Pro.

  7. Type the name of the tool that you want to run in the Tool Name text box.

    The tool name can be found on the Python tab on the tool’s help page in the ArcGIS Pro documentation.

  8. Optionally, check the Visible At Runtime check box to allow parameter values to be set when the step is run in ArcGIS Pro.
  9. Click Add New Parameter.
  10. Type the name of the parameter in the Parameter Name text box.

    The tool's parameter names can be found on the Python tab on the geoprocessing tool's help page in the ArcGIS Pro documentation.

  11. Optionally, click the Show Default Value button Show Default Value to define the default value of the parameter when the step is run.
    1. Choose one of the following options:
      • Value—Provide a static value.
      • Arcade Expression—Provide a dynamic value using an Arcade expression.
    2. Provide a default value for the property in the Value or Arcade Expression text box.
  12. Repeat steps 9 through 11 to add more parameters.
  13. Optionally, type the name of the derived output parameter you want to use as a output value when the tool finishes running.

    The tool's derived output parameters can be found on the Python tab on the tool's help page in the ArcGIS Pro documentation.

  14. Optionally, check the Attach GP Log check box to save the tool's history as a job attachment.
  15. Optionally, provide the name of the folder in which logs will be stored in the Folder text box.

    The folder name can't contain special characters.

    Note:

    If no folder name is provided, a folder named General is automatically created.

  16. Click the Options tab.
  17. Configure Step Options as necessary.
    • Manual—Run the step manually.
      • Optional—Allow the step to be finished without being run.
    • Automatic—Run the step as soon as it becomes active.
      Note:

      If your workflow diagram is configured to automatically run a sequence of steps that includes the Evaluate Data Quality or the Run GP Service step, steps that attempt to run after the user token that started the sequence of steps expires will not run automatically. You must have a license for the ArcGIS Workflow Manager Server Advanced role to continue running the additional automated steps without manual intervention.

    • Run on a Schedule—Run the step according to a schedule you set.

      Learn more about scheduling options

  18. Optionally, provide help text for the step in the Step Help text box.

    You can also use the following example to display a dynamic value using ArcGIS Arcade expressions:

    
    'For further assistance, please contact ' + jobCreator($job) + '.'
  19. Optionally, click the Style tab to change the shape and color of the step.
  20. Optionally, click the About tab and provide a description for the step in the Step Description text box.
    Note:

    The About tab also contains the step's ID that can be used with dynamic job properties to obtain a step's output.

Return value

When the step is completed, its return value is stored to indicate the result of the step. The return value can be immediately evaluated using paths to determine the next steps in the workflow. You can also retrieve the return value for completed steps throughout the workflow using ArcGIS Arcade expressions. The following table lists the step's return values:

Return valuesDescription

S000001

The step completed successfully.

F000001

The step failed to complete successfully.

Output value

When the step is completed, its output value is stored and can be used to determine the path the workflow follows or be used as inputs for other steps throughout the workflow. The following table shows the step's output value:

OutputDescriptionArcGIS Arcade expression syntax

<DerivedOutputParameterValue>

Returns the configured derived output value received from the tool.

jobOutputValue($job, '<step_id>','<derived_output_parameter_name>')

Note:

derived_output_parameter_name is an optional parameter. If a derived output parameter name is not provided, the first derived output value is returned.

Related topics