7 Replies Latest reply: Feb 26, 2014 11:52 PM by Md. Arif Khan RSS

    Unhandled Error when trying to move workflow to Another Status.

    1051094

      Hi,

      After Signing off the workflow when the user tried to move the workflow by going to Spec then  user experienced an unhandled error.

      Please find the below error and helping me in understanding because of what the below error will occur.

       

       

      ErrorType: First| ErrorCount: 0| App: GSM| SessionId: bdaff3e5-9361-68c3-2bcb-8b458badc3b1| UserId: 500698| IsNewSession: False| ServerID: 172.21.164.219| Misc: Spec 5003637-002 ; 785169 GR Corrugated 18 lb Salted Butter Western Quarters Land O Lakes|

      Exception: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Xeno.WorkflowCore.WorkflowException: Error during SpecID: 1009ba48f324-1eb1-46b8-b8b7-83fe8745f8e5

      : figuring out workflow issue ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.

      Parameter name: length

         at Xeno.Prodika.GSMLib.Workflow.SpecTransientLinearActivity.MakeTransition(ITransitionContext ctx)

       

       

      Please help.

        • 1. Re: Unhandled Error when trying to move workflow to Another Status.
          Md. Arif Khan

          As per the description, when user tries to move the spec from "X" status to "Y" then the unhandled error occurs. i have faced the similar issues in recent past, please uncheck "Evaluate First Criteria" and check "Evaluate All" for the two status, you can give it a try.    

          • 2. Re: Unhandled Error when trying to move workflow to Another Status.
            1051094

            Hi,

             

            When I workflow the spec which created first time from Review to Approved state then the unhandled error is not coming up but when i versioned the spec by using issue and trying to move from Review to Approved State then unhandled error is throwing up with the below.

             

            ErrorType: First| ErrorCount: 0| App: GSM| SessionId: bdaff3e5-9361-68c3-2bcb-8b458badc3b1| UserId: 500698| IsNewSession: False| ServerID: 172.21.164.219| Misc: Spec 5003637-002 ; 785169 GR Corrugated 18 lb Salted Butter Western Quarters Land O Lakes|
            Exception: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Xeno.WorkflowCore.WorkflowException: Error during SpecID: 1009ba48f324-1eb1-46b8-b8b7-83fe8745f8e5
            : figuring out workflow issue ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
            Parameter name: length
               at Xeno.Prodika.GSMLib.Workflow.SpecTransientLinearActivity.MakeTransition(ITransitionContext ctx)
               at Xeno.LinearWorkflow.WorkflowObjects.LinearActivityBase.MoveForward(ILinearTransitionContext ctx)
               at Xeno.Web.UI.LinearWorkflow.LinearWorkflowActionPageBase.MakeTransition(ILinearTransitionContext ctx)
               at prodika.frmLinearWorkflowActionPopup.MakeTransition(ILinearTransitionContext ctx)
               --- End of inner exception stack trace ---
               at Xeno.Prodika.GSMLib.DataSources.ResolutionSetAwareSpecLinearWorkflowPopupDataSource.HandleException(ILinearTransitionContext ctx, Exception e)
               at prodika.frmLinearWorkflowActionPopup.MakeTransition(ILinearTransitionContext ctx)
               at Xeno.Web.UI.LinearWorkflow.LinearWorkflowActionPageBase.MakeTransition(Int32 toPos)
               at Xeno.Web.UI.LinearWorkflow.LinearWorkflowActionPageBase.DoShortCircuitTransition()
               at Xeno.Web.UI.LinearWorkflow.LinearWorkflowActionPageBase.OnPreRender(EventArgs e)
               at System.Web.UI.Control.PreRenderRecursiveInternal()
               at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
               --- End of inner exception stack trace ---
               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.popups_frmlinearworkflowactionpopup_aspx.ProcessRequest(HttpContext context)
               at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
               at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

            the message resource is present but the message is not found in the string/message table

             

            Can you please let me know what could be the issue.

             

            Thanks,

            Rohini

            • 3. Re: Unhandled Error when trying to move workflow to Another Status.
              Md. Arif Khan

              Please verify the following :

               

              1. If you have written some Custom Code, then please verify if the context is specified correctly.

              2. Evaluate All Criteria check box is selected.

              3. Check if permissions are specified correctly or not.

              • 4. Re: Unhandled Error when trying to move workflow to Another Status.
                Ron M-Oracle

                By Custom Code, it means do you have any:

                Custom Validations set up for the workflow event? You can find them in the ValidationSettings.xml. There may be a validation that is not set up correctly there.

                or

                Workflow Actions or Guard Conditions set up for this workflow? They are configured using the CustomWFAExtensionsConfig.xml file in config\Extensions, and then specified in the WFA UI.

                • 5. Re: Unhandled Error when trying to move workflow to Another Status.
                  Md. Arif Khan

                  Yes Guard Conditions.         

                  • 6. Re: Unhandled Error when trying to move workflow to Another Status.
                    Ron M-Oracle

                    Have you tried to debug the Guard Condition and see if there is an error there?

                    What about Validation? Do you have any Validation around workflow? If so, have you tried to disable it to see if that is what is causing the issue?

                    • 7. Re: Unhandled Error when trying to move workflow to Another Status.
                      Md. Arif Khan

                      I faced this issue long back and for me the reason was Evaluate All unchecked, here i was just trying to suggest the reasons that may b behind this Unhandled Error to db571e3f-ce0e-4efd-a0a4-41f7f2a7263f