Ship Head Rest call failed to run Autoprint Report

I have a REST call that uses the Update EXT.
“[Patch] /CustShips({Company},{PackNum}) ‘Calls UpdateExt to update CustShip for the service’”

All I’m is checking the ReadyToInvoice checkbox using the following fields.

Company = 2xxx8
PackNum= 328771
Input = {“ReadyToInvoice”:true}

The REST call will work on the ReadyToInvoice checkbox but it will not let the autoprint occur (Packing Slip Print) which we’re needing for EDI to inform our customers that the order has shipped.

This is the error message that’s returned in REST.

{
  "HttpStatus": 400,
  "ReasonPhrase": "REST API Exception",
  "ErrorMessage": "Failed to run autoprint report. Error: Business Logic Error\r\nBusiness Layer Exception\r\nBusinessObjectException\r\n\tDescription: Failed to run autoprint report. Error: Ice.Common.HostException: Application server URL in the System Agent is not specified. It is required for REST calls.\r\n   at Ice.Hosting.LauncherBase.SetAppServerUrl(Boolean ignoreOperationContext, Uri& appServerUrl, String& dnsEndpointIdentity) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\TaskCaller\\LauncherBase.cs:line 89\r\n   at Ice.Hosting.LauncherBase..ctor(Boolean ignoreOperationContext) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\TaskCaller\\LauncherBase.cs:line 26\r\n   at Ice.Lib.AutoPrint.SubmitImmediateAutoPrintReport.SubmitImmediateReport(IceRow reportParameters, Object reportServiceBO) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\BAM\\AutoPrint\\SubmitImmediateAutoPrintReport.cs:line 41\r\n\tProgram: Ice.Lib.BAM.dll\r\n\tMethod: SubmitImmediateReport\r\n\tLine Number: 41\r\n\tColumn Number: 17\r\n\tServer Trace Stack:    at Ice.Lib.AutoPrint.SubmitImmediateAutoPrintReport.SubmitImmediateReport(IceRow reportParameters, Object reportServiceBO) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\BAM\\AutoPrint\\SubmitImmediateAutoPrintReport.cs:line 41\r\n   at Epicor.Customization.Bpm.DB6BBAC85CACA84258816F75AA0B6EA9EE.PostTranDirective_AutoPrint856_867E30C07D6240F2B47E0033612E7311.A002_AutoPrintAction()\r\n   at Epicor.Customization.Bpm.DB6BBAC85CACA84258816F75AA0B6EA9EE.PostTranDirective_AutoPrint856_867E30C07D6240F2B47E0033612E7311.ExecuteCore()\r\n   at Epicor.Customization.Bpm.DirectiveBase`3.Execute(TParam parameters) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\DirectiveBase.Generic.cs:line 146\r\n   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at Epicor.Customization.Bpm.CustomizationBase2`3.Execute(TParam parameters) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\CustomizationBase2.cs:line 73\r\n   at Epicor.Customization.Bpm.Standard.MonitoringSessionManager.ProcessCollectedData(IceDataContext db, IRowChangesCollection data, IDirectiveEnabler enabler) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\Standard\\MonitoringSessionManager.cs:line 145\r\n   at Epicor.Customization.Bpm.SvcFacadeBase`3.Epicor.Hosting.IBpmReadyService.FinalizeCall(Object state, Boolean fail) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\SvcFacadeBase.Generic.cs:line 227\r\n   at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func`2 func) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Framework\\Epicor.System\\Hosting\\OperationBoundInvoker.cs:line 32\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.CallInvoker(IceDataContext dataContext, Type svcType, MethodInfo mi, Object[] inputs, Boolean isRoot) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 405\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.MakeServiceCall(IceDataContext dataContext, TypeEntry svcTe, String serviceMethod, Object[] parameters) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 344\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.UpdateExt(IceDataContext dataContext, String serviceName, IceTableset& updExt, BOUpdErrorTableset& errorDataSet) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 252\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.UpdateExt(String serviceName, IceTableset& updExt, BOUpdErrorTableset& errorDataSet) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 236\r\n   at Epicor.OData.V3.DataSources.IceODataServiceCaller.UpdateItem(TypeData typeData, ContextInfo context, IceTableset updExtDs) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\IceODataServiceCaller.cs:line 81\r\n   at Epicor.OData.V3.DataSources.DataSourceProvider.Update(TypeData typeData, ContextInfo context, IEdmEntityObject entity) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\DataSourceProvider.cs:line 347\r\n   at Epicor.OData.V3.DataSources.DataSourceProvider.Patch(TypeMapping typeMapping, ContextInfo context, String[] keys, IEdmEntityObject patch, IEdmEntityType entityType) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\DataSourceProvider.cs:line 174\r\n   at Epicor.OData.V3.Controllers.HandleODataV3Controller.Patch(String key, IEdmEntityObject patch) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\Controllers\\HandleODataV3Controller.cs:line 219\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__0(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsync(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<>c.<ExecuteAsync>b__5_0(ActionInvoker innerInvoker)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<>c__DisplayClass7_0`1.<InvokeActionWithActionFilters>b__0()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.ExecuteAuthorizationFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.System.Web.Http.Filters.IAuthorizationFilter.ExecuteAuthorizationFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Controllers.AuthorizationFilterResult.ExecuteAsync(CancellationToken cancellationToken)\r\n   at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.HttpServer.<>n__0(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.HttpServer.<SendAsync>d__24.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.Owin.HttpMessageHandlerAdapter.<InvokeCore>d__20.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Owin.HttpMessageHandlerAdapter.InvokeCore(IOwinContext context, IOwinRequest owinRequest, IOwinResponse owinResponse)\r\n   at Epicor.RESTApi.ConfigureStartup.<>c__DisplayClass5_0.<ConfigureIceAuth>b__0(IOwinContext context, Func`1 next) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.RESTApi\\ConfigureStartup.cs:line 184\r\n   at Epicor.RESTApi.Middleware.ApiKeyEnforcerMiddleware.<Invoke>d__3.MoveNext() in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.RESTApi\\Middleware\\ApiKeyEnforcerMiddleware.cs:line 44\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Epicor.RESTApi.Middleware.ApiKeyEnforcerMiddleware.Invoke(IOwinContext context)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.HandleCorsRequestAsync(IOwinContext context, CorsPolicy policy, CorsRequestContext corsRequestContext)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.<Invoke>d__4.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.Invoke(IDictionary`2 environment)\r\n   at Microsoft.Owin.Mapping.MapWhenMiddleware.<Invoke>d__3.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Mapping.MapWhenMiddleware.Invoke(IDictionary`2 environment)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.<RunApp>d__7.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.RunApp(Func`2 entryPoint, IDictionary`2 environment, TaskCompletionSource`1 tcs, StageAsyncResult result)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata)\r\n   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)\r\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)\r\n   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)\r\n   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)\r\n   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)\r\n   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n\r\n\r\n",
  "ErrorType": "Ice.Common.BusinessObjectException",
  "ErrorDetails": [
    {
      "Message": "Failed to run autoprint report. Error: Business Logic Error\r\nBusiness Layer Exception\r\nBusinessObjectException\r\n\tDescription: Failed to run autoprint report. Error: Ice.Common.HostException: Application server URL in the System Agent is not specified. It is required for REST calls.\r\n   at Ice.Hosting.LauncherBase.SetAppServerUrl(Boolean ignoreOperationContext, Uri& appServerUrl, String& dnsEndpointIdentity) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\TaskCaller\\LauncherBase.cs:line 89\r\n   at Ice.Hosting.LauncherBase..ctor(Boolean ignoreOperationContext) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\TaskCaller\\LauncherBase.cs:line 26\r\n   at Ice.Lib.AutoPrint.SubmitImmediateAutoPrintReport.SubmitImmediateReport(IceRow reportParameters, Object reportServiceBO) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\BAM\\AutoPrint\\SubmitImmediateAutoPrintReport.cs:line 41\r\n\tProgram: Ice.Lib.BAM.dll\r\n\tMethod: SubmitImmediateReport\r\n\tLine Number: 41\r\n\tColumn Number: 17\r\n\tServer Trace Stack:    at Ice.Lib.AutoPrint.SubmitImmediateAutoPrintReport.SubmitImmediateReport(IceRow reportParameters, Object reportServiceBO) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\BAM\\AutoPrint\\SubmitImmediateAutoPrintReport.cs:line 41\r\n   at Epicor.Customization.Bpm.DB6BBAC85CACA84258816F75AA0B6EA9EE.PostTranDirective_AutoPrint856_867E30C07D6240F2B47E0033612E7311.A002_AutoPrintAction()\r\n   at Epicor.Customization.Bpm.DB6BBAC85CACA84258816F75AA0B6EA9EE.PostTranDirective_AutoPrint856_867E30C07D6240F2B47E0033612E7311.ExecuteCore()\r\n   at Epicor.Customization.Bpm.DirectiveBase`3.Execute(TParam parameters) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\DirectiveBase.Generic.cs:line 146\r\n   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at Epicor.Customization.Bpm.CustomizationBase2`3.Execute(TParam parameters) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\CustomizationBase2.cs:line 73\r\n   at Epicor.Customization.Bpm.Standard.MonitoringSessionManager.ProcessCollectedData(IceDataContext db, IRowChangesCollection data, IDirectiveEnabler enabler) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\Standard\\MonitoringSessionManager.cs:line 145\r\n   at Epicor.Customization.Bpm.SvcFacadeBase`3.Epicor.Hosting.IBpmReadyService.FinalizeCall(Object state, Boolean fail) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Server\\Internal\\Lib\\Epicor.Customization.Bpm\\SvcFacadeBase.Generic.cs:line 227\r\n   at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func`2 func) in C:\\_Releases\\ICE\\ICE3.2.400.0\\Source\\Framework\\Epicor.System\\Hosting\\OperationBoundInvoker.cs:line 32\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.CallInvoker(IceDataContext dataContext, Type svcType, MethodInfo mi, Object[] inputs, Boolean isRoot) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 405\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.MakeServiceCall(IceDataContext dataContext, TypeEntry svcTe, String serviceMethod, Object[] parameters) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 344\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.UpdateExt(IceDataContext dataContext, String serviceName, IceTableset& updExt, BOUpdErrorTableset& errorDataSet) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 252\r\n   at Ice.Hosting.RestApi.OperationInvokeHelper.UpdateExt(String serviceName, IceTableset& updExt, BOUpdErrorTableset& errorDataSet) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.Ice\\Hosting\\ServiceCaller\\OperationInvokeHelper.cs:line 236\r\n   at Epicor.OData.V3.DataSources.IceODataServiceCaller.UpdateItem(TypeData typeData, ContextInfo context, IceTableset updExtDs) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\IceODataServiceCaller.cs:line 81\r\n   at Epicor.OData.V3.DataSources.DataSourceProvider.Update(TypeData typeData, ContextInfo context, IEdmEntityObject entity) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\DataSourceProvider.cs:line 347\r\n   at Epicor.OData.V3.DataSources.DataSourceProvider.Patch(TypeMapping typeMapping, ContextInfo context, String[] keys, IEdmEntityObject patch, IEdmEntityType entityType) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\DataSources\\Main\\DataSourceProvider.cs:line 174\r\n   at Epicor.OData.V3.Controllers.HandleODataV3Controller.Patch(String key, IEdmEntityObject patch) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.OData.V3\\Controllers\\HandleODataV3Controller.cs:line 219\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__0(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsync(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<>c.<ExecuteAsync>b__5_0(ActionInvoker innerInvoker)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<>c__DisplayClass7_0`1.<InvokeActionWithActionFilters>b__0()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.ExecuteAuthorizationFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.System.Web.Http.Filters.IAuthorizationFilter.ExecuteAuthorizationFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)\r\n   at System.Web.Http.Controllers.AuthorizationFilterResult.ExecuteAsync(CancellationToken cancellationToken)\r\n   at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.HttpServer.<>n__0(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.HttpServer.<SendAsync>d__24.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Web.Http.Owin.HttpMessageHandlerAdapter.<InvokeCore>d__20.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at System.Web.Http.Owin.HttpMessageHandlerAdapter.InvokeCore(IOwinContext context, IOwinRequest owinRequest, IOwinResponse owinResponse)\r\n   at Epicor.RESTApi.ConfigureStartup.<>c__DisplayClass5_0.<ConfigureIceAuth>b__0(IOwinContext context, Func`1 next) in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.RESTApi\\ConfigureStartup.cs:line 184\r\n   at Epicor.RESTApi.Middleware.ApiKeyEnforcerMiddleware.<Invoke>d__3.MoveNext() in C:\\_Releases\\ICE\\ICE3.2.400.11\\Source\\Framework\\Epicor.RESTApi\\Epicor.RESTApi\\Middleware\\ApiKeyEnforcerMiddleware.cs:line 44\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Epicor.RESTApi.Middleware.ApiKeyEnforcerMiddleware.Invoke(IOwinContext context)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.HandleCorsRequestAsync(IOwinContext context, CorsPolicy policy, CorsRequestContext corsRequestContext)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.<Invoke>d__4.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Cors.CorsMiddleware.Invoke(IDictionary`2 environment)\r\n   at Microsoft.Owin.Mapping.MapWhenMiddleware.<Invoke>d__3.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Mapping.MapWhenMiddleware.Invoke(IDictionary`2 environment)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.<RunApp>d__7.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.RunApp(Func`2 entryPoint, IDictionary`2 environment, TaskCompletionSource`1 tcs, StageAsyncResult result)\r\n   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata)\r\n   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)\r\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)\r\n   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)\r\n   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)\r\n   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)\r\n   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)\r\n\r\n\r\n",
      "Type": "Error",
      "Program": "ERP.ShipHead.Triggers.dll",
      "Method": "A002_AutoPrintAction"
    }
  ]
}

@Mark_Wonsil
@JoseCGomez

Any ideas here will be greatly appreciated.
I believe that I’m needing to apply the Application Server URL somewhere within the REST call. But I’m not sure exactly how to do it.

referencing this post since there was a similar error message.

That error seems to indicate a setup issue with System Agent? Looks like it wants the App Server url here

3 Likes

Where would I get the URL?

-Steven Hutcheson

Is just the App Server URL you can get it anywhere the bottom right of Epicor screen, Admin Console anywhere really.
Is just the App Serer URL that the System Agent Connects to, if you want to be 100% certain you can go to the System Agent Configuration Screen on the Server.

1 Like

Epicor administration console for your app server instance if I am not mistaken.

I don’t believe we have access to the admin console since we’re a cloud customer. I’ll see if we’re able to get the app server URL front there Epicor Saas team.

I’ll try this. Thanks Jose

Is your auto-print set to immediate? Try queued if so. I believe this will resolve your issue.

image

1 Like

Auto print works in the client. It’s just not working when we make REST api calls.

I think that the AppServer URL needs to be filled in, but we don’t have access to add it since we’re a cloud account.

Currently I’m waiting on Epicor support.

image001.png

I understand - if you switch to Queued it will work from Rest and the Client!

Dan -
Thanks. I’ll try it now.

Dan -
Is this setting in Report Style Maintenance?
I’m not seeing it.

This would be in a data directive on ShipHead and then in the Auto-Print widget.

It seems that it was already set with ‘queued’ and not ‘immediate’.
I think I’m going to have to continue with the AppServer URL unless there’s another setting that I’m missing.

Interesting. I ran into this a while ago and have several auto-print setups that works like this (using Rest as trigger). The System Agent URL is not present in all of these which goes from 10.2.300 - 10.2.500 and SaaS. I did notice in your log this part of the message - AutoPrint.SubmitImmediateAutoPrintReport.SubmitImmediateReport - which means it is set to immediate. I do get the same exact error if I switch from queued to immediate. Either way - once the URL is set it works either way.

Dan-
You’re absolutely right. It turns out that on my first look I was in the wrong BPM.
I changed the correct BPM to ‘Queued’ and now it’s initiating the autoprint without error.

Thanks. for your help here.

1 Like

Yes, this is good to know. The Cloud Team updated our URL but it’s nice to have a no touch solution like this. Thanks @danbedwards.

2 Likes