Workflows] [YAML editor] unexpected YAML editor error `expected number, received string` for some numeric step values
Author: andrew-goldsteinCreated Sep 17, 2026Updated Sep 17, 2026
LabelsbugTeam:One Workflow
[Workflows] [YAML editor] unexpected YAML editor error expected number, received string for some numeric step values
The Workflows YAML editor displays an unexpected error expected number, received string for some numeric step values, as illustrated by the following screenshot:
Steps to reproduce:
- Open Workflows and create a workflow with this YAML:
name: Editor type investigation
enabled: true
triggers:
- type: manual
outputs:
- name: count
type: number
steps:
- name: set_count
type: data.set
with:
n: 7
- name: return
type: workflow.output
with:
count: "${{ steps.set_count.output.n }}"- Open the YAML editor and wait for validation.
Expected result
- No type error on
count. A Liquid template cannot be given a static type at edit time, so it should be skipped the same way step-property validation skipsisTemplateReferencevalues. - A literal
count: 42should still type-check. - At runtime,
${{ }}still emits a number and output validation still accepts it.
Actual results
The
countline is underlined, thereturnstep is marked “has errors”, and the problems panel shows:"count": expected number, received string(invalidWorkflowOutput, Ln 17)
- The details of the error are displayed in the screenshot below:
Kibana version:
main / v9.6.0
Original install method (e.g. download page, yum, from source, etc.):
From source
Source: elastic/kibana