Changing the current document (looping through multiple)

You’ve creating two separate parameters.

You can add a parameter to the project, export it to your shared parameter file then associate with the family by adding it as a shared parameter manually. The parameters will then have the same ID and be truly shared. A shared parameter is the unique ID, not it’s name.