Hi Everyone,
I am testing our customization project that integrates with our WMS system. We have two Acumatica instances set up on the latest 2022 R1 release. We are using one for development and the other to simulate production. I have tested everything in the development instance and everything is working as expected.
After verifying transaction downloads and uploads were working correctly, I exported the customization project and imported it into the “production” instance. I am running into issues uploading transactions to the production instance, receiving errors that fields cannot be empty when calling PutEntity().
Issues and Receipts are specifying that PostPeriod and Branch cannot be empty when calling PutEntity().
Sales Orders specify that BaseCurrencyID and CuryID cannot be empty when calling PutEntity().
We had fixed the PostPeriod and Branch errors in the development instance, but we are getting this error in the production instance, even though we set these fields when updating the object from the integration. Sales Order uploads are working just fine in the development instance, but are throwing errors in the production instance.
I am not sure what could be causing these problems. The customization projects are the same between instances and the integration uses the same code between instances. Does anything stick out here? Thank you!
To note, we are using the REST API.
Error calling PutEntity { "message": "An error has occurred.", "exceptionMessage": "Issue.PostPeriod: The financial period cannot be specified because the branch has not been specified in the Branch box
Inserting 'Receipt' record raised at least one error. Please review the errors
BranchID: 'Branch' 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)\
at PX.Api.ContractBased.EntityService.Put(ISystemContract systemContract, String version, String name, EntityImpl entity, CbOperationContext operationContext, Boolean throwOnError)\
at PX.Api.ContractBased.Soap.SoapFacadeBase.PutImpl(EntityImpl entity, Boolean throwOnValidationError)\
at PX.Api.ContractBased.SystemContracts.V2.RestController.PutEntity(EntityImpl entity, String select, String filter, String expand, String custom)\
at lambda_method(Closure , Object , Object[] )\
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\