After upgrading to SP17, erid email tokens are no longer integer based.
This is an intentional design change in SP17 to address the scenario described here.
Steps to Duplicate
1. Send an event invitation from CRM and make sure it is linked to a communication preferences page in an SP17 environment. 2. Click on the Communication Preferences link after the email has been sent and received.