# How to adjust an awx workflow survey via ansible script

**URL:** <https://forum.ansible.com/t/how-to-adjust-an-awx-workflow-survey-via-ansible-script/41696>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [April 12, 2025, 9:20pm UTC](https://forum.ansible.com/t/how-to-adjust-an-awx-workflow-survey-via-ansible-script/41696 "2025-04-12T21:20:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Mercaldi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matthew_mercaldi/32/8123_2.png) [@Matthew\_Mercaldi](https://forum.ansible.com/u/Matthew_Mercaldi)\
**Post date:** [April 12, 2025, 9:20pm UTC](https://forum.ansible.com/t/how-to-adjust-an-awx-workflow-survey-via-ansible-script/41696/1 "2025-04-12T21:20:44Z")

</div>

I am trying to create an ansible template that will update a survey in a workflow regarding my msp’s meraki orgs and networkids. When I put in ansilbe code:

```auto
   - name: update survey choices
     awx.awx.workflow_job_template:
       controller_host: "{{ awx_host }}"
       controller_oauthtoken: "{{ awx_token }}"
       name: "MERAKI_NETWORK_CONFIG_WORKFLOW"
       survey_enabled: true
       survey_spec: "{{ lookup('template', 'meraki_update_survey.j2') }}"
       validate_certs: no
     register: uri_status

```

And this jinja

```auto
{ "name": "MERAKI_NETWORK_CONFIG_WORKFLOW",
  "description": "WORKFLOW AUDIT",
  "spec": [
{
  "type": "multiplechoice",
  "question_name": "Select the ORG and NETWORK",
  "question_description": "org network orgid",
  "variable": "org_network_select",
  "choices": {{push_meraki_list}},
  "required": true
        }
      ]
  }

The ansible job completes and I can use it in my workflow, however when I try to manually view the survey in awx, I get the following error message:

TypeError: Cannot read properties of undefined (reading 'split')
 
Is this supposed to happen when updating a workflow's survey from ansible rather than awx?
```
