'Value cannot be null. (Parameter 'key')' error with Coded Workflows that use Arguments

Conditions:

  • Coded workflow exists with arguments being passed in by another coded workflow

Workflow:

  • Press the ‘Run’ button to run the coded workflow that is calling the workflow that contains arguments

Result:
Following compilation error appears - Unable to create activity builder for ‘path to coded workflow with arguments’. Reason was ‘Value cannot be null. (Parameter ‘key’)’.

Workaround:

  • Remove the arguments from the coded workflow and run the file that calls it again
  • Now add the arguments back into the coded workflow and the project will now compile again