Which version of Revit/Dynamo are you using? If you are on Revit 2024 (or before) check that your version of DynamoIronPython2.7 is 2.5