I’m using this code block that grabs walls categories.
The reason is, sometimes the value in my Categories node change randomly instead of Walls so I wanted to hard code it.
It seems like this works for all Revit versions EXCEPT 2020
I’m not sure what the cause of your issue is, but an alternate way to avoid using drop-downs would be the ‘Category.ByName’ node which takes a string as input.