Designer throwing an exception on accessing function metadata
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:
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='
Surprisingly:
- 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?
- 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
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
funcprocess on your task manager and then execute the following command in theC:\Users\smoukhnitski\.azurelogicapps\dependencies\FuncCoreTools\func --verbosein 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.
@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?
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