web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Charles Abi Khirs Profile Picture
    3,569 on at

    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans