WorkFlow Error

Vote:
 

Hi,

I am getting following error:

ERROR EPiServer.Global - 1.2.5 Unhandled exception in ASP.NET
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ApplicationException: Workflow generated an exception, please look at the previous error for more details. ---> System.ArgumentOutOfRangeException: ArgumentOutOfRange_Index
Parameter name: index
at Mediachase.Commerce.Storage.StorageCollectionBase.System.Collections.IList.get_Item(Int32 index)
at Mediachase.Commerce.Storage.MetaStorageCollectionBase`1.get_Item(Int32 index)
at Mediachase.Commerce.Workflow.Activities.CalculateDiscountsActivity.RemoveGiftPromotionFromOrder(OrderGroup order, PromotionContext promoContext)
at Mediachase.Commerce.Workflow.Activities.CalculateDiscountsActivity.CalculateDiscounts()
at Mediachase.Commerce.Workflow.Activities.CalculateDiscountsActivity.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
--- End of inner exception stack trace ---
at Mediachase.Commerce.Orders.Managers.OrderGroupWorkflowManager.RunWorkflow(OrderGroup orderGroup, String name, Boolean async, Boolean throwException, Dictionary`2 param)
at Mediachase.Commerce.Orders.Managers.OrderGroupWorkflowManager.RunWorkflow(OrderGroup orderGroup, String name)
at Mediachase.Commerce.Website.Helpers.CartHelper.RunWorkflow(String name)
//Some code written, calling CartHelper.RunWorkFlow("CartValidate");
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
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 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Please let me know the reason behind this.

Thanks in advance

#72216
Jun 11, 2013 11:26
Vote:
 

You should ask this question in the EPiServer Commerce forum

You would probably need to include some more info about what you were trying to do when the error occurred.

#72359
Jun 13, 2013 22:49
Vote:
 

Hi,

Did you find out what this error was down to?

It would be more helpful if people answered the questions when submitted regardless of where the post is.

#80840
Feb 03, 2014 16:34
Vote:
 

I agree Jonathan, but if a post goes unanswered for days, you either posted in the wrong place (missing the people who DO have an answer) or you didn't include enough info for people to be able to help. Remember this is a community forum, not EPiServer helpdesk. People on this forum volunteer their time for fellow devs, so it would be wise to make an effort when posting. My initial reply was actually meant to be helpful, not rude :-)

#80852
Feb 03, 2014 23:43
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.