ERROR in Event Viewer

Hi All,

Anyone seen this error?

System.ArgumentException: Parameter "custNum" must be an integer value.
   at Epicor.Utilities.Objects.GetTypedValue(String val, Type theType, String paramName) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.System\Utilities\Objects.cs:line 43
   at Ice.Hosting.RestApi.OperationInvokeHelper.GetByID(IceDataContext dataContext, String serviceName, NameValueCollection queryParams) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.Ice\Hosting\ServiceCaller\OperationInvokeHelper.cs:line 73
   at Ice.Hosting.RestApi.OperationInvokeHelper.GetByID(String serviceName, NameValueCollection queryParams) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.Ice\Hosting\ServiceCaller\OperationInvokeHelper.cs:line 54
   at Epicor.OData.V3.DataSources.IceODataServiceCaller.LoadItem(TypeData typeData, ContextInfo context, String[] keys, IQueryOptions options) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.RESTApi\Epicor.OData.V3\DataSources\Main\IceODataServiceCaller.cs:line 65
   at Epicor.OData.V3.DataSources.DataSourceProvider.GetEntity(TypeMapping typeMapping, ContextInfo context, String[] keys, IEdmEntityType entityType, IQueryOptions queryOptions) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.RESTApi\Epicor.OData.V3\DataSources\Main\DataSourceProvider.cs:line 53
   at Epicor.OData.V3.Controllers.HandleODataV3Controller.Get(String key) in C:\_Releases\ICE\ICE3.2.400.38\Source\Framework\Epicor.RESTApi\Epicor.OData.V3\Controllers\HandleODataV3Controller.cs:line 71
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.HttpServer.<SendAsync>d__24.MoveNext()

I can’t seem to find what it’s relating…

Thanks
Aaron.

Customer has two keys: CustID (the one the users see in the UI) and CustNum, the internal key. If you’re trying to search for the customer by the CustID (which is alpha) then make sure you’re using the right key.

Supplier has the same thing: VendNum and VendID

This is related to a search?

Maybe if you share what you’re trying to do. Not a lot to go on from the initial post.

I wasn’t trying to do anything. This error appeared from the server logs… It has been appearing for quite a while now I’ve been trying to get to the bottom of it to resolve it… Unfortunately I’ve not nothing to share with you :frowning: Sorry… Sharing is caring and all of that stuff…

Ahhhhh. Based on the trace, I would check any REST calls that are using DynamicQueries. At least that’s a start.

1 Like

We have a REST call in written in PHP I will take a look there…

1 Like