Logic App Run history error - API connection action "Unable to initialize operation"
- Dominant language
- TypeScript
- Stars
- 111
- Forks
- 109
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 20
Description
### Describe the Bug with repro steps
1. Create a logic app consumption with API connection actions.
2. Add new API connection for this action. Now we have two API connections: (A) and (B).
3. Run logic app consumption with API connection (A), go to designer and change connection to API connection (B).
4. Now when you check the run history, it will not show you the action input or output, but only error: "Unable to initialize operation".
5. If you change the API connection back to (A), the run history became normal.
6. We don't have this issue with old designer (aka.ms/lafallback)
![Image]()
### What type of Logic App Is this happening in?
Consumption (Portal)
### 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
```json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"When_a_HTTP_request_is_received": {
"type": "Request",
"kind": "Http"
}
},
"actions": {
"Invoke_an_HTTP_request": {
"runAfter": {},
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['webcontents-1']['connectionId']"
}
},
"method": "post",
"body": {
"method": "PATCH",
"url": "https://graph.microsoft.com/beta/users/me",
"body": "@base64('{\"accountEnabled\":\"true\"}')"
},
"path": "/codeless/InvokeHttp"
}
}
},
"outputs": {},
"parameters": {
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"value": {
"webcontents-1": {
"id": "/subscriptions/xxxxxxxxx/providers/Microsoft.Web/locations/australiaeast/managedApis/webcontents",
"connectionId": "/subscriptions/xxxxxxxxx/resourceGroups/myrg/providers/Microsoft.Web/connections/webcontents-2",
"connectionName": "webcontents-2"
}
}
}
}
}
```
### Screenshots or Videos
![Image]()
### Browser
Microsoft Edge InPrivate
### Additional context
*No response*
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.