LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

Workflow validation fails for valid managed API connector

Open andrew-eldridge opened this issue 4 months ago • 2 comments

Severity

P4 - Low (Cosmetic/minor inconvenience)

Describe the Bug with repro steps

Expected behavior:

  • Saving workflow after adding valid managed API connection should not produce error

Actual behavior:

  • Saving workflow after adding valid managed API connection gives the attached error for invalid connectionRuntimeUrl

Steps to reproduce:

  1. Create workflow in portal with just HTTP trigger
  2. Download app content
  3. Import project to workspace with "cloud to local" feature
  4. Open designer, add "Send an email (V2)" Office 365 Outlook managed API connection action (valid connection)
  5. Save workflow
  6. Error window with Workflow validation failed: The API connection reference 'office365' is missing a required property 'connectionRuntimeUrl'. appears

What type of Logic App Is this happening in?

Standard (VSCode)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows

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#",
        "contentVersion": "1.0.0.0",
        "actions": {
            "Send_an_email_(V2)": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "referenceName": "office365"
                        }
                    },
                    "method": "post",
                    "body": {
                        "To": "[email protected]",
                        "Subject": "test",
                        "Body": "<p class=\"editor-paragraph\">test</p>",
                        "Importance": "Normal"
                    },
                    "path": "/v2/Mail"
                },
                "runAfter": {}
            }
        },
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

Image

Environment

  • VS Code version: 5.130.11
  • Functions extension version: 1.131.9

Additional context

No response

andrew-eldridge avatar Aug 28 '25 16:08 andrew-eldridge

@JoaquimMalcampo in this scenario I'm using both c2l and validate api when updating the workflow. Can you look into it?

andrew-eldridge avatar Aug 28 '25 16:08 andrew-eldridge

I'm running into this same error in the Azure Portal when switching to 'Code View' and hitting save, this seems to happen if an API connection used by the workflow is configured to use @appsettings(...) for the ConnectionRuntimeUrl.

EDIT: Making -any- change, even in designer mode, now prevents me from saving the workflow due to this validation error. The API connection works just fine at runtime, it only seems to fail the validation step during save.

bengavin avatar Oct 21 '25 18:10 bengavin