pid query param is missing or direct query param is not set to record