You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Logic Apps Standard中Servicebus队列触发器无法使用Content或Message ID属性

Logic Apps Standard调用Service Bus触发器后HTTP操作报错问题

环境与流程

  • 开发工具:Visual Studio Code
  • 使用服务:Logic Apps Standard
  • 工作流配置:
    • 触发器:Service Bus(应用内)「当队列中有消息可用(peek-lock)」
    • 后续动作:HTTP(调用Beeceptor用于消息调试)

问题现象

在HTTP操作中直接引用Content或Message ID属性时,触发模板语言表达式处理错误,错误界面如下:
使用Content属性时的错误
使用Message ID属性时会出现完全一致的错误。

错误日志

[2024-04-07T11:11:32.281Z] Executing 'Functions.WorkflowDispatcher' (Reason='(null)', Id=dd3e3863-a60d-4e5d-a314-e644aef00909)
[2024-04-07T11:11:32.471Z] Executed 'Functions.WorkflowDispatcher' (Failed, Id=dd3e3863-a60d-4e5d-a314-e644aef00909, Duration=187ms)
[2024-04-07T11:11:32.474Z] System.Private.CoreLib: Exception while executing function: Functions.WorkflowDispatcher. Microsoft.Azure.Workflows.Worker.Common: Unable to process template language expressions in action 'HTTP' inputs at line '0' and column '0'. Current flow run operation failed. Exception: '***sanitized***'.
[2024-04-07T11:11:32.678Z] Executed 'Functions.queueconsumer' (Failed, Id=f9912ddf-d1ef-4b5e-8d69-7359444a766c, Duration=6192ms)
[2024-04-07T11:11:32.680Z] System.Private.CoreLib: Exception while executing function: Functions.queueconsumer. Microsoft.Azure.Workflows.Web.Edge: The flow run '08584891185989659111249140401CU00' does not complete successfully. Run status: 'Failed'. Run error: 'An action failed. No dependent actions succeeded.'.

正常运行场景

当HTTP操作中使用Body属性时,流程可正常执行,获取到的消息内容如下:

[{"contentData":"test","userProperties":{"machineName":"xxxxxxxxx","userName":"xxxxx"},"messageId":"439de125-ec06-45c2-9bfa-14a377322cbf","label":"Service Bus Explorer","scheduledEnqueueTimeUtc":"1-1-1970 00:00:00","timeToLive":"14.00:00:00","deliveryCount":1,"enqueuedSequenceNumber":0,"enqueuedTimeUtc":"2024-04-07T11:02:37.774Z","lockedUntilUtc":"2024-04-07T11:03:50.4Z","lockToken":"3bb0c391-d873-4127-9e16-6d43e1aa1168","sequenceNumber":21}]

已尝试的解决方法

尝试使用表达式 json(triggerBody()?['contentData']) 来解析内容,但仍然触发与直接使用Content/Message ID属性时相同的错误。


内容的提问来源于stack exchange,提问作者BHodzic

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 15:07:34