Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
74 stars 81 forks source link

It can deploy the illegal code via VSCode without validation error. #5666

Open nobuko-yamada opened 5 days ago

nobuko-yamada commented 5 days ago

Describe the Bug with repro steps

It isn't efficient.

For example, we can deploy the code unexpectedly like below including terminate action within ForEach.

image

Only after the opening from AzurePortal, we can find the validation error of the code.

image

What type of Logic App Is this happening in?

Standard (VSCode)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

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

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "For_each": {
                "type": "Foreach",
                "foreach": "@range(0,3)",
                "actions": {
                    "Terminate": {
                        "type": "Terminate",
                        "inputs": {
                            "runStatus": "Failed",
                            "runError": {
                                "code": "9",
                                "message": "error"
                            }
                        }
                    }
                },
                "runAfter": {}
            }
        },
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "parameters": {}
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Browser

via VSCode.

Additional context

No response

nobuko-yamada commented 3 days ago

We can refer:
Do not allow to save if there are illegal steps on a workflow. · Issue #984 · Azure/logicapps (github.com)