Skip to main content
Solved

Error: Field cannot be empty


I’m trying to create a new Customer using the PUT Method in Postman, and I’m receiving the following error message.

"error""Inserting  'Location' record raised at least one error. Please review the errors.",

"SalesAccount": {

     "error": "'Sales Account' cannot be empty."

},

Here’s what I’m sending through the Body.

{
    "CustomerName": {"value":"TEST TEST"},
    "Location":[
        {"SalesAccount": {"value": "60040"}}
        ]
}

I copied this Sales Account value from another record, so I’m not sure why it’s not recognizing the value.

Best answer by DConcannon

Hi @brettb,

Is it possible for you to send a customer class? This can default all the customer accounts/sub-accounts for you. If you are using sub-accounts, the sales sub-account is also required, as well as other combinations, depending on your configuration.

View original
Did this topic help you find an answer to your question?

3 replies

DConcannon
Varsity II
Forum|alt.badge.img+2
  • Varsity II
  • 119 replies
  • Answer
  • October 4, 2022

Hi @brettb,

Is it possible for you to send a customer class? This can default all the customer accounts/sub-accounts for you. If you are using sub-accounts, the sales sub-account is also required, as well as other combinations, depending on your configuration.


  • Author
  • Freshman I
  • 8 replies
  • October 4, 2022

@DConcannon I was able to submit a customer class and that allowed me to create a new customer. Thanks for the help! 


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi @brettb,

As recommended by @DConcannon, you need to provide the CustomerClass as well. So you can try the below payload structure to see if that helps,

{

    "CustomerID": {

        "value": "Cust02"

    },

    "CustomerName": {

        "value": "Customer 01"

    },

    "CustomerClass": {

        "value": "LOCAL"

    },

    "MainContact": {

        "Email": {

            "value": "Cust01@gmail.com"

        }

    }

}

 

Additionally, you can refer the following documentation, https://help.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=51059f24-01f8-4d78-a17b-cc255fe8b8e0

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings