Creating Inventory Adjustments via SuiteScript Returns Unexpected Error

Scenario

When creating an Inventory Adjustment record using SuiteScript, an unexpected error is returned. However, when setting the same values in UI, the record is saved successfully.

Solution
  • One possible cause for this is because there are customizations that is trying to set the main body Location field on the Inventory Adjustment.
  • The body location field on the Inventory Adjustment record is Adjustment Location, and the correct value to use when setting this field is adjlocation.
  • Please check to verify that there are no SuiteScript or Workflows deployed to the Inventory Adjustment record that is setting the standard Location field.

Leave a comment

Your email address will not be published. Required fields are marked *