Issue with creating Standard logic app workflow using Visual Studio Code

George Cao 20 Reputation points
2024-11-19T01:03:48.5633333+00:00

Hi Team,

I am trying to set up a local development environment for Standard LogicApp workflows in Visual Studio Code, but I'm encountering a significant issue. It appears that the local environment doesn't work properly when a workflow contains both the "Execute JavaScript Code" and "Transform XML" actions.

  • When FUNCTIONS_WORKER_RUNTIME is set to "dotnet", the local environment does not pick up the WorkflowNodeWorker: JavaScriptTrigger function during run/debug. As a result, any workflow with the "Execute JavaScript Code" action fails because "the runtime node language worker cannot be found".

On the other hand, if FUNCTIONS_WORKER_RUNTIME is set to "node", a runtime error occurs, stating that the worker was unable to load the function XsltNetFxLanguageWorkerFunction due to an "Invalid or unexpected token" error.

This issue persists even though the recommended value for FUNCTIONS_WORKER_RUNTIME is "dotnet". Both the Extension bundle-based (Node.js) and NuGet package-based (.NET) project types exhibit the same problem

Below is my current local.settings.json

{

"IsEncrypted": false,

"Values": {

"AzureWebJobsStorage": "UseDevelopmentStorage=true",

"APP_KIND": "workflowapp",

"ProjectDirectoryPath": "c:\\repos\\fastwayCorp\\Las\\LogicApp\\Code",

"FUNCTIONS_WORKER_RUNTIME": "dotnet",

"WORKFLOWS_SUBSCRIPTION_ID": ""

}

}

Has anyone encountered this issue before or have suggestions for resolving it?

Many Thanks,

George

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,228 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 28,726 Reputation points Microsoft Employee
    2024-11-21T18:06:31.52+00:00

    Hi @George Cao

    Try adding APP_KIND to your local.settings.json. Set it to workflowApp that should alleviate this error. See Edit runtime and environment settings for Standard logic apps - Azure Logic Apps | Microsoft Learn for more details.

    0 comments No comments

Your answer

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