I’m trying to automatically e-mail sales orders that are open using the Print/Email Orders process. It shows this generic error message. I can open the sales order and click “email order” and it goes through no problem. I can go to “print order” and then email and it shows fine as well. It’s only when using this automated process.
Trace Results
Error: At least one item has not been processed.
at PX.Data.PXProcessingBase`1.ProcessMultipleItems[Table](PXGraph _Graph, String graphType, String stepID, List`1 steps, String action, String menu, IEnumerable parameters, List`1 src, PXProcessingMessagesCollection`1 perrowmessage, CancellationToken cancellationToken)
at PX.Data.PXProcessingBase`1.<>c__DisplayClass78_0.<_SetProcessTargetInternal>b__3(List`1 list, CancellationToken cancellationToken)
at PX.Data.PXProcessing`1.<>c__DisplayClass82_0.<Process>b__1(CancellationToken cancellationToken)
at PX.Concurrency.Internal.PXLongOperationPars.PopAndRunDelegate(CancellationToken cancellationToken)
at PX.Concurrency.Internal.RuntimeLongOperationManager.PerformOperation(PXLongOperationPars p)
Error: An invalid argument has been specified.
Parameter name: PX.Objects.SO.SOOrderProcessSelected
at PX.Data.PXFirstChanceExceptionLogger.ProfilerFirstChanceException(Object o, FirstChanceExceptionEventArgs args)
at IC.IC_SOOrderEntry.AddFiltersToDeactivateTranMap(PXCache cache, Object row, PXTranStatus tranStatus)
at IC.IC_SOOrderEntry._(RowPersisted`1 e)
at PX.Data.PXRowPersisted.Invoke(PXCache sender, PXRowPersistedEventArgs e)
at PX.Data.PXCache.OnRowPersisted(Object item, PXDBOperation operation, PXTranStatus tranStatus, Exception exception)
at PX.Data.PXCache`1.PersistUpdated(Object row, Boolean bypassInterceptor)
at PX.Data.PXCache`1.Persist(PXDBOperation operation)
at PX.Data.PXGraph.Persist()
at PX.Objects.SO.SOOrderEntry.PersistImpl()
at PX.Objects.SO.SOOrderEntry.Persist()
at PX.Objects.AM.GraphExtensions.SOOrderEntryAMExtension.Persist(Action del)
at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
at ShipHawk.SHWKSOOrderEntryExt.Persist(PersistDelegate del)
at PX.Objects.SO.GraphExtensions.SOOrderEntryExt.CreatePaymentAPIExt.Persist(PersistDelegate baseMethod)
at PX.SM.AUWorkflowEngine.BeforeStartOperation(PXGraph graph)
at PX.Concurrency.LongOperationManager.StartOperation(PXGraph graph, Action`1 method)
at PX.Data.PXLongOperation.StartOperation(PXGraph graph, PXToggleAsyncDelegate method)
at PX.Objects.SO.SOOrderEntry.Notification(PXAdapter adapter, String notificationCD)
at PX.Objects.SO.SOOrderEntry.EmailSalesOrder(PXAdapter adapter, String notificationCD)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at PX.Data.PXAction`1.RunHandler(PXAdapter adapter)
at PX.Data.PXAction`1.<Press>d__38.MoveNext()
at PX.Data.PXProcessingBase`1.InvokeWorkflowDrivenAction(PXGraph graph, String action, String menu, List`1 recordsList, PressActionDelegate pressAction, CancellationToken cancellationToken)
at PX.Data.PXProcessingBase`1.InvokeAutomationActionInternal(PXGraph graph, String graphName, String stepID, List`1 steps, String action, String menu, Object record, IEnumerable parameters, CancellationToken cancellationToken)
at PX.Data.PXProcessingBase`1.ProcessMultipleItems[Table](PXGraph _Graph, String graphType, String stepID, List`1 steps, String action, String menu, IEnumerable parameters, List`1 src, PXProcessingMessagesCollection`1 perrowmessage, CancellationToken cancellationToken)
at PX.Data.PXProcessingBase`1.<>c__DisplayClass78_0.<_SetProcessTargetInternal>b__3(List`1 list, CancellationToken cancellationToken)
at PX.Data.PXProcessing`1.<>c__DisplayClass82_0.<Process>b__1(CancellationToken cancellationToken)
at PX.Concurrency.Internal.PXLongOperationPars.PopAndRunDelegate(CancellationToken cancellationToken)
at PX.Concurrency.Internal.RuntimeLongOperationManager.PerformOperation(PXLongOperationPars p)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at PX.Concurrency.Internal.PXThreadPool.RunItem(RequestItem item)
at PX.Concurrency.Internal.PXThreadPool.Run()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()