Title: Email activity — "Send" button stuck on processing loader after on-premise upgrade from 8.2 to 9.1.0.44 (JS error in Email_main_system_library.js)
Environment
Dynamics 365 on-premise, upgraded from version 8.2 → 9.1.0.44
Issue reproduces in the web client; version 8.2 environment works as expected
Issue
After the upgrade, creating an Email activity and clicking Send causes the form to hang on the processing loader. The email is never sent and the loader never clears. The same steps work correctly on our 8.2 environment.
Steps to reproduce
Open any record (or the Activities area) and create a new Email activity
Populate From / To / Subject / Body
Click Send
Form remains on the processing spinner; console throws the exception below
Observation
The script invoked on Send differs between the two versions:
8.2:
/_static/activities/email.js→send9.1.0.44:
$webresource:Activities/SystemLibraries/Email_main_system_library.js
Console exception-
jQuery.Deferred exception: Cannot read properties of undefined (reading 'getAttribute')
TypeError: Cannot read properties of undefined (reading 'getAttribute')
at .../WebResources/Activities/SystemLibraries/Email_main_system_library.js?ver=-257803422:3:20342
at e (.../_static/_common/scripts/jquery-3.6.0.min.js?ver=-257803422:1548:47)
at t (.../_static/_common/scripts/jquery-3.6.0.min.js?ver=-257803422:1557:37)

Report
All responses (
Answers (