Breaking news from around the world
Get the Bing + MSN extension
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
We have SSIS jobs which retrieve incremental data from Dynamics CRM 365 and run every 2 hours. Recently we observed few jobs were failing with request channel timed out error. We figured out that these jobs were pulling data for entities with very high data volume. One of the entity was annotation since we are capturing loads of notes.
We are using script component in SSIS package which is C# code to retrieve data from CRM. C# code makes use of organization Service object for any CRUD operations in CRM.
ClientCredentials credential = new ClientCredentials();
credential.UserName.UserName = ConfigurationManager.AppSettings.Get(“Username”);
credential.UserName.Password = ConfigurationManager.AppSettings.Get(“Password”);
IOrganizationService orgService = new OrganizationServiceProxy(new Uri(strUrl), null, credential, null);
To resolve this issue, we increased Timeout property. OrganizationServiceProxy class has Timeout property which can be set to increase default value of 2 min as below: For more details please refer here.
((OrganizationServiceProxy)(orgService)).Timeout = new TimeSpan(0, 10, 0);
Add this line of code after orgService object is created above to set Timeout to 10 minutes.
In case you are using CrmConnection class, then you can directly set Timeout property using CrmConnection class object as below:
CrmConnection conn = new CrmConnection(strUrl);
conn.Timeout = new TimeSpan(0, 10, 0);
Business Applications communities