Error on node when I updated to Revit 2026

I get this error from the LinkElement.GetParameterValueByName once I updated my script from Revit 2023 to Revit 2026.

LinkElement.GetParameterValueByName operation failed.
unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
Parameter name: unitTypeId

I am linking in another revit file and copying in the levels (and names) from that file. So if there is a level say at 0 feet and it is diferent then the name that is linked it renames it to match the link then also adds in the other levels from that linked file.

I know there is an error with bimorph nodes but the latest is installed

Link File and Levels_script.dyn (106.5 KB)

ok just replaced all the Bimorph nodes and the error went away but the node still will not run past it.

got it lol I wonder why it changed and had to add the extra node which I didnt have to in Revit 2023