locked
CRM4 Unpublish KB Article giving Object Not Found RRS feed

  • Question

  • Have a client trying to unpublish an article and its giving "Object not found." message. We can't unpublish ANY of the articles. Trace logs aren't giving much info either:

    [2011-05-17 11:22:45.7] Process: w3wp |Organization:f629b16e-fcae-df11-830f-90e6ba155575 |Thread:  35 |Category: Exception |User: 7652ff7b-fcae-df11-830f-90e6ba155575 |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Int32 errorCode)
    	at KbArticleService.UnPublish(BusinessEntity entity, ExecutionContext context)
    	at KbArticleService.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
    	at KbArticleService.Microsoft.Crm.Sdk.IStateful.SetStateStatus(BusinessEntityMoniker , Int32 , Int32 , ExecutionContext )
    	at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& 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 InProcessCrmService.Execute(Object request)
    	at PlatformCommand.ExecuteInternal()
    	at Article.UnPublish(String articleId)
    	at UnpublishDialogPage.ConfigureForm()
    	at AppUIPage.OnPreRender(EventArgs e)
    	at Control.PreRenderRecursiveInternal()
    	at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest()
    	at Page.ProcessRequest(HttpContext context)
    	at _grid_cmds_dlg_unpublish_aspx.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)
    >Crm Exception: Message: The required object does not exist., ErrorCode: -2147210235
    [2011-05-17 11:22:45.7] Process: w3wp |Organization:f629b16e-fcae-df11-830f-90e6ba155575 |Thread:  35 |Category: Platform |User: 7652ff7b-fcae-df11-830f-90e6ba155575 |Level: Error | MessageProcessor.Execute
    	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 InProcessCrmService.Execute(Object request)
    	at PlatformCommand.ExecuteInternal()
    	at Article.UnPublish(String articleId)
    	at UnpublishDialogPage.ConfigureForm()
    	at AppUIPage.OnPreRender(EventArgs e)
    	at Control.PreRenderRecursiveInternal()
    	at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest()
    	at Page.ProcessRequest(HttpContext context)
    	at _grid_cmds_dlg_unpublish_aspx.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)
    >MessageProcessor fail to process message 'SetStateDynamicEntity' for 'kbarticle'.
    [2011-05-17 11:22:45.7] Process: w3wp |Organization:f629b16e-fcae-df11-830f-90e6ba155575 |Thread:  35 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
    	at ErrorInformation.LogError()
    	at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
    	at EventHandler.Invoke(Object sender, EventArgs e)
    	at HttpApplication.RaiseOnError()
    	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)
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
    
    Error Number: 0x80042C05
    
    Error Message: The required object does not exist.
    
    Error Details: The required object does not exist.
    
    Source File: Not available
    
    Line Number: Not available
    
    Request URL: https://<URL HERE>/_grid/cmds/dlg_unpublish.aspx?iObjType=127&iTotal=1&iIndex=0&iId={84BA98DB-7325-DF11-B4E8-000C29AD962A}
    
    Stack Trace Info: [CrmException: The required object does not exist.]
      at Microsoft.Crm.ObjectModel.KbArticleService.UnPublish(BusinessEntity entity, ExecutionContext context)
      at Microsoft.Crm.ObjectModel.KbArticleService.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
      at Microsoft.Crm.ObjectModel.KbArticleService.Microsoft.Crm.Sdk.IStateful.SetStateStatus(BusinessEntityMoniker , Int32 , Int32 , ExecutionContext )
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
      at Microsoft.Crm.Application.Utility.Util.RaiseXMLError(Exception exception)
      at Microsoft.Crm.Dialogs.UnpublishDialogPage.ConfigureForm()
      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    
    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
      at System.Web.UI.Page.HandleError(Exception e)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      at System.Web.UI.Page.ProcessRequest()
      at System.Web.UI.Page.ProcessRequest(HttpContext context)
      at ASP._grid_cmds_dlg_unpublish_aspx.ProcessRequest(HttpContext context)
      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    


    Thank you in advance for your help. If you think you may be able to help with any of my unanswered threads please look at them here
    Tuesday, May 17, 2011 6:28 PM

All replies

  • Is this happening for new articles also ?

    Can you try with new KB article and see what happens. Try by first creating a new KB Article template, than create a new kb article using this new template and publish this. Now try to unpublish this. Does it repro with same exception ?

    Sunday, May 22, 2011 2:58 PM