Solved

How to resolve : exception Message CuryID cannot be empty CuryID

  • 9 August 2021
  • 1 reply
  • 1513 views

Hello, 

We are trying to move to R1 2021 (from our current version) but our API calls to create Project is failing with the Above error in the new version of Acumatica.

Full details below…. would appreciate any pointers and assistance. Thanks. 

 

Method: PUT

URL:  https://xx-sandbox-21r1.acumatica.com/entity/GoXxxxxx/6.00.001/Project

 

Body:

{"Customer":{"value":"100743"},"Description":{"value":"Company 164 - MX - Bernadette Weinand (Bernadette)"},"Hold":{"value":false},"ProjectID":{"value":"100743-MX-129"},"Status":{"value":"Active"},"Currency":{"value":"USD"},"Tasks":[{"id":null,"AllocationRule":null,"BillingOption":{"value":"By Billing Period"},"BillingRule":{"value":"MULTISILO"},"Description":{"value":"Task Description"},"Status":{"value":"Active"},"TaskID":{"value":"00"},"RateTable":null}],"Attributes":[{"AttributeDescription":{"value":"First Name"},"Required":null,"RefNoteID":null,"Value":{"value":"Bernadette"}},{"AttributeDescription":{"value":"Last Name"},"Required":null,"RefNoteID":null,"Value":{"value":"Weinand"}},{"AttributeDescription":{"value":"Legal Entity Company Name"},"Required":null,"RefNoteID":null,"Value":{"value":"Company 164"}},{"AttributeDescription":{"value":"Work Country"},"Required":null,"RefNoteID":null,"Value":{"value":"Mexico"}},{"AttributeDescription":{"value":"Status"},"Required":null,"RefNoteID":null,"Value":{"value":"Onboarding"}},{"AttributeDescription":{"value":"Funded LSP"},"Required":null,"RefNoteID":null,"Value":{"value":"Altec Lansing 37 - Mexico"}},{"AttributeDescription":{"value":"Related LSP"},"Required":null,"RefNoteID":null,"Value":{"value":"Altec Lansing 37 - Mexico"}},{"AttributeDescription":{"value":"Contract Start Date"},"Required":null,"RefNoteID":null,"Value":{"value":"02/01/2021"}},{"AttributeDescription":{"value":"Payroll Start Date"},"Required":null,"RefNoteID":null,"Value":null},{"AttributeDescription":{"value":"Indirect tax Percent"},"Required":null,"RefNoteID":null,"Value":{"value":"0.0"}}],"files":null,"Balances":null,"BillToSettings":{"CustomerLocation":{"value":"MAIN"}},"ProjectProperties":{"StartDate":{"value":"2021-08-09T09:30:33+00:00"}},"BillingAndAllocationSettings":{"BillingPeriod":{"value":"On Demand"},"BillingRule":{"value":"MULTISILO"},"RateTable":null,"AllocationRule":null,"CreateProFormaOnBilling":{"value":true}},"VisibilitySettings":{"AP":{"value":true},"AR":{"value":true},"CA":{"value":true},"CRM":{"value":true},"Expenses":{"value":true},"GL":{"value":false},"IN":{"value":false},"PO":{"value":false},"SO":{"value":false}},"GLAccounts":{"DefaultAccount":{"value":"40000"},"DefaultSubaccount":{"value":"US-000-00"},"AccrualAccount":{"value":"21000"},"AccrualSubaccount":{"value":"US-000-00"},"DefaultTaskForGLAccounts":null}}





Acumatica Response:

Failed to get a response from Acumatica: {"message":"An error has occurred.","exceptionMessage":"'CuryID' cannot be empty.\nCuryID: 'CuryID' cannot be empty.","exceptionType":"PX.Api.ContractBased.OutcomeEntityHasErrorsException","stackTrace":"   at PX.Api.ContractBased.EntityService.GetOperationResult(EntityImpl entity, EntityExportContextBuilder entityExportContextBuilder, PXSYTable exportedKeys, PXOuterException contextError, Boolean throwOnError, Boolean addCancelCommand)\r\n   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()"}+9286ms

 

 

 

icon

Best answer by Kulvir Kaila 9 August 2021, 17:40

View original

1 reply

Userlevel 4
Badge +2

This looks similar to the issue reported on StackOverflow:

https://stackoverflow.com/questions/68655032/create-purchase-receipt-from-rest-api

Do you have the correct branch specified upon login?

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