You will need to be sure the course status is set to ‘active'.