Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)
Unanswered

Timeout for Code Activities Dynamics CRM 365 on prem.

Posted on by

We write code activities for Dynamics CRM in C# using the CRM SDK. After getting the OrganizationServiceProxy from the context we set its timeout to one hour like in the following code snippet.

 

IWorkflowContext context = codeActivityContext.GetExtension<IWorkflowContext>();

IOrganizationServiceFactory serviceFactory = codeActivityContext.GetExtension<IOrganizationServiceFactory>();

OrganizationServiceProxy service = (OrganizationServiceProxy)serviceFactory.CreateOrganizationService(context.UserId);

service.Timeout = new TimeSpan(1, 0, 0);

 

This worked well for us in the past years. But since update rollup ???? we experience that this timeout is in fact only around one minute long, which is often not enough for our operations. The operations themselves like create or update however are usually processed. The code activity just does not wait longer than a minute for its result.

 

Is this a new hard coded restriction of the Asynchronous Processing Service? Or can we configure this somehow?

*This post is locked for comments

  • Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Timeout for Code Activities Dynamics CRM 365 on prem.

    Hello,

    What is the error you have?

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