Error while posting OEOrders

Hello ,

OEOrders payload 


{
"CustomerNumber": "A01182",
"OrderDescription": "Order Entry",
"OrderDate": "2020-01-15",
"OrderDetails": [
{
"LineType": "Item",
"Item": "A1-105/0",
"Location": "1",
"QuantityOrdered": 8
},
{
"LineType": "Miscellaneous",
"MiscellaneousChargesCode": "HC",
"ExtendedAmount": 20.25
}
]
}

I am using web api to the above payload POST Order entry and am getting an error with the trace below  below any ideas.

Timestamp: 11/9/2021 2:57:04 PM
Message: Error-[Tenant:] [Company:] [Module:] [User:] - Sage 300 Web API encountered an error for Url 'localhost/.../OEOrders'.:
(Inner Exception)
Exception Source: ACCPAC.Advantage.COMSVR.Interop
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
---- Stack Trace ----
AccpacCOMSVR.AccpacSvrViewClass.BlkPut(Object& FieldIDs, Object& pValues, Boolean Verify) in ACCPAC.Advantage.COMSVR.Interop.dll
ACCPAC.Advantage.Server.View.BlkPut(FieldValue[] newValues, Boolean verify) in ACCPAC.Advantage.Server.dll
ACCPAC.Advantage.View.BlkPut(Int32[] fieldIDs, Object[] fieldValues, Boolean verifyValues) in ACCPAC.Advantage.dll
Sage.CA.SBS.ERP.Sage300.Common.BusinessRepository.BusinessEntity.BulkPut(Int32[] fieldIDs, Object[] fieldValues, Boolean verifyValues) in Sage.CA.SBS.ERP.Sage300.Common.BusinessRepository.dll,file: BusinessEntity.cs,line: 1141

(Outer Exception)
Exception Source: Sage.CA.SBS.ERP.Sage300.Common.BusinessRepository
Exception Type: Sage.CA.SBS.ERP.Sage300.Common.Exceptions.BusinessException
Exception Message:
---- Stack Trace ----
Sage.CA.SBS.ERP.Sage300.Common.BusinessRepository.BusinessEntity.BulkPut(Int32[] fieldIDs, Object[] fieldValues, Boolean verifyValues) in Sage.CA.SBS.ERP.Sage300.Common.BusinessRepository.dll,file: BusinessEntity.cs,line: 1145
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceEntity`1.SetEntityWithModel(TModel model, Boolean setOnlyChangedProperties) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceEntity.cs,line: 0958
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceEntity`1.Create(ViewResourceModel model) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceEntity.cs,line: 0474
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceEntity`1.CreateDetails(DetailEntity detailEntity, IList detailList) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceEntity.cs,line: 0737
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceEntity`1.ApplyToDetailEntities(ViewResourceModel model, Action`2 action) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceEntity.cs,line: 0716
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceEntity`1.Create(ViewResourceModel model) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceEntity.cs,line: 0479
Sage.CA.SBS.ERP.Sage300.Common.WebApi.BusinessRepository.ViewResourceRepository`1.Add(TModel model) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceRepository.cs,line: 0497
Sage.CA.SBS.ERP.Sage300.Common.WebApi.Controllers.ViewResourceController`1.Post(TModel model) in Sage.CA.SBS.ERP.Sage300.Common.WebApi.dll,file: ViewResourceController.cs,line: 0190
(Closure , Object , Object[] ) in <In Memory Module>
System.Web.Http.Controllers.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) in System.Web.Http.dll
System.Web.Http.Controllers.ActionExecutor.Execute(Object instance, Object[] arguments) in System.Web.Http.dll
System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Controllers.<InvokeActionAsyncCore>d__0.MoveNext() in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Filters.<CallOnActionExecutedAsync>d__5.MoveNext() in System.Web.Http.dll
System.Web.Http.Filters.<CallOnActionExecutedAsync>d__5.MoveNext() in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Filters.<ExecuteActionFilterAsyncCore>d__0.MoveNext() in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Controllers.<ExecuteAsync>d__2.MoveNext() in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Filters.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext() in System.Web.Http.dll
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in mscorlib.dll
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in mscorlib.dll
System.Web.Http.Controllers.<ExecuteAsync>d__0.MoveNext() in System.Web.Http.dll