Question

Receipt Line PR574695 - 1 not found.

  • 7 March 2024
  • 6 replies
  • 50 views

Userlevel 4
Badge +2

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": [

    {

      "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, Object[] 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, Object[] parameters, Object[] arguments)\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] 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)"

        }

    }

}


6 replies

Userlevel 2
Badge

Hello,

 

There is an empty space in the value after PR574695 which might be causing the problem.

 

 "POReceiptNbr": {

        "value": "PR574695 "

      },

Userlevel 4
Badge +2

Hello,

 

There is an empty space in the value after PR574695 which might be causing the problem.

 

 "POReceiptNbr": {

        "value": "PR574695 "

      },

Request is formed without space

Userlevel 2
Badge

Does that mean the issue has been resolved?

Userlevel 4
Badge +2

Does that mean the issue has been resolved?

No, I mistakenly  added space in posrt description. Error is same, I checked request - no spaces in values 

Userlevel 4
Badge +2

Does that mean the issue has been resolved?

I noticed that this field is not present at endpoint

     "ReceiptQty": {

        "value": 1

      }

Ho to add it properly ?

Userlevel 7
Badge

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

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved