The agent profile creation process cannot validate the specified agent parameter value. '%1!s!' is not a valid value for ...

The agent profile creation process cannot validate the specified agent parameter value. '%1!s!' is not a valid value for the '%2!s!' parameter. The value must be an integer. Verify that replication is installed properly and that sp_add_agent_parameter is invoked with a valid value.