Answered by:
"The operation has timed out" whilst updating CONTACT entity (CRM V4)

Question
-
Quite randomly, and seemingly only in a production environment I am getting timeouts whilst updating the Contact entity. The trace files are not showing me anything (as far as I can tell). Here's the code:
Dim update As TargetUpdateDynamic = New TargetUpdateDynamic
update.Entity = retrievedEntity
Dim Request As UpdateRequest = New UpdateRequest
Request.Target = update
m_CrmServ.Execute(Request) 'timeout HERETuesday, November 10, 2009 2:12 PM
Answers
-
Yeah, that's kind of what I'm getting at. But it could be something a little more complicated like Cascading actions, because the update includes owner information and therefore causes the platform to spend more time on core operations.
Dave Berry- Marked as answer by DavidJennawayMVP, Moderator Monday, December 7, 2009 12:06 PM
Tuesday, November 10, 2009 6:28 PMModerator
All replies
-
Could you put the code in a Try/Catch with a soap exception to get a detailed error?
Try Dim update As TargetUpdateDynamic = New TargetUpdateDynamic update.Entity = retrievedEntity Dim Request As UpdateRequest = New UpdateRequest Request.Target = update m_CrmServ.Execute(Request) 'timeout HERE Catch ex As System.Web.Services.Protocols.SoapException Throw New InvalidPluginExecutionException(" (" & ex.Detail.InnerText & ")") End Try
- Edited by Joey VDB Tuesday, November 10, 2009 2:27 PM Code box
Tuesday, November 10, 2009 2:26 PM -
Hi,
are there any plugins or workflows for the contact entity which could stall the execution?
Does this happen only for the contact entity or anything else? If it happens for other things, make sure that the infrastructure (DNS, Proxies, ...) work.Tuesday, November 10, 2009 2:28 PM -
Maybe you should take a look at this:
http://social.microsoft.com/Forums/en/crmdevelopment/thread/1f582d90-36ce-4c4e-8f60-99a7ac3603a7Tuesday, November 10, 2009 2:36 PM -
I have discovered that the contact does indeed have a plugin; forgive me as I'm new to plugins but I have added the try/catch above and am getting 'InvalidPluginExecutionException is not defined' despite adding Namespace Microsoft.Crm.Sdk.Walkthrough.Tuesday, November 10, 2009 3:37 PM
-
The walktrough library is not necessary for soapplugin exceptions.
If I'm correct you need to use:
Imports System.Web.Services
Because SOAP are webservices messagesTuesday, November 10, 2009 3:47 PM -
I already use:
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports KF_CRM_VB_WS.crmServ
Imports KF_CRM_VB_WS.MetadataSdk
Imports System.Xml
Imports System.Net
Imports System.IO
Imports System.Reflection
Imports log4net
Imports KF_CRM_VB_WS.SqlDataProvider
Imports System.Data.SqlClientTuesday, November 10, 2009 4:34 PM -
What message and entity does your Plugin fire on? What information have you retrieved for the Contact, that you're rewriting back into the system with the Update?
Dave BerryTuesday, November 10, 2009 5:55 PMModerator -
Hi,
make sure that your plugin doesn't trigger a update itself, if its registered for the message update on contact. This will start an infinite loop.Tuesday, November 10, 2009 6:10 PM -
Yeah, that's kind of what I'm getting at. But it could be something a little more complicated like Cascading actions, because the update includes owner information and therefore causes the platform to spend more time on core operations.
Dave Berry- Marked as answer by DavidJennawayMVP, Moderator Monday, December 7, 2009 12:06 PM
Tuesday, November 10, 2009 6:28 PMModerator