Hello Markus,
could you please double check the syntax and verify that variables in outputdir are resolved?
I was not able to use the f to replace variables in a string, so I changed to “+” operator to get my result.
For better understanding I use a variable “path” instead of output-dir (same result):
\[Variables\]
path = { expr = “environ.get(‘WV_WORKFLOW_LOGBASE’, ‘’) + ‘\\\\’ + environ.get(‘ENV’, ‘’) + ‘\\\\’ + environ.get(‘WV_WORKFLOW_CONTAINER’, ‘’) +‘\\\\’ + environ.get(‘WV_WORKFLOW_ID’, ‘’) + ‘\_’ + environ.get(‘WV_WORKFLOW_NAME’, ‘’)” }
I tried:
\[profiles.run-from-launch-json\]
output-dir = “${path}”
paths = \[“tasks.robot”\]
args = \[
“–pythonpath”, “.”,
“–report”, “NONE”,
“–logtitle”, “Task log”,
“–loglevel”, “DEBUG”,
“–timestampoutputs”,
\]
The bot has correct value for path. But OUTPUTDIR got the name of the variable instead of the value:
path: c:\\temp\\logs\\dev\\000\\000_Sample_Workflow
OUTPUTDIR: C:\\Projekte\\RPA_Template${path}
And the final output is:
Output: C:\\Projekte\\RPA_Template${path}\\output-20251103-131814.xml
Log: C:\\Projekte\\RPA_Template${path}\\log-20251103-131814.html