Hey everyone,
I'm experiencing an error when trying to run a Python 3 script within Resilient that contains the following line:
workflow.addProperty("data", {"key": [1,2,3]})
I get the error "Script 'data setter' from Workflow 'Workflow Property test' was unable to complete because: TypeError: 'NoneType' object is not callable".
If I change the language of the script to Python 2, it works fine. Also worth noting that if I change the value from a list to a string as a Python 3 script, it works fine. So it seems there's an issue while trying to add a dictionary that contains a list to the workflow properties in Python 3.
Note: I also tried creating the dictionary outside of the `workflow.addProperty()` call, e.g.:
x = {"key": [1,2,3]}
workflow.addProperty("data", x)
and this didn't work either.
Any ideas if I could be doing something wrong, or is this a bug? I can provide more details about my script / workflow / rule I was using to replicate the issue.
------------------------------
Liam Mahoney
------------------------------