Adding Shared Parameters to a family

Can you tell me what I am doing wrong please? I get Run completed with warnings "One or more of the input types are not matching. Couldn’t find a version of CloseDocument that takes arguments of type (string.bool)