fixed id case when setting a service (also slightly enhanced an error message)