Why would I get : 'KeyError: ''name'''

Why would I get : ‘KeyError: ‘‘name’’’. Workflow is not having syntax errors and renders fine in editor as well.

Error message is not clear and not sure what to check in workflow.

root@c69a279297f9:/# st2 execution get 5ce3e874a0d1ee032f841efd
id: 5ce3e874a0d1ee032f841efd
action.ref: shigo.dc_fabric-module-insertion-parallel
parameters: 
  devices:
  - dev1
  - dev2
  expected_module_sku_in_graphs: 7500R2-36CQ-LC
  slot_number: '6'
status: failed (2s elapsed)
start_timestamp: Tue, 21 May 2019 12:00:52 UTC
end_timestamp: Tue, 21 May 2019 12:00:54 UTC
result: 
  errors:
  - message: 'KeyError: ''name'''
    task_id: put_device_in_production
    type: error
  - message: 'KeyError: ''name'''
    task_id: run_safety_check_service_post
    type: error
  output: null

Can you post your workflow definition file here? Someone can then see and point out anything obvious then

Just for the records:

This was because I had defined task transition in a unexpected way.

Wrong/problem:

  run_safety_check_service_post_retry:
action: core.ask
input:
  ttl: 100000
  schema:
    type: object
    properties:
      retry:
        description: "Test..."
        type: boolean
        required: True
      approved_by:
        description: "Test..."
        type: string
        required: True
next:
  - when: <% succeeded() %>
    do: run_safety_check_service_post

After fixes : (see changes to the next declaration)

  run_safety_check_service_post_retry:
action: core.ask
input:
  ttl: 0
  schema:
    type: object
    properties:
      retry:
        description: "Test.."
        type: boolean
        required: True
      approved_by:
        description: "Test.."
        type: string
        required: True
next:
  - when: <% task(run_safety_check_service_post_retry).result.response.retry = true %>
    do: run_safety_check_service_post 
  - when: <% task(run_safety_check_service_post_retry).result.response.retry = false %>
    do: run_safety_check_service_post_retry