Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Error when opening certain Service Activity

Posted on by 25

When I open some of the Service Activities, CRM shows the following error. The record shows all columns in Advanced Find, and I can retrieve it by C# code. Is it a bug or something wrong with the data? 

Version: CRM Online

pastedimage1576164950713v1.png

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when opening certain Service Activity

    Hey kxu,

    I am happy that you could narrow the issue down.

    It is of course really interesting, what actually is "wrong" with the values inside the customer field, that cause such an issue.

    Actually there are several possible "workarounds" I would work on myself in such a case. It all depends on which outcome you want to achieve. Whether it is simply accessing the records over the UI at all or working with/processing the records further.

    Let's say I simply want to access these records at all.

    What I would do, is write a little WorkflowActivity in C# which can read all value inside the Customer field and then populate a multiple-line of text field with each value/record in its own line. Since the customer field can contain different entities, I would write my logic to read the entity, the Guid and the Name of each record (e.g. "Entity: account, Guid: 12345, Name: ABC").

    After I retrieved all values and wrote it into my custom multiple line of text field, I would clear  (null) the customer field programmatically.

    Then I would create an OnDemand workflow for the SA and put my WorkflowActivity inside as a step.

    So in the end I pick one of the "problematic" records and run my workflow on it. I would guess that once the customer field is "clear", the record should be accessable again.

    On the other hand I would also check whether the records which were written into that Customer field are still valid in the system.

    Maybe try to populate the Customer field record by record. Save the SA after each entry and reload the form.

    So long story, short: This is a possible approach on how I would try to narrow the issue more down.

    I hope you will be successful.

  • kxu Profile Picture
    kxu 25 on at
    RE: Error when opening certain Service Activity

    Thanks for the input! I created a new empty form, and it shows without error. Then I keep adding fields on the form until the error shows up. It turned out to be "Customers" field. And it will only error out when there are multiple customers in that field. So now I have the cause of the issue, but still don't know how to resolve it.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when opening certain Service Activity

    Hey kxu,

    interesting issue you are facing.

    Actually I remember having something similar to deal with a couple of years ago on v8.2. And it also was on the Service Activity entity.

    So considering the fact that you can see them in advanced find (FetchXML) and you can also retrieve them via C#, I would guess that it's something about the UI or in other words the Form that is not working properly.

    Please try to create a new Form with only the required fields and open these specific records. That may narrow the issue down.

    If the issue still persists, I would suggest contacting Microsoft Support on this one.

  • kxu Profile Picture
    kxu 25 on at
    RE: Error when opening certain Service Activity

    Thanks for your reply.

    Chrome, FireFox, Edge, Edge Dev all showing the same error message.

  • T.I.A Profile Picture
    T.I.A 1,760 on at
    RE: Error when opening certain Service Activity

    What browser are you using?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans