In global sections, parameters are strictly read-only. It is not recommended to write to them outside global sections either. Example:
global: @myParam = 0
Correct this by writing to a variable instead, and using this variable instead of the parameter in the rest of the formula.
See Also
Errors