We got a strange error [strange JavaScript popup alert] while scheduling service. Searching for the similar error in google did not help either. It took almost 2 days to narrow down the issue and find the root cause. If you come across the same issue, this post might help you.
Issue:
An error while scheduling the service activity [Alert popup – not a usual error popup in CRM 2016]
“An Error Has occurred. Please return to homepage and try again.”
Root Cause for the error:
On the Service Activity form, there is a field ‘All Day Event’ which was removed from the form. This has caused the issue.
Resolution:
Adding the field “All Day Event’ back to the form resolved the issue! Strange!!