Can you take a screenshot of the template that does work. The one where you set the record Id manually.