Changing element parameter which are part of a assembly

Hello everyone,
Could someone help me with dynamo, I’m trying to change a element parameter (Mark) in multiply assemblies. For so far I’ve greated in dynamo that it can find the elements that I need in the assemblies and sorten them.
The problem is that i got a error in the end when i want to tranfser the data back to revit.

For each assembly I need to great a Mark from 1 until 10 or more depends how many different elements there are. I’ve put a picture and the dynamo script below.

Automatic Mark.dyn (51.7 KB)

Hi, Please check the Parameter data type.
I guess, The Parameter is a "Number " having an int or float data type,
So the values you are passing must be a number.
But here, you are passing a string data type.

Thank you for the respond, how can I solve this to the right data

@496424 The parameter Number type should be “Text” (Type of Parameter) in your family.