Parameter isnt read only?

So i´ve run in to a bit of a piuckle with a sheet-altering script i´ve been working on. I´m not allowed to change all of the sheet-numbers and the reason is that dynamo tells me some of the numbers are “read-only” params wich they are not. any suggestions?

Anyone?

Hi Gustav,

Try this,