When running vscode in debug mode, the @result(‘scope’) variable is hanging when trying to use it.

Bob Feller 41 Reputation points
2021-12-15T21:02:34.797+00:00

When running vscode in debug mode, the @result(‘scope’) variable is hanging when trying to use it.

Here’s the output from the Logic App debug run. Notice the set variable ResultScope never ends.
157987-capture1.png

When running from Azure after deploying, everything works as expected:
157938-capture2.png

Here's my code:
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Scope": {
"type": "Scope",
"actions": {
"Set_variable_Message": {
"type": "SetVariable",
"inputs": {
"name": "Message",
"value": "Test Message"
},
"runAfter": {}
}
},
"runAfter": {
"Initialize_variable_ResultScope": [
"Succeeded"
]
}
},
"Initialize_variable_ResultScope": {
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "ResultScope",
"type": "array"
}
]
},
"runAfter": {
"Initialize_variable_Message": [
"Succeeded"
]
}
},
"Initialize_variable_Message": {
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "Message",
"type": "string"
}
]
},
"runAfter": {}
},
"Set_variable_ResultScope": {
"type": "SetVariable",
"inputs": {
"name": "ResultScope",
"value": "@result('scope')"
},
"runAfter": {
"Scope": [
"Succeeded"
]
}
},
"Response": {
"type": "Response",
"kind": "http",
"inputs": {
"statusCode": 200,
"body": "@variables('ResultScope')"
},
"runAfter": {
"Set_variable_ResultScope": [
"Succeeded"
]
}
}
},
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"method": "GET"
}
}
},
"contentVersion": "1.0.0.0",
"outputs": {}
},
"kind": "Stateful"
}

Thank you, Bob Feller

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bob Feller 41 Reputation points
    2022-02-09T23:21:41.067+00:00

    Update: I opened a ticket with Microsoft, and they were able to reproduce the problem. This is a bug in VSCode and has been sent to PG group. Estimated fix time is 2 months.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.