Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue during workflow deployment #6254

Open
ashriva1987 opened this issue Dec 12, 2024 · 11 comments
Open

Getting issue during workflow deployment #6254

ashriva1987 opened this issue Dec 12, 2024 · 11 comments

Comments

@ashriva1987
Copy link

ashriva1987 commented Dec 12, 2024

Does this occur consistently?

Repro steps:

1.

2.

Action: azureLogicAppsStandard.deploy

Error type: AggregateAuthenticationError

Error Message: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit redacted:url

Version: 4.107.4

OS: win32

OS Release: 10.0.22631

Product: Visual Studio Code

Product Version: 1.96.0

Language: en

Call Stack¨NBSP;

@takyyon
Copy link
Contributor

takyyon commented Dec 12, 2024

Can you add some repro steps, your workflow json and any other information which will help us debug this better please?

Copy link

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

@ccastrotrejo
Copy link
Contributor

Hi @ashriva1987 this might be related to #6149. There is a private vsix at the last comment, is there any chance you can download, install it and give it a try?

@ccastrotrejo ccastrotrejo self-assigned this Dec 16, 2024
@github-actions github-actions bot removed the stale label Dec 17, 2024
Copy link

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

@github-actions github-actions bot added the stale label Dec 20, 2024
@ashriva1987
Copy link
Author

Hi Team,

I am using bicep template for creating logic apps and also for creating standard logic app workflow. I have installed the extension in VS code for seeing the designer view. but its not loading.

Thanks

@github-actions github-actions bot removed the stale label Dec 20, 2024
@ccastrotrejo
Copy link
Contributor

Hi @ashriva1987 thanks for raising this issue. Could you please share the whole structure of the worklow that was created using your bicep template?

@ashriva1987
Copy link
Author

ashriva1987 commented Dec 23, 2024

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Abandon_the_message": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"topicName": "test",
"subscriptionName": "@parameters('intsmrt')['subscriptionName']",
"lockToken": "@triggerBody()?['lockToken']"
},
"serviceProviderConfiguration": {
"connectionName": "serviceBus",
"operationId": "abandonTopicMessageV2",
"serviceProviderId": "/serviceProviders/serviceBus"
}
},
"runAfter": {
"HTTP-_Send_Create_Order_Request_to": [
"FAILED",
"TIMEDOUT"
]
}
},
"Complete_the_message": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"topicName": "test",
"subscriptionName": "@parameters('intsmrt')['subscriptionName']",
"lockToken": "@triggerBody()?['lockToken']"
},
"serviceProviderConfiguration": {
"connectionName": "serviceBus",
"operationId": "completeTopicMessageV2",
"serviceProviderId": "/serviceProviders/serviceBus"
}
},
"runAfter": {
"HTTP-_Send_Create_Order_Request_to": [
"SUCCEEDED"
]
}
},
"HTTP-_Send_Create_Order_Request_to": {
"type": "Http",
"inputs": {
"uri": "@{parameters('intsmrt')['PostApi']}",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "@{parameters('env')['subscriptionKey']}"
},
"body": "@Body('Transform_JSON_To_JSON')",
"retryPolicy": {
"type": "none"
}
},
"runAfter": {
"Transform_JSON_To_JSON": [
"SUCCEEDED"
]
}
},
"Transform_JSON_To_JSON": {
"type": "Liquid",
"kind": "JsonToJson",
"inputs": {
"content": "@JSON(variables('message'))",
"map": {
"source": "LogicApp",
"name": "INTSMRT3.liquid"
}
},
"runAfter": {
"Initialize_variable_message": [
"SUCCEEDED"
]
}
},
"Initialize_variable_message": {
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "message",
"type": "string",
"value": "@{string(triggerBody()?['contentData'])}"
}
]
},
"runAfter": {}
},
"Send_Send_Event": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"eventHubName": "message-logs",
"eventData": {
"contentData": {
"application": "profio",
"clientTrackingId": "@{triggerBody()?['CorrelationId']}",
"content": "@{base64(take(string(variables('message')),100000))}",
"event": "send",
"messageType": "CreateOrder",
"tags": [],
"trackedProperties": {
"erpAccountId": "@{triggerBody()?['userProperties']['CustomerNo']}",
"documentReferenceNumber": "@{body('HTTP-_Send_Create_Order_Request_to')?['order']['ordernumber']}"
},
"workflow": "@{workflow()}"
}
}
},
"serviceProviderConfiguration": {
"connectionName": "eventHub",
"operationId": "sendEvent",
"serviceProviderId": "/serviceProviders/eventHub"
}
},
"runAfter": {
"HTTP-_Send_Create_Order_Request_to": [
"SUCCEEDED"
]
}
},
"Send_Process_Event": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"eventHubName": "message-logs",
"eventData": {
"contentData": {
"application": "test",
"clientTrackingId": "@{triggerBody()?['CorrelationId']}",
"content": "@{base64(take(string(triggerBody()?['contentData']),100000))}",
"event": "process",
"messageType": "CreateOrder",
"tags": [],
"trackedProperties": {},
"workflow": "@{workflow()}"
}
}
},
"serviceProviderConfiguration": {
"connectionName": "eventHub",
"operationId": "sendEvent",
"serviceProviderId": "/serviceProviders/eventHub"
}
},
"runAfter": {}
},
"Compose": {
"type": "Compose",
"inputs": {
"messageId": "@{triggerBody()?['messageId']}",
"timestamp": "@{triggerBody()?['scheduledEnqueueTimeUtc']}",
"sourceSystem": "@{triggerBody()?['userProperties']['erp']}",
"destinationSystem": "@{triggerBody()?['userProperties']['orderSource']}",
"messageType": "notification",
"version": "1.0",
"correlationId": "@{triggerBody()?['correlationId']}",
"priority": "HIGH",
"metadata": {
"transactionId": "",
"additionalInfo": ""
},
"documentReferenceNumber": "@{body('HTTP-_Send_Create_Order_Request_to')?['order']['ordernumber']}",
"documentType": "EXTSALORD",
"erpDeliverySequence": "@{triggerBody()?['userProperties']['erpDeliverySequence']}",
"erpAccountId": "@{triggerBody()?['userProperties']['CustomerNo']}",
"erpCompanyCode": "@{triggerBody()?['userProperties']['CompanyCode']}",
"status": "@{if(equals(string(outputs('HTTP-_Send_Create_Order_Request_to')?['statusCode']),'200'),'Created','Failed')}",
"statusDescription": "",
"encodedContent": "@{if(equals(string(outputs('HTTP-_Send_Create_Order_Request_to')?['statusCode']),'200'),base64(body('HTTP-_Send_Create_Order_Request_to')?['order']),join(array(body('HTTP-_Send_Create_Order_Request_to')?['errors']),'|'))}",
"errorDateTime": "@{outputs('HTTP-_Send_Create_Order_Request_to')?['headers']['Date']}",
"payload": "@triggerBody()?['contentData']"
},
"runAfter": {
"Send_Send_Event": [
"SUCCEEDED"
]
}
},
"Transform_Message_Confirmation": {
"type": "Liquid",
"kind": "JsonToJson",
"inputs": {
"content": "@outputs('Compose')",
"map": {
"source": "LogicApp",
"name": "INTSMRT.liquid"
}
},
"runAfter": {
"Compose": [
"SUCCEEDED"
]
}
},
"Lookup_Orders_Table": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"tableName": "Orders",
"partitionKey": "@Trim(xpath(xml(variables('xmlMessage')), 'string(//*[local-name()="sop_company_1"])'))",
"rowKey": "key"
},
"serviceProviderConfiguration": {
"connectionName": "azureTables-1",
"operationId": "getEntity",
"serviceProviderId": "/serviceProviders/azureTables"
}
},
"runAfter": {
"Transform_Message_Confirmation": [
"SUCCEEDED"
]
}
},
"HTTP-Send_to_Deliver_Notification": {
"type": "Http",
"inputs": {
"uri": "@concat(parameters('intsmrt')['test'])",
"method": "POST",
"headers": {
"Ocp-Apim-Subscription-Key": "@{parameters('intsmrt')['key']}",
"Callback-Url": "test.com",
"Order-Source": "@{triggerBody()?['userProperties']['orderSource']}"
},
"body": "@Body('Transform_Message_Confirmation')"
},
"runAfter": {
"Transform_Message_Confirmation": [
"SUCCEEDED"
]
}
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"When_a_message_is_received_in_a_topic_subscription
(peek-lock)": {
"type": "ServiceProvider",
"inputs": {
"topicName": "test",
"subscriptionName": "@{parameters('intsmrt')['subscriptionName']}",
"maxMessageBatchSize": 2,
"isSessionsEnabled": false
},
"runtimeConfiguration": {
"concurrency": {
"runs": 5,
"maximumWaitingRuns": 5
}
},
"splitOn": "@triggerOutputs()?['body']",
"splitOnConfiguration": {
"correlation": {
"clientTrackingId": "@triggerBody()['correlationId']"
}
}
}
}
},
"kind": "Stateful"
}

@ashriva1987
Copy link
Author

I am getting below error while try to open logic app workflow in designer mode.

Azure Functions Core Tools
Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)
Function Runtime Version: 4.27.5.21554

Value cannot be null. (Parameter 'provider')
[2024-12-23T10:24:44.849Z] Host startup operation has been canceled
[2024-12-23T10:24:53.325Z] A host error has occurred during startup operation '830d98d0-e463-4dd4-8264-44e246244834'.
[2024-12-23T10:24:53.326Z] Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').
Value cannot be null. (Parameter 'provider')
[2024-12-23T10:24:59.027Z] Host startup operation has been canceled
3:59:40 PM: Error: connect ECONNREFUSED 127.0.0.1:8000
4:03:23 PM: Error: connect ECONNREFUSED 127.0.0.1:8000

@ccastrotrejo
Copy link
Contributor

Hi @ashriva1987 so the error above usually comes when opening the designer. I know you stated that the issue came up when deploying it, but is this the case for when opening the designer?

  • Usually this error [2024-12-23T10:24:53.326Z] Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString'). propmpts when there is no azurite or azure storage account running. Do you have it?
  • I copy/paste your workflow structure, and there were some errors on it. There were some missing parameters in the Abandon the message and Complete the message. I assume this is just because you pasted your workflow here, but just double checking, is your workflow missing those?

Copy link

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

@github-actions github-actions bot added the stale label Dec 26, 2024
@Gokula2010
Copy link

Gokula2010 commented Dec 30, 2024

I tested with a private fix from @ccastrotrejo and now I can able to deploy the logic app without the above issue.

However, facing some unseen issues where the logic app workflow doesn't show the essential details like workflow status, workflow URL, and so on. Not sure whether the issue is with the logic app tool or an issue in the Azure portal that doesn't show the details.

With this, We aren't able to manually run the workflow which was developed and deployed from the Logic App tool from VSCode whereas I can able to see all the essential details of the workflow which was created from the Azure portal.

@github-actions github-actions bot removed the stale label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants