Hi,
My application generates request, which creates bill. It worked till Monday, but after Acumatica was updated I started receive such error :
"Receipt Line PR574695 - 1 not found.",. I checked Acumatica Endpoint and everything what was added is not missed.
Here is example of request
{
"VendorRef": {
"value": "103tyjt5462"
},
"DueDate": {
"value": "04/28/2024"
},
"Vendor": {
"value": "00018"
},
"Date": {
"value": "02/28/2024"
},
"Description": {
"value": "dhID \"4\""
},
"ReleaseBill": {
"value": "True"
},
"PostPeriod": {
"value": "02-2024"
},
"Details": P
{
"InventoryID": {
"value": "BRUNO"
},
"Description": {
"value": "StuH"
},
"Qty": {
"value": 1.0
},
"UOM": {
"value": "EACH"
},
"UnitCost": {
"value": "3,2"
},
"Project": {
"value": "X"
},
"Branch": {
"value": "520"
},
"ExtendedCost": {
"value": "3,2"
},
"POLine": {
"value": 1
},
"POReceiptNbr": {
"value": "PR574695 "
},
"POReceiptLine": {
"value": 1
},
"POOrderType": {
"value": "Normal"
},
"ReceiptQty": {
"value": 1.0
},
"rowNumber": {
"value": "1"
}
},
{
"InventoryID": {
"value": "BRUNO"
},
"Description": {
"value": "SoRH"
},
"Qty": {
"value": 1.0
},
"UOM": {
"value": "EACH"
},
"UnitCost": {
"value": "3,2"
},
"Project": {
"value": "X"
},
"Branch": {
"value": "520"
},
"ExtendedCost": {
"value": "3,2"
},
"POLine": {
"value": 2
},
"POReceiptNbr": {
"value": "PR574695"
},
"POReceiptLine": {
"value": 2
},
"POOrderType": {
"value": "Normal"
},
"ReceiptQty": {
"value": 1.0
},
"rowNumber": {
"value": "2"
}
},
{
"Description": {
"value": "La"
},
"UOM": {
"value": "EACH"
},
"Project": {
"value": "X"
},
"ExtendedCost": {
"value": "41"
},
"LCNbr": {
"value": "LC049"
},
"Account": {
"value": "22125"
},
"Subaccount": {
"value": "000-00"
},
"rowNumber": {
"value": "3"
}
}
],
"Hold": {
"value": "false"
}
}
I assume that some configuration is missed in Acumatica after system update. What should I check ? Please, help me to figure out why it stopped working.
Here is full stack of the error
{
"message": "An error has occurred.",
"exceptionMessage": "Operation failed",
"exceptionType": "PX.Data.PXInvalidOperationException",
"stackTrace": " at PX.Api.ContractBased.EntityService.Put(ISystemContract systemContract, String version, String name, EntityImpl entity, CbOperationContext operationContext, Boolean throwOnError)\r\n at PX.Api.ContractBased.Soap.SoapFacadeBase.PutImpl(EntityImpl entity, Boolean throwOnValidationError)\r\n at PX.Api.ContractBased.SystemContracts.V2.RestController.PutEntity(EntityImpl entity, String select, String filter, String expand, String custom)\r\n at lambda_method(Closure , Object , Object"] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Objecti] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()",
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "Exception has been thrown by the target of an invocation.",
"exceptionType": "System.Reflection.TargetInvocationException",
"stackTrace": " at System.RuntimeMethodHandle.InvokeMethod(Object target, Object\] arguments, Signature sig, Boolean constructor)\r\n at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, ObjectH] parameters, Objectb] arguments)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Objecte] parameters, CultureInfo culture)\r\n at PX.Api.ContractBased.EntityExportContextBuilder.<>c__DisplayClass91_1.<FindImplementations>b__3(PXGraph graph, EntityImpl entity, EntityImpl targetEntity)\r\n at PX.Api.SyImportProcessor.SyStep.ProcessLocateByNoteIdCommand(SyCommand cmd, SyView view, Boolean invokeCommand)\r\n at PX.Api.SyImportProcessor.SyStep.ProcessCommand(SyCommand cmd, Boolean& needCommit)\r\n at PX.Api.SyImportProcessor.ExportTableHelper.ExportTable(CancellationToken token)",
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "Receipt Line PR574695 - 1 not found.",
"exceptionType": "PX.Data.PXException",
"stackTrace": " at PX.Objects.EndpointAdapters.LCAdapterImpl.AddPOReceiptLineToBill(PXGraph graph, APInvoiceEntry invoiceEntry, EntityValueField receiptNbr, EntityValueField receiptLineNbr)\r\n at PX.Objects.EndpointAdapters.LCAdapterImpl.BillDetail_Insert(PXGraph graph, EntityImpl entity, EntityImpl targetEntity)"
}
}
}