web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

After D365 8.2→9.1 upgrade: 'Resources' undefined error on email navigation

(2) ShareShare
ReportReport
Posted on by
We recently upgraded from Dynamics 365 CRM 8.2 to 9.1 (on-premises), and now we're seeing a strange issue with the Email entity.
Issue Description
When I create a new email, save & close, and then try to:
Create another new email, or open an existing email (from grid or command bar), i get a JavaScript error and the form fails to load:
 

Une erreur s'est produite. Vérifiez les détails techniques pour en savoir plus.
 
Détails techniques
ID de session: ***
ID d'activité: ***
Horodatage: ***
Cannot read properties of undefined (reading 'Resources')
TypeError: Cannot read properties of undefined (reading 'Resources')
    at Object.execute (***uclient/scripts/dashboardpage.js?v=***:474:182)
    at w._executeSyncAction (***uclient/scripts/app.js?v=***:723:692)
    at w._executeSync (***uclient/scripts/app.js?v=***:723:419)
    at w.executeAction (***uclient/scripts/app.js?v=***:723:201)
    at t.dispatch (***uclient/scripts/app.js?v=***:723:5538)
    at Object.dispatch (***uclient/scripts/app.js?v=***:1379:1525)
    at Object.dispatch (***uclient/scripts/app.js?v=***:723:5027)
    at dispatch (***uclient/scripts/app.js?v=***:723:1235)
    at ***uclient/scripts/editformpage.js?v=***:470:2503
    at ***uclient/scripts/editformpage.js?v=***:470:2541

The URL in the address bar is correct, but the page doesn’t render.
If I press F5 (refresh), the same URL loads perfectly — no cache clearing needed.
What I’ve Already Tried
  • Removed all custom web resources from the email form (including OnLoad).
  • Disabled all ribbon JavaScript actions.
  • Tried a clean, default email form set as primary.
  • Confirmed it’s not browser-specific.
Additional Notes
  • The issue happens only after saving and closing a new email.
  • Refreshing the page resolves it temporarily.
Question
Has anyone else seen this after a 9.1 upgrade?

Any known fixes or workarounds would be greatly appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    on at

    Hi,

    After upgrading from Dynamics 365 CRM 8.2 to 9.1, the issue you're encountering with the Email entity is likely due to deprecated or incompatible JavaScript customizations or missing web resources.

    Here are a few steps to help resolve it:

    1. Check Custom Scripts: Review any JavaScript customizations on the Email form. Scripts that worked in 8.2 may not be compatible with 9.1 due to API changes.

    2. Use Browser Developer Tools: Open the browser console (F12) to inspect the exact error message and identify which resource or function is failing.

    3. Verify Web Resources: Ensure all referenced web resources are published and accessible. Sometimes, upgrades can cause resource paths or dependencies to break.

    4. Form Editor Review: Open the Email form in the Form Editor and check for any unsupported controls or scripts.

    5. Update Libraries: If you're using third-party libraries or older Microsoft libraries, make sure they are updated to versions compatible with 9.1.

    Let me know if you'd like help analyzing the error message or reviewing your scripts!

    Best regards,
    Daniele

  • ElBenz4D365 Profile Picture
    on at

    Hi Daniele(@DAnny3211),

    Thanks a lot for your helpful comment!

    Just to follow up:

    1. Custom Scripts: I created a copy of the Email form, set it as the main form, and removed all web resources and custom scripts. I also checked the views to ensure no JavaScript was attached there. Unfortunately, the error still appears.

    2. Console Errors: There’s no direct JavaScript error in the console related to the form itself. The only recurring issue is from the softphone connector:

    WebSocket connection to 'wss://localhost:6969/SoftPhoneChannel' failed
    IWSC WARN: WebSocket Error [object Event]
    IWSC WARN: WebSocket Close [object CloseEvent]
    

    This seems unrelated to the Email form issue, but I’ll investigate further.

    1. Accessibility Warning: I noticed a warning about aria-hidden on a focused element, which might be affecting UI rendering:
    Blocked aria-hidden on an element because its descendant retained focus...
    
    1. Ribbon Script Error: I also found this in one of our ribbon scripts:
    executionContext.getFormContext is not a function
    

    This might be due to the script being executed outside of a form context, so I’ll refactor that.

    1. Libraries: I haven’t yet confirmed if all libraries are updated for 9.1 compatibility, but I’ll check that next.

    Thanks again for your support — really appreciate it!

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans