UiPath Documentation
uipath-cli
2026.10
false
Guide de l'utilisateur de UiPath CLI

Débogage du flux uip maestro

Syntaxe et options pour `uip maestro flow debug`, qui charge un projet Flow local dans Studio Web et exécute une session de débogage côté serveur avec des mises à jour de statut diffusées.

uip maestro flow debug charge un projet Flow local dans Studio Web et exécute une session de Debug côté serveur, en streaming les mises à jour de statut par élément vers la console et en renvoyant un statut final.

Synthèse​

uip maestro flow debug <project-path>
               [--folder-id <id> | --folder-key <key> | --folder-path <path>]
               [--poll-interval <ms>] [--timeout <seconds>]
               [-i, --inputs <json>]
               [--entry-point <id>]
               [--attachment <name=path>]...
               [--summary]
               [--force]
               [--open-in-browser]
               [--login-validity <minutes>]
uip maestro flow debug <project-path>
               [--folder-id <id> | --folder-key <key> | --folder-path <path>]
               [--poll-interval <ms>] [--timeout <seconds>]
               [-i, --inputs <json>]
               [--entry-point <id>]
               [--attachment <name=path>]...
               [--summary]
               [--force]
               [--open-in-browser]
               [--login-validity <minutes>]

Nécessite uip login. Les options globales sont respectées. Les codes de sortie suivent le contrat standard.

Arguments​

  • <project-path> (obligatoire) : chemin d'accès au répertoire du projet Flow. Doit contenir une project.uiproj.

Options​

OptionDefaultDescription
--folder-id <id>Détecté automatiquementDossier Orchestrator (OrganizationUnitId), un entier positif. mutuellement exclusif avec --folder-key/--folder-path. Si aucun des trois n'est fourni, le dossier de la session de connexion actuelle est utilisé.
--folder-key <key>—Clé de dossier Orchestrator — résolue en l'ID de dossier par la CLI. Capture mutuellement exclusive avec --folder-id/--folder-path.
--folder-path <path>—Chemin du dossier Orchestrator, par exemple Shared/Sub — résolu en l'ID de dossier par la CLI. mutuellement exclusif avec --folder-id/--folder-key. Utilisez uip or folders list pour découvrir des clés/chemins valides.
--poll-interval <ms>2000Intervalle d’interrogation en millisecondes en attendant que Studio Web fasse progresser la session.
--timeout <seconds>Aucune limiteNombre maximal de secondes d’attente de la fin de l’exécution du débogage. Lorsqu'elle s'étend, la commande échoue avec ErrorCode: timeout et Retry: RetryLater, et Data transporte instanceId, jobKey, lastStatus et timeoutSeconds. L'exécution n'est pas arrêtée. N’a aucun effet sur un flux conversationnel transmis sans interrogation.
-i, --inputs <json>—Arguments d'entrée sous forme de chaîne JSON ou @path/to/file.json à lire dans un fichier.
--entry-point <id>Déclencheur par défautID de nœud de point d'entrée — un ID de nœud de déclencheur du fichier .flow . La valeur par défaut est le déclencheur marqué isDefaultEntryPoint, sinon le premier déclencheur. Un ID qui ne correspond à aucun déclencheur échoue avec le code de sortie 3.
--attachment <name=path>—Chargez un fichier local dans Orchestrator et liez-le en tant que variable d'entrée de type fichier. Répétable, par exemple --attachment file1=./resume.pdf. Remplace le même nom de variable s'il est également présent dans --inputs.
--summary—Renvoyez uniquement le statut d'exécution, les éléments qui ne sont pas terminés et les sorties déclarées du flux, au lieu de la sortie brute de chaque nœud. Reportez-vous à la section Sortie de résumé.
--force—Upload even when the Studio Web copy of the solution changed since this machine last uploaded it. Studio Web keeps the replaced copy as a restorable version. Refer to Studio Web edits.
--open-in-browser—Ouvrez l'URL de la session Studio Web dans un navigateur une fois disponible.
--login-validity <minutes>10Nombre minimum de minutes avant l’expiration du jeton pour déclencher une actualisation automatique.

Comportement​

  1. Valide la connexion et extrait l'organisation, le locataire, l'URL de base, le nom de l'organisation et le jeton d'authentification de la session.
  2. Actualise les ressources de la solution. Si le flux lie une ressource qui n'existe pas dans Orchestrator ou une connexion qui n'existe pas dans le catalogue de ressources, la commande échoue avant que tout ce soit téléchargé, répertorie les ressources manquantes et Instructions indique comment les lier. Un flux conversationnel est quand même téléchargé et transmis. Un nœud Data Fabric qui nomme une entité de la solution sans liaison d'entité échoue également la commande avant le téléchargement (code de sortie 3), avec Instructions nommant le nœud à configurer.
  3. Uploads the solution that holds the project to Studio Web under the target folder. The solution is the one whose .uipx file is in the project folder or in a folder above it. Before the upload, the command checks the Studio Web copy for newer edits. Refer to Studio Web edits. After the upload, it writes the solution ID that Studio Web assigned to SolutionId in the .uipx file, when the two differ, and reports the change in Data.LocalSolutionIdUpdated.
  4. Interrogation pour un statut final, extrayant des lignes de statut par élément comme:
    Status: InProgress (2/5 elements completed)
      v Node_1 [Completed]
      > Node_2 [InProgress]
      - Node_3 [NotStarted]
    Status: InProgress (2/5 elements completed)
      v Node_1 [Completed]
      > Node_2 [InProgress]
      - Node_3 [NotStarted]
    
    Une interrogation de statut qui échoue avec HTTP 403 ou une erreur 5xx est réessayée deux fois avant l'échec de la commande.
  5. En cas d'incident pendant l'exécution, génère une ligne d'avertissement.
  6. Quitte 0 si finalStatus est Completed ou Successful; 1 dans le cas contraire.

The command fails before the upload in these cases:

  • The .uipx file of the solution has no SolutionId or no project list. The command fails with Result: "ValidationError" and exit code 3.
  • The target folder is not your Personal Workspace. Studio Web starts a debug session only in the Personal Workspace, so the command fails with HTTP 403 and Instructions say to drop --folder-id, --folder-key, and --folder-path. To run in another folder, deploy the solution there and use uip maestro flow process run.

When Orchestrator reports that your user has no personal robot (HTTP 409, error code 1230), the command retries twice. It then fails with Result: "ConfigError", ErrorCode: configuration_error, and Retry: RetryWillNotFix.

Exemples​

# Debug a local project, auto-detect folder, default poll interval
uip maestro flow debug ./invoice-flow

# Debug against a specific folder with inline JSON inputs
uip maestro flow debug ./invoice-flow --folder-id 2553016 \
  --inputs '{"amount":100,"customer":"Acme"}'

# Debug with inputs from a file
uip maestro flow debug ./invoice-flow --inputs @inputs.json

# Slower polling for long-running flows
uip maestro flow debug ./invoice-flow --poll-interval 5000

# Start from a specific trigger and stop waiting after 10 minutes
uip maestro flow debug ./invoice-flow --entry-point trigger_2 --timeout 600

# Read only the verdict and the declared outputs
uip maestro flow debug ./invoice-flow --summary
# Debug a local project, auto-detect folder, default poll interval
uip maestro flow debug ./invoice-flow

# Debug against a specific folder with inline JSON inputs
uip maestro flow debug ./invoice-flow --folder-id 2553016 \
  --inputs '{"amount":100,"customer":"Acme"}'

# Debug with inputs from a file
uip maestro flow debug ./invoice-flow --inputs @inputs.json

# Slower polling for long-running flows
uip maestro flow debug ./invoice-flow --poll-interval 5000

# Start from a specific trigger and stop waiting after 10 minutes
uip maestro flow debug ./invoice-flow --entry-point trigger_2 --timeout 600

# Read only the verdict and the declared outputs
uip maestro flow debug ./invoice-flow --summary

Format des données (--sortie json)​

{
  "Code": "FlowDebug",
  "Data": {
    "jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "runId": "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Completed",
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
    "elementExecutions": [
      { "elementId": "Node_1", "status": "Completed" }
    ],
    "variables": {}
  }
}
{
  "Code": "FlowDebug",
  "Data": {
    "jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "runId": "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Completed",
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
    "elementExecutions": [
      { "elementId": "Node_1", "status": "Completed" }
    ],
    "variables": {}
  }
}

Ouvrez studioWebUrl dans un navigateur pour inspecter la session de manière interactive.

When the command changed SolutionId in the local .uipx file, Data also carries LocalSolutionIdUpdated: { Path, From, To }. The field is present on a failure that happens after the upload, and with --summary.

Timestamps that the service returns, such as startedTimeUtc and completedTimeUtc, have exactly three fractional digits.

Studio Web edits​

Each upload replaces the whole Studio Web copy of the solution with the local files. To protect edits made in Studio Web, the command records each upload in ~/.uipath/flow-debug/<solutionId>.json and compares that record with the time the Studio Web copy last changed.

CasRésultat
The Studio Web copy did not change since the last upload from this machine.The command uploads. No version is created.
The Studio Web copy changed since the last upload from this machine.The command fails with ErrorCode: confirmation_required and uploads nothing.
The Studio Web copy changed and --force is passed.The command uploads, and Studio Web keeps the replaced copy as a restorable version.
This machine has no record of an upload, or Studio Web does not report when the copy last changed.The command writes a warning to stderr and uploads, and Studio Web keeps the replaced copy as a restorable version. A flow with a connection resource takes this path on every run.
Studio Web cannot be asked when the copy last changed, for example on HTTP 403 or a timeout.The command fails and uploads nothing. ErrorCode follows the cause, and Data carries solutionId. --force skips the check.

The confirmation_required failure carries the details in Data:

{
  "Result": "Failure",
  "ErrorCode": "confirmation_required",
  "Retry": "RetryWillNotFix",
  "Data": {
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebModifiedAt": "2026-11-20T10:15:30.123Z",
    "lastUploadedAt": "2026-11-19T08:00:00.000Z"
  }
}
{
  "Result": "Failure",
  "ErrorCode": "confirmation_required",
  "Retry": "RetryWillNotFix",
  "Data": {
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebModifiedAt": "2026-11-20T10:15:30.123Z",
    "lastUploadedAt": "2026-11-19T08:00:00.000Z"
  }
}

To keep the Studio Web edits, download them with uip solution download <solutionId> --extract, merge them into the local files, and run the command again with --force.

An upload from another machine or from uip solution upload writes no record on this machine, so the next uip maestro flow debug treats it as a Studio Web edit.

Sortie de résumé​

Le résultat complet contient la sortie de chaque nœud à côté des sorties déclarées du flux, y compris les corps et les en-têtes de réponse HTTP entiers. Avec --summary, Data contient uniquement ce dont vous avez besoin pour juger l'exécution:

{
  "Code": "FlowDebug",
  "Data": {
    "finalStatus": "Completed",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "failed": [],
    "outputs": { "weatherVerdict": "warm office today" },
    "fullOutputPath": "/path/to/solution/.flow-debug/invoice-flow.json"
  }
}
{
  "Code": "FlowDebug",
  "Data": {
    "finalStatus": "Completed",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "failed": [],
    "outputs": { "weatherVerdict": "warm office today" },
    "fullOutputPath": "/path/to/solution/.flow-debug/invoice-flow.json"
  }
}
ChampDescription
failedLes exécutions d'éléments qui ne se sont pas terminées, comme { elementId, status }. Videz pour une exécution propre.
outputsLes variables de sortie déclarées du flux (out et inout), par ID. Absent lorsque les variables n'ont pas pu être lues. variablesError indique alors pourquoi, et les sorties sont inconnues, et non vides.
missingOutputsSorties déclarées que l'enregistrement de l'exécution n'a pas portées.
incidentsIncidents déclenchés lors de l'exécution, lorsqu'il y en a.
fullOutputPathL’endroit où le résultat complet a été écrit.
fullOutputErrorPourquoi le résultat complet n’a pas pu être écrit. Le résumé est toujours conservé.

Le résultat complet, ce que la commande imprime sans --summary , est écrit dans <solution>/.flow-debug/<project>.json, où <solution> est le dossier qui contient le fichier .uipx et <project> est le chemin de projet correspondant. Le fichier est remplacé à chaque exécution.

Le fichier contient des données de locataire, de sorte que la CLI écrit également .flow-debug/.gitignore avec *, et uip solution pack et uip solution upload ignorent le dossier.

Transfert du déclencheur conversationnel​

Un flux dont le point d'entrée est core.trigger.conversation ne peut être généré que par une interface utilisateur de chat — la CLI ne peut pas démarrer une session de débogage pour elle. Au lieu de cela, il charge le projet dans Studio Web et transmet:

{
  "Code": "FlowDebugStudioWebHandoff",
  "Data": {
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/a1b2c3d4?solutionId=e5f6a7b8",
    "handedOff": true
  }
}
{
  "Code": "FlowDebugStudioWebHandoff",
  "Data": {
    "solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/a1b2c3d4?solutionId=e5f6a7b8",
    "handedOff": true
  }
}

Aucun champ elementExecutions/finalStatus n’est présent, il n’y a rien qui a été exécuté, il n’y a donc rien à interroger. Transmettez --open-in-browser pour que la CLI ouvre automatiquement studioWebUrl.

Exécution défaillante — incidents en ligne​

Une exécution défaillante est renvoyée sous la forme d'une enveloppe Result: "Failure" (code de sortie 1), avec les détails de l'incident déjà incorporés dans Data.incidents — aucune commande de suivi n'est nécessaire pour voir ce qui a cassé:

{
  "Code": "FlowDebug",
  "Data": {
    "jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "runId": "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Faulted",
    "incidents": [
      {
        "incidentId": "inc-1",
        "elementId": "Node_3",
        "errorCode": "Process.UnhandledException",
        "errorMessage": "Object reference not set to an instance of an object."
      }
    ]
  }
}
{
  "Code": "FlowDebug",
  "Data": {
    "jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
    "runId": "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Faulted",
    "incidents": [
      {
        "incidentId": "inc-1",
        "elementId": "Node_3",
        "errorCode": "Process.UnhandledException",
        "errorMessage": "Object reference not set to an instance of an object."
      }
    ]
  }
}

Sur une exécution défaillante, l'erreur Instructions vous dirige vers uip maestro flow debug-instances incidents <instanceId> pour inspecter la charge utile backend brute. Reportez-vous à debug-instances pour cette surface de contrôle de niveau inférieur.

Voir également​

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour