Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Exception when executing non-query: update ActivityPointerBase

$
0
0

I am debugging a CRM 4.0 plugin.  The plugin is handling an Update message for a custom entity.  The plugin is registered in the Pre-Event Child pipeline.

 

The error message describes a failure while attempting to update a record in the ActivityPointerBase table.  Sure enough, there is no record in this table for this entity type (entity type 10000 does correspond to the custom entity).  What I don't understand is why CRM is referencing the ActivityPointerBase table.  My code is attempting to update fields in the custom entity itself and is not not referencing any activites related to that custom entity.  What causes CRM to want to update the ActivityPointerBase table, and how can I prevent CRM from attempting to update a record in this table that does not exist?

 

Thanks for any ideas you have.

 

Take care,

Bill

 

 

[2008-05-28 13:47:14.2] Process: w3wp |Organization: dd012f20-e4de-4730-9039-a78b4432de7f |Thread:   11 |Category: Platform.Sql |User: 80efe65c-77ba-453c-81ed-719002e4e873 |Level: Error | BusinessProcessObject.ExecuteNonQuery
 at BusinessProcessObject.ExecuteNonQuery(IDbCommand command, ISqlExecutionContext context)
 at ActivityPointerTrigger.Update(Guid id)
 at TriggersExtension.ExecuteTriggers(BusinessEntity entity, ArrayList triggers, OperationType operationType)
 at TriggersExtension.PostUpdateHandler(Object sender, ExtensionEventArgs e)
 at PostUpdateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
 at BusinessProcessObject.Update(IBusinessEntity entity, ExecutionContext context)
 at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
 at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at LogicalMethodInfo.Invoke(Object target, Object[] values)
 at InternalOperationPlugin.Execute(IPluginExecutionContext context)
 at PluginStep.Execute(PipelineExecutionContext context)
 at Pipeline.Execute(PipelineExecutionContext context)
 at MessageProcessor.Execute(PipelineExecutionContext context)
 at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
 at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
 at RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
 at RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
 at CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
 at CrmService.Execute(Request request)
 at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
 at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at LogicalMethodInfo.Invoke(Object target, Object[] values)
 at WebServiceHandler.Invoke()
 at WebServiceHandler.CoreProcessRequest()
 at SyncSessionlessHandler.ProcessRequest(HttpContext context)
 at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
 at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 at ApplicationStepManager.ResumeSteps(Exception error)
 at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
 at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
 at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
 at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Exception when executing non-query: update ActivityPointerBase set RegardingObjectIdName='Spring weekend camp' where (RegardingObjectId = 'd4cb1fab-e72c-dd11-98ac-0003ff7d3f15' and RegardingObjectTypeCode = 10000) Exception: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.CrmDbConnection.InternalExecuteNonQuery(IDbCommand command)
   at Microsoft.Crm.CrmDbConnection.ExecuteNonQuery(IDbCommand command, Boolean impersonate)
   at Microsoft.Crm.CrmDbConnection.ExecuteNonQuery(IDbCommand command)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.ExecuteNonQuery(IDbCommand command, ISqlExecutionContext context)

 

 


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>