So. I was getting the same exact error. I followed your steps & found out that when I try to use the button my [Record ID#] is actually blank. I am using my buttons a selection before the record is actually created.
For example:
1. Click Add new service record
2. Select magic button to indicate what type of service record you would like to create. (i.e CSR, Incidence Response, Emergecy or other)
3. Based on the selection for option 2, the form will show certain information needed to open the record.
Since my button on my first option & the record hasn't been saved yet, there is no [Record ID#]. Is there a way around this?