While working on an RPA process, I encountered an issue when using the Python Script step within the Robotiq.ai platform.
Specifically, I tried to reference a Output Variable called message, assuming it was already available in the context, but the script didn’t work as expected. After some debugging, I realized that the message variable had not been defined earlier in the process – I was using a name that didn’t exist.
I checked which variables were actually available and replaced message with the correct variable name – in my case, it was Message, which was set earlier and reffrenced into the script as an Output Variable.
- Goran asked 2 months ago
- last edited 2 months ago
- You must login to post comments
Thank you Goran for your answer – I’d like to follow up with a related case 🙂
Your solution works well within the main process, but I encountered the same issue when using functions.
In my case, the error occurs because I cannot define a variable with the same name as the function’s output variable — it’s already reserved as the output.
As a workaround, I define a dummy variable inside the function, then use a Set Variable Value step after the function to assign the dummy’s value to the intended output variable. This way, the function doesn’t conflict with the output definition, and everything works smoothly.
Hope this helps someone!
- Marin answered 4 weeks ago
- You must login to post comments
Please login first to submit.