Solved

API exception message when updating customer shipping branch

  • 7 October 2023
  • 1 reply
  • 64 views

Hello.

I’m trying to update a Customer through a PUT request to the REST API, using v2022 R2. At some point of my body request I have the following code to update the ShippingBranch:

{
...

"RestrictVisibilityTo": {
"value": "GROUPE"
},
"ShippingBranch": {
"value": "OUTREMER"
},

...
}

This request is returning the exception

	"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "Do you want to keep the value in the Shipping Branch box?",
"exceptionType": "PX.Data.PXException",
"stackTrace": null
}

Am I missing any property in my request to confirm that I really want to update or override the Shipping Branch?

What am I doing wrong?

Thanks.

icon

Best answer by Django 8 October 2023, 00:46

View original

1 reply

Userlevel 7
Badge +5

You might have to add code as per this thread to know if the caller is using the API or not:

 

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