Skip to main content
Question

No value of Cash Account field satisfies the condition


Forum|alt.badge.img+2
  • Varsity I
  • 279 replies

Hi, 

I faced with such error while trying to insert such set of data to Acumatica

URL :https://Agroup.acumatica.com/entity/ARTSEndpoint/22.200.001/Bill

BODY :

{

  "VendorRef": {

    "value": "00067001"

  },

  "DueDate": {

    "value": "05/22/2023"

  },

  "Vendor": {

    "value": "PU0262"

  },

  "PaymentMethod": {

    "value": "BACBOS"

  },

  "Date": {

    "value": "05/22/2023"

  },

  "Description": {

    "value": "docAlpha BatchID \"25270\""

  },

  "CashAccount": {

    "value": "10305"

  }

}

The error is the following 

I tried many values for Cash Account field but result remains same

Tried different combinations with Vendors and PaymentMethods but it does not work

I mapped this field in Endpoint

What Can cause such issue ?

4 replies

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 245 replies
  • May 25, 2023

@Ivan 

I would try to create a Bill in UI with same values just to make sure we are using all valid values.

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 279 replies
  • May 25, 2023
RohitRattan88 wrote:

@Ivan

I would try to create a Bill in UI with same values just to make sure we are using all valid values.

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

That’s the problem, that I can create Bill via UI, but it does not work with request


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 245 replies
  • May 25, 2023
RohitRattan88 wrote:

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

Did you try this?


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 279 replies
  • May 26, 2023
RohitRattan88 wrote:
RohitRattan88 wrote:

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

Did you try this?

Yes, but to what fields I should pay attention ? I tried to copy several values but it did not work


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