Azure / LogicAppsUX

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

Steps that make use of API Connections show "Unable to initialize operation" #5963

Open las3r opened 1 week ago

las3r commented 1 week ago

Describe the Bug with repro steps

I have a couple of steps in my logic app that are using API Connections (Microsoft.Web/connections):

1) Keyvault connection (get secret)

2) Event grid connection (trigger for logic apps)

In the old designer these would load, and I would be able to change the steps. In the new designer every step that utilizes an API connection shows the following:

Event hub trigger:

Image

Keyvault "get secret" step:

Image

The request I see it making a few calls when the page loads to:

GET https://management.azure.com/subscriptions/<subscription>/providers/Microsoft.Web/locations/westeurope/apiOperations?%24top=5000&%24skiptoken=10000&%24filter=type%20eq%20%27Microsoft.Web%2flocations%2fmanagedApis%2fapiOperations%27%20and%20properties%2fintegrationServiceEnvironmentResourceId%20eq%20null&api-version=2018-07-01-preview

The response to this call is:

{ 
value: []
}

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

"When_a_CustomerCaseUpdate_event_occurs": {

"splitOn": "@triggerBody()",

"splitOnConfiguration": {

"correlation": {

"clientTrackingId": "@coalesce(triggerBody()?['id'], guid())"

}

},

"type": "ApiConnectionWebhook",

"inputs": {

"body": {

"properties": {

"destination": {

"endpointType": "webhook",

"properties": {

"endpointUrl": "@{listCallbackUrl()}"

}

},

"filter": {

"includedEventTypes": [

"CustomerCase"

]

},

"topic": "@concat(parameters('subscriptionId'), '/resourceGroups/', parameters('infra').environment.resourceGroup, '/providers/Microsoft.EventGrid/domains/', parameters('infra').eventGrid.name)"

}

},

"host": {

"connection": {

"name": "@parameters('$connections')['azureeventgrid']['connectionId']"

}

},

"path": "@concat(parameters('subscriptionId'), '/providers/Microsoft.EventGrid.Domains/resource/eventSubscriptions')",

"queries": {

"x-ms-api-version": "2017-09-15-preview"

}

}

}

Screenshots or Videos

No response

Browser

Edge, Chrome

Additional context

rllyy97 commented 1 week ago

Hi @las3r, thank you for reporting this issue, we have received a few reports of this issue and have created a parent ticket here that you can use to track progress: https://github.com/Azure/LogicAppsUX/issues/5977

ccastrotrejo commented 16 hours ago

Hi @las3r I wasn't able to repro it yet.

Usually this error "message": "Unable to initialize operation details for swagger based operation - When_a_CustomerCaseCommentUpdate_event_occurs. Error details - Operation Id cannot be determined from definition and swagger", gets thrown when there isn't a match between the action id and the actions we get from the connector swagger.