Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Performance issues on form load

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

we are using Dynamics 365 8.2.2 OnPremise and we have some users with performance issues when they are working with CRM. For example opening a record takes a lot of time and the progress circle is running for a long time before the record is displayed. This behavioris only existing at some users, but not for all. If another user is opening the same record with same browser it is displayed within a second or two.

I used the integrated performance center in CRM to log some information:

Form Load Start (-> 0 ms)
Complete Load (16115 ms)
Edit-Ready (post-onload) (15906 ms)
Edit-Ready (pre-onload) (15900 ms)
PageManager.LoadHandler (3 ms)
RemoteCommand.Execute - {"IsAsync":true,"Service":"MessageBar","ReqId":"77d944be-22db-4635-b524-208736c91196"} (125 ms)
RequestNotesControlLayout_Start (-> 2511 ms)
RequestNotesControlLayout (40 ms)
Turbo Form Load Start (-> 2573 ms)
Load Form (135 ms)
Update ProcessId From Local Storage (0 ms)
OnLoadStarted handlers (1 ms)
Request Form Layout (8 ms)
Parse Form Layout Response Json (5 ms)
Process Form Layout (95 ms)
Process Entity Metadata (1 ms)
Inject Layout Includes to Page (17 ms)
Process inline edit subgrids (0 ms)
Style Includes (1 ms)
Script Includes (8 ms)
Layout Variable Includes (5 ms)
Render Form Layout (71 ms)
Initialize Application Components (2 ms)
DataSource.Initialize (398 ms)
PageManager.LoadHandler (9 ms)
RemoteCommand.Execute - {"IsAsync":true,"Service":"RecentlyViewedWebService","ReqId":"540195ca-dbc3-45df-aae7-47a55ba8f1b2"} (1358 ms)
Initialize Xrm Controls and Data (62 ms)
Build Page View Model (16 ms)
Build Page Views (14 ms)
FormNavControls.Initialize (0 ms)
Bind Xrm to HTML (159 ms)
Turbo.ActivityFeeds_Start (-> 2955 ms)
Bind SFA Tabs (59 ms)
LoadActivities_Start (-> 2957 ms)
LoadNotes_Start (-> 2958 ms)
ActivitiesWall_Render (5 ms)
LoadActivitiesWallHtml (0 ms)
LoadNotesV2Html (1 ms)
ChangeCurrentTab (38 ms)
NotesRefreshEvent (37 ms)
NoteshRefreshEvent_Start (-> 2976 ms)
TextAreaAutoResize (4 ms)
ElementWatermark (0 ms)
ElementWatermark (0 ms)
Refresh Wall Notes (347 ms)
Wall_SetProgressState (1 ms)
Wall_RefreshAll_Start (-> 3009 ms)
RemoteCommand.Execute - {"IsAsync":true,"Service":"Annotation","ReqId":"9a60ed3d-681c-41ff-ace0-30a4dd52b3cc"} (334 ms)
Page Ready for Data Bind (-> 3065 ms)
ProcessControl.InitializePageObjects (0 ms)
InitializeProcessControl (0 ms)
OnLayoutReady handlers (0 ms)
Waiting for data ready before BindData (12755 ms)
Custom Script Frame Loaded (-> 3311 ms)
Script Frame OnLoad (11 ms)
NotesData_Render (3 ms)
Waiting for layout ready before BindData (0 ms)
Bind Data and Create Controls (43 ms)
Process Cached Layout (6 ms)
Data Ready (-> 15823 ms)
Data Variable Includes (2 ms)
Load PBL Webresource (3 ms)
Create Common Controls (3 ms)
Bind Data (21 ms)
Bind Form Data for form: 54076a2d-d043-4a1b-b061-4d06846371a9 (13 ms)
LoadProcessControl (1 ms)
Bind FormData to Process Control (1 ms)
FinalizeProcessControl (0 ms)
ProcessControl.PostInitialize (0 ms)
Form RibbonLayout Request - Async (1 ms)
Initialize Command Bar (1 ms)
Non-Form RibbonLayout Request - Async (1 ms)
Execute OnLoad for form: 54076a2d-d043-4a1b-b061-4d06846371a9 (2 ms)
OnDataBound handler (2 ms)
Create Record Set Control (1 ms)
Create Quick Form (0 ms)
Add Item to MRU (3 ms)
PageLoadedWithRibbonData (-> 15886 ms)
Run form Onload method: SendMessageToPageManager (1 ms)
Run form Onload method: Mscrm.BusinessRulesScript.Initialize (1 ms)
TurboFormPreOnloadTimestamp (-> 15900 ms)
Run form Onload method: CreateTurboFormPreOnLoadPerfMarker (0 ms)
Run form Onload method: Mscrm.Form_onload (2 ms)
Run form Onload method: gcnmbase.formOnload (1 ms)
Run form Onload method: SendMessageToPageManager (219 ms)
TurboFormPostOnloadTimestamp (-> 15906 ms)
Run form Onload method: htsbase.formOnload (0 ms)
Handle Post OnLoad (217 ms)
MDDEnd (-> 15907 ms)
UI Update 1 (207 ms)
Post OnLoad UI Update (207 ms)
ControlsInitializationCompleteTimestamp (-> 16115 ms)
Request Subgrids Data (5 ms)
Request SubGrid Data (4 ms)
RemoteCommand.Execute - {"IsAsync":true,"Service":"LookupService","ReqId":"3ff46d01-169f-4f8e-bfdb-391de21f4d70"} (523 ms)
Run form Onload method: FireDataLoad (1 ms)
Fire Global PageLoaded Event (275 ms)
LoadCommandBarData (271 ms)
BuildCommandBar (243 ms)
Append Script: /CUREMAPROD/{636840081800000112}/WebResources/hts_utility.js?ver=1377916671 (2 ms)
Run form Onload method: SendMessageToPageManager (1 ms)
CommandBar Rendered (-> 16454 ms)
Refresh NavBar (40 ms)
Bind Subgrid_quoteposition (128 ms)
AllSubgridsLoaded (-> 16644 ms)

As you can see it takes about 16 seconds to open a record which is not usable for an active CRM user. Do you have any ideas what could be the problem or which steps I have to do to find out what is going wrong?

Thanks

Markus

*This post is locked for comments

  • Suggested answer
    Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: Performance issues on form load

    Hi Markus, there is (sometimes) an issue in 8.2 with the RecentlyViewedXml Column in the UserEntityUISettingsBase Table.

    Try removing the XML for the users with the performance problem:

    Clear RecentlyViewedXml for a specific user:

    update UserEntityUISettingsBase

    set RecentlyViewedXml = null

    where OwnerId = 'GUID'

  • Jarrod Williams Profile Picture
    Jarrod Williams 1,747 on at
    RE: Performance issues on form load

    With that kind of disparity between users and on a strictly client side perf issue generally speaking you are looking at something related to user settings or browser settings.  First check would be to have one of the users who loads quickly log into one of the slower performing users machine and see if they or you can repro the issue.  Also, is it that slow for every load of a specific record for that user?  If so that definitely points to a browser issue.  

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: Performance issues on form load

    Hi ,

    Here are few performance improvement  tips I have mentioned in my blog , you can try to implement  -

    community.dynamics.com/.../dynamics-365-performance-tips

    In addition , I would suggest try to -

    - Minimize form onload JS call

    - Use JS session storage to cache  reusable data

    - Reduce API call in the onload , call them ondemand basis .

    - Reduce subgrid in the form , you can create seperate form if you have multiple subgrid.

    Hope this helps.

  • Suggested answer
    Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: Performance issues on form load

    It looks like the biggest delay is with getting the data.  My suggestion is to make sure to collapse all tabs except your main one on every form you use, and then only put key stuff in that main form.  Collapsed tabs don't load by default, meaning you'll request much less data.  This is especially true of any subgrids on your forms.  

    Beyond that, I would recommend making sure nobody is using Internet Explorer.  Edge, Chrome, and Firefox all provide much better user experiences in CRM 2016 and D365

    Lastly, if you have a test server, try installing the V9 update an see if the new forms provide better performance for those users.  

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,396 User Group Leader on at
    RE: Performance issues on form load

    Hi,

    You can check how much time the network is taking to connect to D365 server - d365demystified.com/.../run-dynamics-365-diagnostics-to-check-network-latency

    Hope this helps.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans