Skip to main content
Question

Print/Email Orders failing with an error occured while initializing procesing


Forum|alt.badge.img

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()

 

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

Hi @travislawson 

is it failing for one sales order shown in the screenshot or it is happening for every order?

Also share the screenshot of automation schedulers setup.

Thanks


Forum|alt.badge.img
manikantad18 wrote:

Hi @travislawson 

is it failing for one sales order shown in the screenshot or it is happening for every order?

Also share the screenshot of automation schedulers setup.

Thanks

 

All orders.  I’m not using an automation scheduler.  I’m doing it manually through Print/Email Orders.


dsimmerly
Pro I
Forum|alt.badge.img+1

@travislawson I would suggest creating a support case so that is can be tested and reviewed 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • August 9, 2023

Hi @travislawson were you able to find a solution? Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings