Using same PromptSet in Task within Workflow and in the Workflow results in U00003900 invalid value error
search cancel

Using same PromptSet in Task within Workflow and in the Workflow results in U00003900 invalid value error

book

Article ID: 87251

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
U00003900 Error in object '#SCRI.PRPT.1' (RunID '0001556114') prompt '#PRPT.YES.NO': Invalid value

Using the same promptset in a task in a workflow and in the workflow itself results in an error message similar to the one above.

Investigation

A simple workflow (WF) with a promptset is created, where one can chose YES or NO, the selection is stored in variable &YES_OR_NO#:

 

<Please see attached file for image>

0EMb0000000IaPa.png

The WF contains one script that just prints out &YES_OR_NO#, the script contains NO promptest:
 

<Please see attached file for image>

0EMb0000000IaPf.png

That works:
 

<Please see attached file for image>

0EMb0000000IaPk.png

Now the same promptest is added to the script as there is in the WF:
 

<Please see attached file for image>

0EMb0000000IaPp.png

The WF fails with:

U00003900 Error in object '#SCRI.PRPT.1' (RunID '0001556114') prompt '#PRPT.YES.NO': Invalid value

<Please see attached file for image>

0EMb0000000IaPz.png

Environment

OS Version: N/A

Cause

Cause type:
By design
Root Cause: This is standard prompt behavior. There is no value set in the Script object.

Resolution

There are 3 possible solutions to this issue:
  1. Use only the second PromptSet. Set "Request User Input" for the task, so the prompt of the task will open as well.  See the documentation referenced below for additional information about the "Request User Input" option.
  1. Set a default for the prompt of the task and the task will take the default.  For additional details see the documentation referenced below.
  1. Use the variable of the workflow as a default for the task to inherit the entered value. 


Fix Status: No Fix

Fix Version(s):
N/A

Additional Information

Workaround :
N/A

Attachments

1558693593994000087251_sktwi1f5rjvs16m9x.png get_app
1558693592217000087251_sktwi1f5rjvs16m9w.png get_app
1558693590302000087251_sktwi1f5rjvs16m9v.png get_app
1558693588462000087251_sktwi1f5rjvs16m9u.png get_app
1558693586625000087251_sktwi1f5rjvs16m9t.png get_app