Problem return Project Parameter back to Revit

Hi all,

I created a script in which I calculate certain parameters. The script works, just it fails when I try to input the parameters back in Revit I receive this message:

When I run the script with only one Revit category it works very well. I receive this messege when I try running it with more than one category.

Any ideas why that happens?

That error is telling you that some of the parameter types are looking for string values, and some are looking for elements. You should check the parameter type for every category you are trying to apply it too and make sure they are all the same and that it is what your graph provides.