LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

Designer throwing an exception on accessing function metadata

Open SergeiMou opened this issue 3 months ago • 3 comments

Severity

P2 - High (Major functionality broken)

Describe the Bug with repro steps

Designer chokes on one of my projects containing local functions. This is what it looks like in the designer:

Image

And this is the exception: 10:35:00 AM: Running command: "C:\Users\smoukhnitski.azurelogicapps\dependencies\FuncCoreTools\func GetExtensionBundlePath"... 10:35:01 AM: Extension bundle path: "C:\Users\smoukhnitski.azure-functions-core-tools\Functions\ExtensionBundles"... [2025-09-22T16:35:02.410Z] Host lock lease acquired by instance ID '0000000000000000000000006DA7418D'. [2025-09-22T16:35:02.986Z] Error message: correlationId='68eb945b-3c67-45e0-9e26-c3b20e3d6ad3', operationName='ErrorResponseHandling.GetErrorResponseMessage.POST/RUNTIME/WORKFLOW/MANAGEMENT/LOCALFUNCTIONOPERATION/GETOUTPUTSCHEMA/', message='Http request failed with unhandled exception of type 'NullReferenceException' and message: 'System.NullReferenceException: Object reference not set to an instance of an object. [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Data.Engines.BuiltInOperationDynamicRequestEngine.GetOutput(IFlowConfigurationHolder configHolder, ServiceProviderDynamicInvokeInputDefinition requestDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.InvokeBuiltInDynamicRequest(String apiName, String operationName, ServiceProviderDynamicInvokeInputDefinition requestInputDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.BuiltInDynamicInvoke(String apiName, String apiOperationName, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.BaseFlowExtensionRouteInitializer.Invoke(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionHttpRequestHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionAuthorizationHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionErrorResponseHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken)'.', exception='System.NullReferenceException: Object reference not set to an instance of an object. [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Data.Engines.BuiltInOperationDynamicRequestEngine.GetOutput(IFlowConfigurationHolder configHolder, ServiceProviderDynamicInvokeInputDefinition requestDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:02.987Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.InvokeBuiltInDynamicRequest(String apiName, String operationName, ServiceProviderDynamicInvokeInputDefinition requestInputDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:02.988Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.BuiltInDynamicInvoke(String apiName, String apiOperationName, CancellationToken cancellationToken) [2025-09-22T16:35:02.988Z] at Microsoft.Azure.Workflows.Web.BaseFlowExtensionRouteInitializer.Invoke(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.988Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionHttpRequestHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.988Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionAuthorizationHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:02.988Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionErrorResponseHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken)', organizationId='', activityVector='IN.00', additionalProperties='{"ParentActivityId":"00-31a6afb45c8a9c620c9f16d7ea902719-0633f8e67cab4413-00"}', extensionVersion='1.138.54.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='68eb945b-3c67-45e0-9e26-c3b20e3d6ad3'. [2025-09-22T16:35:02.990Z] Incoming HTTP request ends with server failure: correlationId='68eb945b-3c67-45e0-9e26-c3b20e3d6ad3', authorizationSource='Management', authorizationAction='', operationName='POST/API/MANAGEMENT/OPERATIONGROUPS/OPERATIONS/DYNAMICINVOKE', httpMethod='POST', hostName='localhost', targetUri='http://localhost:8005/runtime/webhooks/workflow/api/management/operationGroups/localFunctionOperation/operations/getOutputSchema/dynamicInvoke?api-version=2018-11-01', userAgent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.104.1 Chrome/138.0.7204.235 Electron/37.3.1 Safari/537.36', clientRequestId='', clientSessionId='', clientIpAddress='', clientApplicationId='', apiVersion='2018-11-01', contentLength='-1', serviceRequestId=':68eb945b-3c67-45e0-9e26-c3b20e3d6ad3', durationInMilliseconds='28', httpStatusCode='500', exceptionMessage='', errorCode='', failureCause='Service', errorMessage='', referer='', commandName='', parameterSetName='', contentType='application/json; charset=utf-8', contentEncoding='', armServiceRequestId='', organizationId='', activityVector='IN', locale='en-US', additionalProperties='{"ParentActivityId":"00-31a6afb45c8a9c620c9f16d7ea902719-0633f8e67cab4413-00"}', targetResourceProvider='', targetResourceType='', extensionVersion='1.138.54.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='68eb945b-3c67-45e0-9e26-c3b20e3d6ad3'. [2025-09-22T16:35:03.071Z] Error message: correlationId='860a4f1d-b077-4874-838d-4e8fd0691ea5', operationName='ErrorResponseHandling.GetErrorResponseMessage.POST/RUNTIME/WORKFLOW/MANAGEMENT/LOCALFUNCTIONOPERATION/GETPARAMETERS/', message='Http request failed with unhandled exception of type 'NullReferenceException' and message: 'System.NullReferenceException: Object reference not set to an instance of an object. [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Data.Engines.BuiltInOperationDynamicRequestEngine.GetParametersDynamicList(IFlowConfigurationHolder configHolder, ServiceProviderDynamicInvokeInputDefinition requestDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.InvokeBuiltInDynamicRequest(String apiName, String operationName, ServiceProviderDynamicInvokeInputDefinition requestInputDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.BuiltInDynamicInvoke(String apiName, String apiOperationName, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.BaseFlowExtensionRouteInitializer.Invoke(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionHttpRequestHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionAuthorizationHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionErrorResponseHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken)'.', exception='System.NullReferenceException: Object reference not set to an instance of an object. [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Data.Engines.BuiltInOperationDynamicRequestEngine.GetParametersDynamicList(IFlowConfigurationHolder configHolder, ServiceProviderDynamicInvokeInputDefinition requestDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:03.071Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.InvokeBuiltInDynamicRequest(String apiName, String operationName, ServiceProviderDynamicInvokeInputDefinition requestInputDefinition, CancellationToken cancellationToken) [2025-09-22T16:35:03.072Z] at Microsoft.Azure.Workflows.Web.Controllers.EdgeDesignerApiController.BuiltInDynamicInvoke(String apiName, String apiOperationName, CancellationToken cancellationToken) [2025-09-22T16:35:03.072Z] at Microsoft.Azure.Workflows.Web.BaseFlowExtensionRouteInitializer.Invoke(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.072Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionHttpRequestHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.072Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionAuthorizationHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken) [2025-09-22T16:35:03.072Z] at Microsoft.Azure.Workflows.Web.Handlers.FlowExtensionErrorResponseHandler.HandleRequest(HttpRequestMessage request, CancellationToken cancellationToken)', organizationId='', activityVector='IN.00', additionalProperties='{"ParentActivityId":"00-836bb3724ac49ae03840f23eb589e267-9ecfbdf0c95d1b87-00"}', extensionVersion='1.138.54.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='860a4f1d-b077-4874-838d-4e8fd0691ea5'. [2025-09-22T16:35:03.072Z] Incoming HTTP request ends with server failure: correlationId='860a4f1d-b077-4874-838d-4e8fd0691ea5', authorizationSource='Management', authorizationAction='', operationName='POST/API/MANAGEMENT/OPERATIONGROUPS/OPERATIONS/DYNAMICINVOKE', httpMethod='POST', hostName='localhost', targetUri='http://localhost:8005/runtime/webhooks/workflow/api/management/operationGroups/localFunctionOperation/operations/getParameters/dynamicInvoke?api-version=2018-11-01', userAgent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.104.1 Chrome/138.0.7204.235 Electron/37.3.1 Safari/537.36', clientRequestId='', clientSessionId='', clientIpAddress='', clientApplicationId='', apiVersion='2018-11-01', contentLength='-1', serviceRequestId=':860a4f1d-b077-4874-838d-4e8fd0691ea5', durationInMilliseconds='3', httpStatusCode='500', exceptionMessage='', errorCode='', failureCause='Service', errorMessage='', referer='', commandName='', parameterSetName='', contentType='application/json; charset=utf-8', contentEncoding='', armServiceRequestId='', organizationId='', activityVector='IN', locale='en-US', additionalProperties='{"ParentActivityId":"00-836bb3724ac49ae03840f23eb589e267-9ecfbdf0c95d1b87-00"}', targetResourceProvider='', targetResourceType='', extensionVersion='1.138.54.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='860a4f1d-b077-4874-838d-4e8fd0691ea5'.

Surprisingly:

  1. On another dev vm with the same version of the extension and dependencies, I can open the very same project without issue. How can I turn it into an actionable item, is there an option to enable "verbose" logging so that the issue can be properly investigated?
  2. It is a design time issue. Th logic app behaves well at the runtime.

What type of Logic App Is this happening in?

Standard (VSCode)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON


Screenshots or Videos

No response

Environment

Edge, tried with different version of the extension, result was the same.,

Additional context

No response

SergeiMou avatar Sep 22 '25 16:09 SergeiMou

Hey @SergeiMou thanks for raising this issue and letting us know about it.

  • Yes, there is a verbose functionality for it. You would need to kill all the func process on your task manager and then execute the following command in the C:\Users\smoukhnitski\.azurelogicapps\dependencies\FuncCoreTools\func --verbose in your terminal
  • Yes, this issue its only affecting the design time. Runtime process runs on a different port. The fact that the runtime is running fine, means that the configuration of the project its fine.

ccastrotrejo avatar Oct 01 '25 16:10 ccastrotrejo

@SergeiMou by any chance do you see a folder named with the same name as the function you just created inside the libs/custom folder?

Image

ccastrotrejo avatar Oct 01 '25 18:10 ccastrotrejo

This looks similar to an issue that occurs when <logic-app-path> \lib\custom\<func-name>\function.json is missing like Carlos mentioned. It's possible the project is not being built or files are not being copied to logic app properly. Can you confirm whether your project file structure appears like the following @SergeiMou

Image

andrew-eldridge avatar Oct 02 '25 16:10 andrew-eldridge