Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

OrganizationService.Create() taking excessively long (> 2 minutes to complete)

Posted on by 5

Hi All,

I have a call to OrganizationService.Create in a D365 plugin to create a ConstraintBasedGroup (this is one of the default entities if I understand correctly) and the call is taking over 2 minutes to complete.  As a result, the entire plugin is throwing a FaultException, and it states the plugin is timing out. 

How would someone go about further diagnosing this issue? Is there any further analysis I as a developer can do, or does this need to be passed off possibly via a ticket to Microsoft? 

Thanks,

Andrew 

  • AndrewTheArt Profile Picture
    AndrewTheArt 5 on at
    RE: OrganizationService.Create() taking excessively long (> 2 minutes to complete)

    1. How many attributes is too many? I thought this was mostly a concern when you were doing a Retrieve or RetrieveMultiple.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: OrganizationService.Create() taking excessively long (> 2 minutes to complete)

    Hi partner,

    In general, use organizationservice to create a record will not spend to much time, since your action had been time out, you should consider the following points.

    1.Whether there are to many attributes(fields) to save when you creating the record.

    2.Whether there is any other threads of plug-in running with Constraint Base Group or related entities.

    3.Whether the network is normal.

    You could also use web api to create constrain based group by C# or JS.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/entities/constraintbasedgroup

    pastedimage1576464694607v1.png

    Hope it helps.

    Best Regards,

    Leo

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: OrganizationService.Create() taking excessively long (> 2 minutes to complete)

    Hello, 

    Can you please share your code ? 

    Mehdi EL Amri

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

Product updates

Dynamics 365 release plans