Workflow validation fails for valid managed API connector
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:
- Create workflow in portal with just HTTP trigger
- Download app content
- Import project to workspace with "cloud to local" feature
- Open designer, add "Send an email (V2)" Office 365 Outlook managed API connection action (valid connection)
- Save workflow
- 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
Environment
- VS Code version: 5.130.11
- Functions extension version: 1.131.9
Additional context
No response
@JoaquimMalcampo in this scenario I'm using both c2l and validate api when updating the workflow. Can you look into it?
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.