Weird error while setting up parameter value by name

I am trying to set a parameter value by name, but I encountered a weird error that I wasn’t able to understand its cause. Does anyone know what the reason for that error ?

Looks like you need a Revit update. What version and build are you on?

1 Like

seems you want create and set workset in same run…if that the case you can try something here.

1 Like

I am using Revit 2021
21.0.0.383

Thanks you. Your sequence of nodes works better.
I am using the FlowGate node to make the SetParameter node wait while the worksets are created, which worked for me in many other scripts that were more complex and that included creating and setting parameter values in the same script, and I wanted to get to the root cause of that error.

Ok I think I figured out why I have this error while your script doesn’t, It’s probably because I use a the workset name but not the ID, unlike your script.
Thanks again.

1 Like

yes exackly workset expect the id as interger

1 Like