Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)
Unanswered

Timeout for Code Activities Dynamics CRM 365 on prem.

(0) ShareShare
ReportReport
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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans