Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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 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,331 Moderator 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,212 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans