System.TimeoutException when importing translations with XrmToolBox

I've been using the completely awesome XrmToolBox to import translations for a large CRM organization, but I kept running into System.TimeoutException errors like the following:
System.TimeoutException: The HTTP request to 'https://XXX/XrmServices/2011/Organization.svc' has exceeded the allotted timeout of 00:02:00. The time allotted to this operation may have been a portion of a longer timeout.

After trying a few different things (running from the CRM app server, only importing translations for one thing at a time, etc.), I kept running into problems, so I decided to modify the source code to add adjustable timeout values to the CRM connections.

This required making changes to the McTools.Xrm.Connection.ConnectionDetail class and the McTools.Xrm.Connection.WinForms.Connection form class. Here is a download link for my modified versions - XrmToolBox-connection-files.zip. To update your copy, do the following:

  1. Extract the contents of my attachment and place the files in their respective project folders under the XrmToolBox\Connection Projects directory.
  2. Build the McTools.Xrm.Connection.WinForms project.
  3. Copy McTools.Xrm.Connection.dll and McTools.Xrm.Connection.WinForms.dll files to your XrmToolbox directory. If prompted to overwrite the existing files, say yes.

You will need to update your existing connections to use the new timeout value. The timeout is entered in the format of HH:MM:SS, so if you want to make the timeout 10 minutes, you would enter 00:10:00 in the timeout value box.

comments powered by Disqus