Logic App Designer: Save button silently fails when workflow contains validation errors

Aperta
#9,659 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, react, typescript

Direzione di ricerca

Start by tracing the Logic App Designer's Save action in the VS Code extension and how it handles workflow validation errors. Reproduce with an invalid action, then inspect the save and validation paths to find why changes are not written or an error is not shown. Done means work in progress is saved, or the user gets clear feedback and the unsaved changes remain apparent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

VSCode
Severity

P2 - High (Major functionality broken)

Describe the Bug with repro steps

Summary

When editing a workflow in the Logic App Designer in VS Code, clicking Save does not persist changes to disk if the workflow contains an invalid action (displayed with a red validation icon). The user receives no feedback that the save operation has failed, which can lead to accidental loss of work.


Expected Behavior

After modifying a workflow in the Logic App Designer:

  1. The user clicks the Save button.
  2. The workflow definition is saved to the corresponding file on disk.
  3. If the workflow is invalid and cannot be saved, the user is explicitly informed through a visible error message explaining:
    • Why the save failed.
    • Which validation errors must be resolved.

Actual Behavior

After modifying a workflow in the Logic App Designer:

  1. The user clicks the Save button.
  2. The workflow is not saved to disk.
  3. No error message, warning, or notification is displayed.
  4. The user may assume the save operation succeeded.
  5. If the designer is closed, all unsaved changes are lost.

Steps to Reproduce

  1. Open a workflow in the Logic App Designer within VS Code.
  2. Modify the workflow.
  3. Leave at least one action in an invalid state (indicated by a red exclamation mark / validation error).
  4. Click the Save button.
  5. Verify that the workflow file on disk has not been updated.

Impact

This behavior is highly confusing because:

  • The Save button appears to perform the save operation.
  • No feedback is provided when saving fails.
  • Users can easily lose work by closing the editor under the assumption that changes were saved.
  • The root cause (workflow validation failure) is not communicated.

The issue becomes particularly problematic during iterative development, where workflows are frequently saved while still in an incomplete or temporarily invalid state.

Proposed Solution

Option 1 (Preferred)

Allow workflows to be saved regardless of validation status.

  • Save should persist the workflow definition to disk.
  • Validation errors should continue to be displayed in the designer.
  • Deployment, publishing, or execution can remain blocked until the workflow becomes valid.
Option 2

Keep validation as a prerequisite for saving, but provide explicit feedback.

  • Display a clear error message when Save is attempted.
  • Explain that the workflow cannot be saved because it contains validation errors.
  • Highlight the actions responsible for the validation failure.
  • Clearly indicate that there are still unsaved changes.

- Users should generally be allowed to save work-in-progress, even when it is not yet valid for execution.

What type of Logic App Is this happening in?

Logic App (Standard)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows 11

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Screenshots or Videos

No response

Environment

VS Code 1.141.0
Extension: ms-azuretools.vscode-azurelogicapps Azure Logic Apps (Standard)
Logic Apps Designer 5.185.10 (2025-10-17)

Additional context

No response

Lingua principale
TypeScript
Stelle
114
Fork
115
Merge medio
1g 3h
PR unite (30g)
40

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/LogicAppsUX

Tutte le issue di Azure/LogicAppsUX

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.