系统中不存在PrepaidSubID的分段关键子帐户

时间:2018-12-14 18:10:32

标签: acumatica

经过身份验证后,尝试使用任何REST API端点,将返回以下错误:

/SalesOrder
------------
Method: GET
URL: http://my.domain/entity/Default/17.200.001/SalesOrder
Response Code: 500

Response
--------
{
"message": "An error has occurred.",
"exceptionMessage": "Error: Warehouse, Family, Class, Procedence, Department, Available of PrepaymentSubID do not exist in the system.",
"exceptionType": "PX.Data.PXSetPropertyException",
"stackTrace": "   at PX.Data.PXDimensionSelectorAttribute.FieldVerifying(PXCache sender, PXFieldVerifyingEventArgs e)\r\n   at PX.Data.PXCache.OnFieldVerifying(String name, Object row, Object& newValue, Boolean externalCall)\r\n   at PX.Data.PXSelectorAttribute.SubstituteKeyFieldUpdating(PXCache sender, PXFieldUpdatingEventArgs e)\r\n   at PX.Data.PXSelectorAttribute.SubstituteKeyFieldUpdating(PXCache sender, PXFieldUpdatingEventArgs e)\r\n   at PX.Data.PXDimensionSelectorAttribute.FieldUpdating(PXCache sender, PXFieldUpdatingEventArgs e)\r\n   at PX.Data.PXCache.OnFieldUpdating(String name, Object row, Object& newValue)\r\n   at PX.Data.PXCache`1.SetValueExt(Object data, String fieldName, Object value)\r\n   at PX.Objects.GL.SubAccountAttribute.SetSubAccount(PXCache sender, Object row)\r\n   at PX.Data.PXCache.OnRowInserting(Object item, Boolean externalCall)\r\n   at PX.Data.PXCache`1.Insert(Object data, Boolean bypassinterceptor)\r\n   at PX.Data.PXCache`1.Insert(Object data, Boolean bypassinterceptor)\r\n   at PX.Data.PXCache`1.Insert(Object data)\r\n   at PX.Data.PXCache`1.Insert()\r\n   at PX.Data.PXFilter`1.a()\r\n   at PX.Data.PXGraph.GetDefault[TNode]()\r\n   at PX.Data.PXCache`1.get_Current()\r\n   at PX.Data.PXDefaultAttribute.FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)\r\n   at PX.Data.PXCache.OnFieldDefaulting(String name, Object row, Object& newValue)\r\n   at PX.Data.PXView.PrepareParametersInternal(Object[] currents, Object[] parameters, IBqlParameter[] selpars)\r\n   at PX.Data.PXView.Select(Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows)\r\n   at PX.Data.PXView.SelectMultiBound(Object[] currents, Object[] parameters)\r\n   at PX.Data.PXSelectorAttribute.SelectSingleBound(PXView view, Object[] currents, Object[] pars)\r\n   at PX.Data.PXSelectorAttribute.GetItem(PXCache cache, PXSelectorAttribute attr, Object data, Object key, Boolean unconditionally)\r\n   at PX.Data.PXSelectorAttribute.<>c__DisplayClass118_0.<Select>b__0(PXSelectorAttribute attr)\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)\r\n   at PX.Data.Selector`2.Verify(PXCache cache, Object item, List`1 pars, Nullable`1& result, Object& value)\r\n   at PX.Data.BqlFunction.getValue[Operand](IBqlCreator& op, PXCache cache, Object item, List`1 pars, Nullable`1& result, Object& value)\r\n   at PX.Data.Case2`2.Verify(PXCache cache, Object item, List`1 pars, Nullable`1& result, Object& value)\r\n   at PX.Data.Switch`2.Verify(PXCache cache, Object item, List`1 pars, Nullable`1& result, Object& value)\r\n   at PX.Data.BqlFormula.Verify(PXCache cache, Object item, IBqlCreator formula, Nullable`1& result, Object& value)\r\n   at PX.Data.PXFormulaAttribute.FormulaDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)\r\n   at PX.Data.PXFormulaAttribute.SetFormulaValue(PXCache sender, Object row)\r\n   at PX.Data.PXFormulaAttribute.<>c__DisplayClass58_0.<CacheAttached>b__1(PXCache cache, PXRowSelectingEventArgs e)\r\n   at PX.Data.PXRowSelecting.Invoke(PXCache sender, PXRowSelectingEventArgs e)\r\n   at PX.Data.PXCache.OnRowSelecting(Object item, PXDataRecord record, Int32& position, Boolean isReadOnly)\r\n   at PX.Api.ContractBased.OptimizedExport.OptimizedExportProvider.ExtractValues(BqlCommand command, PXDataRecord r, PXDataRecordMap map, Dictionary`2 previousRow)\r\n   at PX.Api.ContractBased.OptimizedExport.OptimizedExportProvider.<DoDbSelect>d__44.MoveNext()\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at PX.Api.ContractBased.OptimizedExport.OptimizedExportProvider.<DoSelectImpl>d__42.MoveNext()\r\n   at PX.Api.ContractBased.ExportTableToEntitiesMapperBase.<ReadEntityRowsImpl>d__24.MoveNext()\r\n   at PX.Api.ContractBased.ExportTableToEntitiesMapperBase.<ReadEntityRows>d__23.MoveNext()\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at PX.Api.ContractBased.EntityService.GetListOptimized(EntityImpl entity, EntityExportContextBuilder entityExportContextBuilder, IOptimizedExportProviderForContractBased provider, String version, String name, String objectName, ISystemContract systemContract)\r\n   at PX.Api.ContractBased.EntityService.GetList(ISystemContract systemContract, String version, String name, EntityImpl entity, Boolean returnFullEntities, CbOperationContext operationContext, Boolean ignoreValueFields, PXGraph graph)\r\n   at PX.Api.ContractBased.Soap.SoapFacadeBase.GetListImpl(Entity entity, Boolean returnFullEntities)\r\n   at PX.Api.ContractBased.SystemContracts.V2.RestController.GetList(String objectName, String select, String filter, String expand, String custom, Nullable`1 skip, Nullable`1 top)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(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__0.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__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.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>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.<ExecuteActionFilterAsyncCore>d__0.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__2.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__2.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__0.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__0.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__1.MoveNext()"
}

什么是PrepaymentSubID,它与分段密钥有什么关系?我根本找不到任何关系。

1 个答案:

答案 0 :(得分:0)

这似乎是一个小故障。可能由于Acumatica API中的错误,一些意外的/格式错误的API调用导致了随后的调用中卡住的错误。

要摆脱这种损坏的状态,您可以做的是重新启动应用程序。可以在Web服务器上使用admin命令提示符中的IISReset命令或通过网站界面上的“应用更新”页面上的“重新启动应用程序”按钮来完成此操作: enter image description here