none
Reactivate Case Error

    Question

  • Hi Guys,

    When i try to reativate a closed Case

    I get an error "CrmException: The object cannot be updated because it is read-only"

    What does this mean ?

    I still have the same attributes as the vanilla MS CRM with some customizations to the Case/Incidents Form.

    I turned the trace logging on but only just jargon that a Microsoft Tech would understand.

    If anyone is having the same issues please let me know if you have an outcome.
    Wednesday, March 11, 2009 2:15 AM

Answers

  • I think there are one or more fields (e.g: a lookup field) which associated with this case has a inactive status, can you check that?

    Cheers,
    Jim
    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    • Marked as answer by Jim Glass Jr Thursday, March 12, 2009 8:02 PM
    Thursday, March 12, 2009 3:44 PM
    Owner
  • I found it.
    One of my subordinate developers has put this code in onLoad:
    if(crmForm.all.new_internalpriority.DataValue != null)
    {
    crmForm.all.new_internatpriority.readOnly = true;
    crmForm.all.new_internatpriority.ForceSubmit = true;
    (...)
    So each time I chosed Reactivate system was trying to save new_internalpriority attribute. Everything because of ForceSubmit = true.


    Monday, May 25, 2009 1:15 PM

All replies

  • Did you open the Case and select Actions from the top navigation menu then select Reactivate Case?  The case must be in Active status before you can make changes to it.
    Best Regards, Donna
    Wednesday, March 11, 2009 2:50 AM
    Owner
  • Hi Donna,

    thank you for all the replies to my posted questions.

    I create the case and then resolve the case.

    Once the case is resolved, i try to reactivate the case but i the error. I have tried it on Vanilla MS CRM and it works fine. I put all the attributes that a "Business required" from Vanilla MS CRM back into the customization but still no luck.

    I am using MS CRM 4 with rollup 1 applied.

    Have you come across this error before ?

    cheers
    Wednesday, March 11, 2009 4:15 AM
  • What type of customizations have you applied to your case? - seems to be the root issue -
    Scott Sewell http:\\blog.CustomerEffective.com
    Wednesday, March 11, 2009 10:22 AM
    Moderator
  • What is the error message that you are getting, can you please post it here. You can enable DEV error on the web.config file or review the system event viewer to get the error.
    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Newsgroup: http://groups.google.com/group/msdynamicscrm | Chinese Blog: http://liudarren.spaces.live.com
    Wednesday, March 11, 2009 3:18 PM
    Moderator
  • Hi Tay,

    You may you the CRM Trace Viewer to look at the error.

    http://www.stunnware.com/crm2/topic.aspx?id=Framework9

    It may able to help you.


    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Newsgroup: http://groups.google.com/group/msdynamicscrm | Chinese Blog: http://liudarren.spaces.live.com
    Wednesday, March 11, 2009 3:25 PM
    Moderator
  • Hi Scott,

    I tried it with every attribute in MS CRM for Cases to. but still no luck
    Wednesday, March 11, 2009 11:58 PM
  • Tay - does the user have rights to the case resolution activity? - it may be that the error you're seeing is connected with the case resolution activity since it has to be marked 'cancelled' as a part of the case reactivation process.

    Is this for all cases - or just a single case - and does it give the same error if you're an administrator vs. a 'regular' user?


    Scott Sewell http:\\blog.CustomerEffective.com
    Thursday, March 12, 2009 12:55 AM
    Moderator
  • Hi Darren

    Here is the error log from MS CRM trace too. I dont know if any of it makes sense

    cheers

    >Crm Exception: Message: The object cannot be updated because it is read-only., ErrorCode: -2147220946
    [2009-03-12 08:54:20.3] Process: w3wp |Organization:607019cd-ce70-43ac-87be-a51dacd6c685 |Thread:   14 |Category: Platform |User: c507c68e-02b7-418b-97e1-5fa9b524d53f |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 UpdateCommand.Execute()
     at EntityProxy.Update(Boolean performDuplicateCheck)
     at EntityProxy.Update()
     at CaseDetailPage.Open(Object sender, DataEventArgs e)
     at DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
     at AppForm.RaiseDataEvent(FormEventId eventId)
     at EndUserForm.Initialize(Entity entity)
     at CustomizableForm.Execute(Entity entity, String formType)
     at CustomizableForm.Execute(Entity entity)
     at CaseDetailPage.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.ProcessRequestWithNoAssert(HttpContext context)
     at Page.ProcessRequest(HttpContext context)
     at quantumbusinesstechnology_cs_cases_edit_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 'Update' for 'incident'.
    [2009-03-12 08:54:20.3] Process: w3wp |Organization:607019cd-ce70-43ac-87be-a51dacd6c685 |Thread:   14 |Category: Platform |User: c507c68e-02b7-418b-97e1-5fa9b524d53f |Level: Verbose | ExecutionContext.OnErrorRequest
     at ExecutionContext.OnErrorRequest()
     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 UpdateCommand.Execute()
     at EntityProxy.Update(Boolean performDuplicateCheck)
     at EntityProxy.Update()
     at CaseDetailPage.Open(Object sender, DataEventArgs e)
     at DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
     at AppForm.RaiseDataEvent(FormEventId eventId)
     at EndUserForm.Initialize(Entity entity)
     at CustomizableForm.Execute(Entity entity, String formType)
     at CustomizableForm.Execute(Entity entity)
     at CaseDetailPage.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.ProcessRequestWithNoAssert(HttpContext context)
     at Page.ProcessRequest(HttpContext context)
     at quantumbusinesstechnology_cs_cases_edit_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)
    >ExecutionContext not in use (OnErrorRequest) for organization {607019CD-CE70-43AC-87BE-A51DACD6C685}
    [2009-03-12 08:54:20.4] Process: w3wp |Organization:607019cd-ce70-43ac-87be-a51dacd6c685 |Thread:   14 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
     at ErrorInformation.LogError()
     at ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError)
     at ErrorInformation..ctor(Exception exception, Uri requestUrl)
     at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
     at EventHandler.Invoke(Object sender, EventArgs e)
     at HttpApplication.RaiseOnError()
     at HttpApplication.RecordError(Exception error)
     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: 0x8004022E

    Error Message: The object cannot be updated because it is read-only.

    Error Details: The object cannot be updated because it is read-only.

    Source File: Not available

    Line Number: Not available

    Request URL: http://qbt-appserver-1:5555/QuantumBusinessTechnology/cs/cases/edit.aspx?id={C4F8BC24-F70D-DE11-A999-00304879C6DA}

    Stack Trace Info: [CrmException: The object cannot be updated because it is read-only.]
       at Microsoft.Crm.ObjectModel.IncidentService.Update(IBusinessEntity incident, ExecutionContext context)

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
       at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()
       at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute()
       at Microsoft.Crm.Application.Platform.EntityProxy.Update(Boolean performDuplicateCheck)
       at Microsoft.Crm.Application.Platform.EntityProxy.Update()
       at Microsoft.Crm.Web.CS.CaseDetailPage.Open(Object sender, DataEventArgs e)
       at Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
       at Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId)
       at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
       at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
       at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)
       at Microsoft.Crm.Web.CS.CaseDetailPage.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.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.quantumbusinesstechnology_cs_cases_edit_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


    [2009-03-12 08:54:20.4] Process: w3wp |Organization:607019cd-ce70-43ac-87be-a51dacd6c685 |Thread:   10 |Category: Platform.Soap |User: b34d9e30-7cec-da11-8d30-001111616995 |Level: Verbose | SoapContext.DumpSuccessResponse
     at SoapContext.DumpSuccessResponse(Uri uri, String methodName)
     at CrmAuthenticationSoapExtensionBase.ProcessMessage(SoapMessage message)
     at SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
     at SoapServerProtocol.WriteReturns(Object[] returnValues, Stream outputStream)
     at WebServiceHandler.WriteReturns(Object[] returnValues)
     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)

    Thursday, March 12, 2009 12:59 AM
  • Assuming this is a security issue blocking the case from being re-opened, try granting the user the right to the case resolution activity. (or try reopening the case as an administrator which should have all rights.)
    Scott Sewell | http:\\blog.CustomerEffective.com
    Thursday, March 12, 2009 9:27 AM
    Moderator
  • Hi Scott,

    Once again thank you for your reply.

    My access leve is system Administrator but i still cant reopen a case.

    I will try different things and let you know the outcome

    thank you
    Thursday, March 12, 2009 1:42 PM
  • is this all cases - or just a specific case - and do you have any jscript / customization on the case form/fields?
    Scott Sewell | http:\\blog.CustomerEffective.com
    Thursday, March 12, 2009 1:48 PM
    Moderator
  • I think there are one or more fields (e.g: a lookup field) which associated with this case has a inactive status, can you check that?

    Cheers,
    Jim
    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    • Marked as answer by Jim Glass Jr Thursday, March 12, 2009 8:02 PM
    Thursday, March 12, 2009 3:44 PM
    Owner
  • Hi Jim,

    Thank you for your reply.

    What do you mean by Inactive Status. I have 3 lookup fields that relate to an account, contract, Contract line. The account is active, but the Contract and Contract Line are "expired"

    Besides thats, no other attribute is inactive ?

    cheers
    Friday, March 13, 2009 12:17 AM
  • Yes this is probably the case, the 'Expired' Contract / Contract Line are likely the reason your case cannot be reactivated - can you change those two objects back to 'active' status long enough to test whether this will allow you to reactivate the case?




    Scott Sewell | http:\\blog.CustomerEffective.com
    Friday, March 13, 2009 2:23 AM
    Moderator
  • Hello,

    I have a similar issue. In my case the contract is Active. Any other things to check?
    Tuesday, May 12, 2009 2:36 PM
  • So you are not able to re-open a Case that is closed, correct and you have System Admin rights?  Can you turn Dev Errors on and you should get a more detailed error message.  Download this tool, turn Dev Errors on, recreate the error, and Turn Dev Errors off.  You can also check the event viewer on the CRM server for additional error information.

    http://blogs.msdn.com/benlec/archive/2008/03/04/crmdiagtool4-for-microsoft-crm-4-0-has-been-released.aspx
    Best Regards, Donna
    Tuesday, May 12, 2009 3:12 PM
    Owner
  • Yes, I have System Administrator security Role.

    I have 3 lookups on case: account (active), contract (active), contract line (existing).

    I have Dev errors turned on and when I try to reactivate case I get error:

    Error Description:
    The object cannot be updated because it is read-only.

    Error Details:
    The object cannot be updated because it is read-only.

    Full Stack:
    [CrmException: The object cannot be updated because it is read-only.]
      at Microsoft.Crm.ObjectModel.IncidentService.Update(IBusinessEntity incident, ExecutionContext context)

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
      at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
      at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
      at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()
      at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute()
      at Microsoft.Crm.Application.Platform.EntityProxy.Update(Boolean performDuplicateCheck)
      at Microsoft.Crm.Application.Platform.EntityProxy.Update()
      at Microsoft.Crm.Web.CS.CaseDetailPage.Open(Object sender, DataEventArgs e)
      at Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
      at Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId)
      at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
      at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
      at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)
      at Microsoft.Crm.Web.CS.CaseDetailPage.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.ProcessRequestWithNoAssert(HttpContext context)
      at System.Web.UI.Page.ProcessRequest(HttpContext context)
      at ASP.bcsdev_cs_cases_edit_aspx.ProcessRequest(HttpContext context)
      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

    Other Message:

    Error Number:
    0x8004022E

    Source File:
    Not available

    Line Number:
    Not available
     
     
    Date: 05-14-2009

    Time: 11:13:35

    Server: virtual
     
     
    Request URL:
    http://virtual:5555/bcsdev/cs/cases/edit.aspx?id={95C27693-5B1F-DE11-A442-001E8C0EC29B}

     

    Here is Event viewer log: (it's in polish but maybe the stack trace will tell You something)

    Typ zdarzenia: Ostrzeżenie
    Źródło zdarzenia: ASP.NET 2.0.50727.0
    Kategoria zdarzenia: Zdarzenie sieci web
    Identyfikator zdarzenia: 1309
    Data: 2009-05-14
    Godzina: 11:03:57
    Użytkownik: Brak
    Komputer: VIRTUAL
    Opis:
    Kod zdarzenia: 3005
    Komunikat zdarzenia: Wystąpił nieobsługiwany wyjątek.
    Czas zdarzenia: 2009-05-14 11:03:57
    Czas zdarzenia (UTC): 2009-05-14 09:03:57
    Identyfikator zdarzenia: 2e237cc4022b4dcbafcfa975493f96de
    Sekwencja zdarzenia: 23712
    Wystpienie zdarzenia: 7
    Kod szczegowy zdarzenia: 0
     
    Informacje o aplikacji:
      Domena aplikacji: /LM/W3SVC/4/ROOT-3-128866978612574417
      Poziom zaufania: Full
      cieka wirtualna aplikacji: /
      cieka aplikacji: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
      Nazwa komputera: VIRTUAL
     
    Informacje o procesie:
      Identyfikator procesu: 5324
      Nazwa procesu: w3wp.exe
      Nazwa konta: ZARZĄDZANIE NT\USŁUGA SIECIOWA
     
    Informacje o wyjtku:
      Typ wyjtku: TargetInvocationException
      Komunikat wyjtku: Exception has been thrown by the target of an invocation.
     
    Informacje o daniu:
      Adres URL dania: http://virtual:5555/bcsdev/cs/cases/edit.aspx?id={95C27693-5B1F-DE11-A442-001E8C0EC29B}
      cieka dania: /bcsdev/cs/cases/edit.aspx
      Adres hosta uytkownika: 192.168.1.153
      Uytkownik: ITV\dkolodziejczyk
      Jest uwierzytelniony: True
      Typ uwierzytelniania: Negotiate
      Nazwa konta wtku: ZARZĄDZANIE NT\USŁUGA SIECIOWA
     
    Informacje o wtku:
      Identyfikator wtku: 1
      Nazwa konta wtku: ZARZĄDZANIE NT\USŁUGA SIECIOWA
      Personifikuje: False
      lad stosu: w System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      w System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      w System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
      w System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      w System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
      w Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
      w Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
      w Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
      w Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
      w Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
      w Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      w Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      w Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      w Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
      w Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
      w Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()
      w Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute()
      w Microsoft.Crm.Application.Platform.EntityProxy.Update(Boolean performDuplicateCheck)
      w Microsoft.Crm.Application.Platform.EntityProxy.Update()
      w Microsoft.Crm.Web.CS.CaseDetailPage.Open(Object sender, DataEventArgs e)
      w Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
      w Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId)
      w Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
      w Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
      w Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)
      w Microsoft.Crm.Web.CS.CaseDetailPage.ConfigureForm()
      w Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
      w System.Web.UI.Control.PreRenderRecursiveInternal()
      w System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
     
    Szczegy zdarzenia niestandardowego:

    Aby znaleźć więcej informacji, zobacz http://go.microsoft.com/fwlink/events.asp w Centrum pomocy i obsługi technicznej.

     

    Thursday, May 14, 2009 9:29 AM
  • Try this, create a workflow that changes the status of a Case to Active and select a Status Reason that is appropriate from the picklist.  Create the workflow for use at the Org level and to run On Demand.  Run the workflow against the case and let me know what happens.
    Best Regards, Donna
    Thursday, May 14, 2009 2:23 PM
    Owner
  • Workflow reactivates the case so probably it is client side problem. I don't have any onSave scripts on the form. Can the problem be caused by onLoan scripts?
    Monday, May 25, 2009 12:11 PM
  • Remove all scripting and custom code from the form / entity, publish the changes and then try to reactivate the case.  You can add the scripts and custom code back to the entity in a methodical way to allow you to test a case that is in closed status to see which script might be causing the problem.
    Best Regards, Donna
    Monday, May 25, 2009 12:34 PM
    Owner
  • I found it.
    One of my subordinate developers has put this code in onLoad:
    if(crmForm.all.new_internalpriority.DataValue != null)
    {
    crmForm.all.new_internatpriority.readOnly = true;
    crmForm.all.new_internatpriority.ForceSubmit = true;
    (...)
    So each time I chosed Reactivate system was trying to save new_internalpriority attribute. Everything because of ForceSubmit = true.


    Monday, May 25, 2009 1:15 PM
  • It's been a year since this thread, but we just ran into the same issue at a client today. It was the ForceSubmit code that was causing issues because it was being called on Reactivate. We weren't aware that "reactivate" actually fired the onsave code before it executed.... Thanks for posting this.  Very helpful!
    Monday, August 16, 2010 3:21 PM
  • Hello,

    I follewed your idea and solve the same problem, thanks

    Wednesday, November 30, 2011 10:33 AM