# Error Ending Activity or adjusting Time **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2017-01-23 17:01 UTC **Views:** 6663 **Replies:** 22 **URL:** https://www.epiusers.help/t/error-ending-activity-or-adjusting-time/36987 --- ## Post #1 by @bordway Wonder if anyone has seen errors like these? Only on one job/asm/operation so far but I've not been able to spot anything different with the job/labor records. 1.) Error when MES user tries to end activity. Exception caught in: Epicor.ServiceModel Error Detail ============ Message: Specified argument was out of the range of valid values. Parameter name: Specified argument was out of the range of valid values. Parameter name: Position is greater than number of delimited values Program: Epicor.ServiceModel.dll Method: ShouldRethrowNonRetryableException Client Stack Trace ================== at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets) at Erp.Proxy.BO.LaborImpl.Update(LaborDataSet ds) at Erp.Adapters.LaborAdapter.OnUpdate() at Ice.Lib.Framework.EpiBaseAdapter.Update() at Erp.UI.App.EndActivityEntry.EndActTransaction.Update() 2.) Error adjust the same labor record in Time entry (after using conversion to force labor record end) Application Error Exception caught in: Epicor.ServiceModel Error Detail ============ Message: Specified argument was out of the range of valid values. Parameter name: Specified argument was out of the range of valid values. Parameter name: Position is greater than number of delimited values Program: Epicor.ServiceModel.dll Method: ShouldRethrowNonRetryableException Client Stack Trace ================== at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets) at Erp.Proxy.BO.LaborImpl.Update(LaborDataSet ds) at Erp.Adapters.LaborAdapter.OnUpdate() at Ice.Lib.Framework.EpiBaseAdapter.Update() at Erp.UI.App.TimeAndExpenseEntry.Transaction.Update() And finally.. related section of the log file #Exception # msg=Specified argument was out of the range of valid values.Parameter name: Position is greater than number of delimited values (ArgumentOutOfRangeException) at Epicor.Utilities.StringExtensions.Entry(String sourceString, Int32 index, Char delimiter) in c:\_Releases\ICE\3.1.400.22\Source\Shared\Framework\Epicor.ServiceModel\Utilities\StringExtensions.cs: line 134 at Erp.Internal.Lib.AdjShopL.RemoveLoad(Decimal HoursToRemove, Boolean IP_WhatIf, JobOper JobOper) in c:\_Releases\ERP\UD10.1.400.22\Source\Server\Internal\Lib\JobOperShared\AdjShopL\adjshopl.cs:line 1549 at Erp.Internal.Lib.AdjShopL.Update_ResourceTimeUsed(JobOper JobOper, JobOper OldJobOper) in c:\_Releases\ERP\UD10.1.400.22\Source\Server\Internal\Lib\JobOperShared\AdjShopL\adjshopl.cs:line 320 at Erp.Internal.Lib.JobOperWrite._JobOperWrite(JobOper JobOper, JobOper OldJobOper, Boolean RollUp) in c:\_Releases\ERP\UD10.1.400.22\Source\Server\Internal\Lib\JobOperShared\JobOperWrite\JobOperWrite.i.cs:line 1386 at Erp.Internal.Lib.JobOperShWrite.DoJobOper(JobOper JobOper, JobOper OLDJobOper) in c:\_Releases\ERP\UD10.1.400.22\Source\Server\Internal\Lib\JobOperShared\JobOperShWrite\JobOperShWrite.cs:line 1232 at Erp.Triggers.JobOper.WriteTrigger.write(JobOper JobOper, JobOper OldJobOper) in c:\_Releases\ERP\UD10.1.400.22\Source\Server\Db\Triggers\JobOper\write.cs:line 232 at Ice.Triggers.TriggerQueue.ExecuteWriteTrigger(IceDataContext context, LinqRow modifiedRecord, LinqRow originalRecord) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 296 at Ice.Triggers.TriggerQueue.RunWriteTriggerInNewLevel(IceDataContext context, LinqRow modifiedRecord, LinqRow originalRecord, Boolean forAddedRow) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 157 at Ice.Triggers.TriggerQueue.<>c__DisplayClass6.b__4() in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 148 at Ice.Triggers.TriggerQueue.RunAtNewLevel(Func`1 buildTriggerRunState, Action action) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 501 at Ice.Triggers.TriggerQueue.RunTriggers(IceDataContext context) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 83 at Ice.IceDataContext.RunUntilAllTriggersHaveExecuted() in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Data\IceDataContext.cs:line 542 at Ice.Triggers.TriggerQueue.RunAtNewLevel(Func`1 buildTriggerRunState, Action action) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Triggers\TriggerQueue.cs:line 501 at Ice.IceDataContext.Validate[TLinqRow](TLinqRow row) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Data\IceDataContext.cs:line 299 at Ice.IceDataContext.Release[TEntity](TEntity& entity) in c:\_Releases\ICE\3.1.400.22\Source\Framework\Epicor.System\Data\IceDataContext.cs:line 249 at Erp.Triggers.Labor --- ## Post #2 by @bw2868bond Which version / patch are you running? Problem is listed as fixed – don’t recall the exact version where the fix happened --- ## Post #3 by @DavisStd1 Try to remove the job the employee is clocked on from the schedule. Once it has been removed, you should be able to end activity. --- ## Post #4 by @Beth Yes, I have seen this error. What I had to do was remove the job from the schedule, then reschedule it. The employee can then end activity. I have an open call with support on this issue. --- ## Post #5 by @bordway [quote="Beth, post:4, topic:36987"] I have seen this error. What I had to do was remove the job from the schedule, then reschedule it. The employee can then end activity. I have an open call with support on this issue. [/quote] Thanks, now that you mention it... I remember having to play with the schedule in V8/E9 sometimes too. With those I believed it was certain entry sequences resulting in "what-if" records being out of whack? Current issue is with version E10 10.1.400.22 Once the labor was ended we still couldn't adjust time. In order to process payroll we just adjusted labor for the day on the labor header. And finally just used a job adjust to add the labor time. --- ## Post #6 by @bordway >>..WhatIf...? And maybe it's just a coincidence but I just got some new feedback from another user... "Quote entry - using the What If Schedule feature - get the blue circle and nothing happens - quit the process ends the Epicor session and need to restart and log back in again" --- ## Post #7 by @Chris_Conn We've seen this issue - When we use schedule forward, the issue occurred. When we used schedule backwards, the problem went away. --- ## Post #8 by @Beth Chris, That is good to know. I was also using schedule forward when this occurred. I'll mention it to support when I talk with them today. Thanks! Beth --- ## Post #9 by @Beth Bruce, I have been waiting on Epicor support to get back with me. I am supposed to have a WebEx with support this morning on this issue. Wish me luck! Beth --- ## Post #10 by @Chris_Conn Beth, Would you mind sharing the fruits of your labor if the call is helpful? --- ## Post #11 by @ERPSysAdmin Good luck Beth! :four_leaf_clover: :wink: Yes, if you could please share your results! Thanks! --- ## Post #12 by @Beth I would be happy to share anything new that I learn! So far the only solution is to remove the job from the schedule and reschedule it which is not the best solution for anyone. --- ## Post #13 by @Beth I was able to finally connect with support on this issue, unfortunately since it is a "random" issue and cannot be reproduced on demand, they have closed the case and asked me to call again when I have the issue. I wish Epicor had a better way of tracking the "random" things. I know it is hard to figure out the random issues, but I have all the data and could give them a copy of the database. But because I couldn't reproduce it at the moment in time when I was speaking with the support person, nothing is captured. :rage: --- ## Post #14 by @bordway >> I couldn't reproduce at the moment >> with the support person >> nothing is captured. Thanks for the feedback >>random I know the feeling If nothing else I'll remember that playing with the schedule can clear some labor entry issues. Reminded me that I've seen similar random behavior in Sales Orders and Quotes. I've come to believe that certain entry sequences throw those records off. The only way I've found to clear records is changing values back and forth or deleting/adding back in. --- ## Post #15 by @Beth Does your company forward schedule or backward schedule? When I saw the errors, I was using forward scheduling. --- ## Post #16 by @bordway >>forward/backward For the most part they schedule all jobs manually from job entry and default to backward. Now that you mention it, I do remember playing with directions on some jobs before. I can't remember why now, only that it wasn't related to the "clocking out" issue. --- ## Post #17 by @Eric_Howell thank you for this thread. I just came across this error. I unengineered the job. removed it from schedule. re-engineered and scheduled and released and it was resolved. version 10.2.300.13 --- ## Post #18 by @cchang We are running into this issue and tried it but did not resolve it. How did you remove it from the schedule. We rescheduled it with a different due date if this is sufficient. --- ## Post #19 by @bordway Job Entry --> - Un-Engineer the job - then Actions --> Schedule --> "Remove from Schedule" - then Re-Engineer and Schedule. Usually clears the issue In some cases I have needed to use the conversion to force the active labor to end. --- ## Post #20 by @cchang I removed it from schedule and still did not clear the issue. What "conversion" did you use to force it to end active labor? --- ## Post #21 by @bordway [quote="cchang, post:20, topic:36987"] What “conversion” [/quote] ![image|690x316](upload://6x4uEZuDT2lAnkNbWlOgEtpEjMt.png) --- ## Post #22 by @cchang I found the conversion in your screenshot but how do I manually run it and select which transaction to end it? --- ## Post #23 by @bordway [quote="cchang, post:22, topic:36987"] ow do I manually run it and select which transaction [/quote] Select the checkboxes then Actions --> Run Pending Conversions You'll be prompted for the Company and EmpID - it should list the labor record(s) and allow you to select which ones to end. --- **Canonical:** https://www.epiusers.help/t/error-ending-activity-or-adjusting-time/36987 **Original content:** https://www.epiusers.help/t/error-ending-activity-or-adjusting-time/36987