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

Community site session details

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

Timeline in UCI intermittently does not return all related activities

(0) ShareShare
ReportReport
Posted on by 20

My organization is using the contact entity, and we are using the Timeline control( is it a control? is it correct to say out-of-box plugin?) to display Notes & Activities, specifically the Email and "Phone Call" activities. It is a new environment, built in v9, and has only ever used the UCI.

Across our organization, when end-users access the contact, the timeline will be incomplete -- it will be missing notes or phone calls or emails. It is intermittent, and when the screen is refreshed, the timeline properly returns all results.

Initially there were errors, which helped me troubleshoot -- I'll detail those below. But most of the time it does not produce an error, either in the console or rendered on the page -- it just doesn't return the full results until after a refresh.

One of the (few!) times it has returned an actual error, here is the error:

TypeError: Cannot read property 'stateHandler' of undefined
at TimelineWall.initTimelineWall (-------------------------------------/webresources/cc_MscrmControls.TimelineWallControl.TimelineWall/TimeLineWallControl.js:2:272395)
at TimelineWall.init (------------------------------------/webresources/cc_MscrmControls.TimelineWallControl.TimelineWall/TimeLineWallControl.js:2:270166)
at t._initializeControl (---------------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:162471)
at ----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151578
at e.v [as _scheduleControlUpdate] (----------------------------/uclient/scripts/app.js?v=1.4.1021-2006.2:4002:395)
at e.scheduleControlUpdate (----------------------------/uclient/scripts/app.js?v=1.4.1021-2006.2:4355:1508)
at i (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151499)
at t._initializeData (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151616)
at t.componentDidMount (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:175272)
at ----------------------------/uclient/scripts/vendor.js?v=1.4.1021-2006.2:17:94858

Here's my troubleshooting (so far!):

#1

I found this article from Dec 2018 (and thought I'd solved it! Because it's so similar to our issue): https://support.microsoft.com/en-sg/help/4480001/timeline-does-not-render-and-shows-records-could-not-be-loaded -- we have removed all custom card forms from the timeline (mitigation #2). This didn't solve the issue.

Mitigation #1, increasing the quantity of the QueryLinkEntityLimit -- doesn't seem to be related, we only have three entities we're querying in the fetchXML, and they're all out-of-the-box: Notes, "Phone Calls", and Emails. 

#2

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/279479/case-timeline-showing-unexpected-error

We're not using a custom entity, so I'm not sure this is relevant to us. The gist is to add a "read" privilege to the solution in the users' security role.  

I'm scared of mucking with the security roles: Microsoft Consulting Services made this solution, but when I've done this in our test environment, it has made no noticeable change. 

#3

On consulting Microsoft support, we were asked to remove the Timeline (control?) from the form, add it back from the toolbar, and then publish the changes. We did this, and it broke our D365 workflow screen, where you go into the entity and update. As it broke the workflow, I don't want to push this to production, so cannot test it.

There are a number of questions out there regarding the timeline, but either predate the UCI, or are not related. I'm wondering if anyone has experienced this? Any suggestions of troubleshooting next steps? Anything I left out that could help?

The timeline in the UCI does not consistently return all results, and shows no error when it doesn't return all results.

I have the same question (0)
  • Joe Crockett Profile Picture
    20 on at
    Timeline in UCI intermittently does not return all related activities

    My organization is using the contact entity, and we are using the Timeline control( is it a control? is it correct to say out-of-box plugin?) to display Notes & Activities, specifically the Email and "Phone Call" activities. It is a new environment, built in v9, and has only ever used the UCI.

    Across our organization, when end-users access the contact, the timeline will be incomplete -- it will be missing notes or phone calls or emails. It is intermittent, and when the screen is refreshed, the timeline properly returns all results.

    Initially there were errors, which helped me troubleshoot -- I'll detail those below. But most of the time it does not produce an error, either in the console or rendered on the page -- it just doesn't return the full results until after a refresh.

    One of the (few!) times it has returned an actual error, here is the error:

    TypeError: Cannot read property 'stateHandler' of undefined
    at TimelineWall.initTimelineWall (-------------------------------------/webresources/cc_MscrmControls.TimelineWallControl.TimelineWall/TimeLineWallControl.js:2:272395)
    at TimelineWall.init (------------------------------------/webresources/cc_MscrmControls.TimelineWallControl.TimelineWall/TimeLineWallControl.js:2:270166)
    at t._initializeControl (---------------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:162471)
    at ----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151578
    at e.v [as _scheduleControlUpdate] (----------------------------/uclient/scripts/app.js?v=1.4.1021-2006.2:4002:395)
    at e.scheduleControlUpdate (----------------------------/uclient/scripts/app.js?v=1.4.1021-2006.2:4355:1508)
    at i (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151499)
    at t._initializeData (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:151616)
    at t.componentDidMount (----------------------------/uclient/scripts/5.js?v=1.4.1021-2006.2:1:175272)
    at ----------------------------/uclient/scripts/vendor.js?v=1.4.1021-2006.2:17:94858

    Here's my troubleshooting (so far!):

    #1

    I found this article from Dec 2018 (and thought I'd solved it! Because it's so similar to our issue): support.microsoft.com/.../timeline-does-not-render-and-shows-records-could-not-be-loaded -- we have removed all custom card forms from the timeline (mitigation #2). This didn't solve the issue.

    Mitigation #1, increasing the quantity of the QueryLinkEntityLimit -- doesn't seem to be related, we only have three entities we're querying in the fetchXML, and they're all out-of-the-box: Notes, "Phone Calls", and Emails.

    #2

    community.dynamics.com/.../case-timeline-showing-unexpected-error

    We're not using a custom entity, so I'm not sure this is relevant to us. The gist is to add a "read" privilege to the solution in the users' security role.

    I'm scared of mucking with the security roles: Microsoft Consulting Services made this solution, but when I've done this in our test environment, it has made no noticeable change.

    #3

    On consulting Microsoft support, we were asked to remove the Timeline (control?) from the form, add it back from the toolbar, and then publish the changes. We did this, and it broke our D365 workflow screen, where you go into the entity and update. As it broke the workflow, I don't want to push this to production, so cannot test it.

    There are a number of questions out there regarding the timeline, but either predate the UCI, or are not related. I'm wondering if anyone has experienced this? Any suggestions of troubleshooting next steps? Anything I left out that could help?

    The timeline in the UCI does not consistently return all results, and shows no error when it doesn't return all results.

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Timeline in UCI intermittently does not return all related activities

    Hi Partner,

    Please check the following points.

    1.Open your entity form editor, and check the timeline control (Social Pane) .

    pastedimage1596767933018v1.png

    Check if you select to show all activities in timeline in UCI.

    pastedimage1596767956231v2.png

    2.Try to clear your browser caches and cookies and try again.

    3.As the Microsoft support mentioned, you should test to remove and re-add the timeline and try again, this will not effect your workflow or other functions in D365.

    Regards,

    Leo

  • Joe Crockett Profile Picture
    20 on at
    RE: Timeline in UCI intermittently does not return all related activities

    Thanks Leo! I really appreciate the help.

    We are only using the Email and "Phone Call", so we specifically chose those. Because I think it's a performance issue with fetching from those entities, I wanted to limit it to what we needed. Is that what you would do?

    pastedimage1596805918435v1.png

    When we add back the timeline (after having removed it and added it back), we now cannot use that entity in a process, here's what we get:

    pastedimage1596806103719v2.png

    However, if we remove the timeline, that form will once again display in the Process screen.

    The timeline is not customized, we're using it straight out-of-the-box.

    I appreciate the advice,

    Joe

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans