Skip to main content
Nintex Community Menu Bar

Workflow form variable being passed as empty to workflow

  • July 18, 2019
  • 3 replies
  • 27 views

Forum|alt.badge.img+1

I've been designing a workflow that can take a parameter on load. Just recently, I've encountered an issue where the form variable gets set, but is never passed to the workflow. The workflow is simple, it takes the passed in workflow name, logs it, and starts a different workflow. After running the workflow with the passed in variable, the logs show that the variable is still blank and the wrong workflow gets started. To add to the confusion, the issue only presents when manually starting a workflow. Setting up a "Start Workflow" action and passing in the parameters works fine. Anyone encoutered such an issue before?

 

3201iD0D406B578B7E496.png3202iCB40C9D54E8AF4C2.png

3 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • July 18, 2019
Hi,

How are you passing the variable from the Form to the workflow?

Forum|alt.badge.img+14
  • Scholar
  • July 19, 2019

what's data type of 'WorkflowName' variable?

could you try to pass in a simple string  with just characters or digits (depends on datatype), without that 'index selector' at the beginning?

could you try with a different variable name then 'WorkflowName'?

 

I'm curious how could it start a different workflow, if empty value gets passed in....

I do not expect you were able to create a workflow with empty name...


Forum|alt.badge.img+1
  • Author
  • Novice
  • July 19, 2019

The variable was a text variable, the index selector at the beginning is just one of our naming conventions. With regards to starting the workflow, it's basically starting a routing workflow, which can handle the missing parameter gracefully by using item status.

 

I tried renaming the variable and seeing if that worked, and turns out it did. So note to self (and others), naming a start form variable "WorkflowName" does not work.

 

Appreciate the help