How to fix ReferenceError: Computation failed message in email notifications

Computation failed error message is shown if you are using a redundant form field to customize the email message. Please remove that entry#id from the message and use the Add field option in the message editor to include the required field.

How to fix the computation failed due to ReferenceError issue?