SetParameterByName error

Hi All,

I have an adaptive component with an instance parameter that can go from 0.0 to 1.0. I’ve instantiated that component in my project file. When I manually edit the parameter value the family works fine. When I try to use the dynamo component I get an error stating.

The value I instantiate via dynamo throws the error. But when I manually type in that value in the family it works fine. I know the value I’m trying to input works. What could be the problem?

Thanks.

Would be good if you could attach relevant sample files.