Skip to main content
Question

"exceptionMessage": "Error in action invocation


Forum|alt.badge.img

Hi Team,

When I sent a payment via API to Acumatica, I receive the error message:
 

"exceptionMessage": "Error in action invocation:\nAR Error: Application Date cannot be less than Document Date."

This error does not always occur. Could you clarify how to fix it?

 

I attached the example of the request.

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

hI @Andrew1986 

I see an Known Issue in 21R1.

AC-213613: If on the Payments and Applications (AR302000) form, a user tried to release a payment for the customer with the Auto-Apply Payments check box selected in the Financial Settings section on the Financial tab of the Customers (AR303000) form, and an invoice with the date later than the payment date existed in the system, the following error occurred: Application Date cannot be less than Document Date.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • February 10, 2023

Hi @Andrew1986 ,

 

Please try with below Json request

 

{
    "ApplicationDate": {
        "value": "2023-01-02"
    },
    "Branch": {
        "value": "PRODWHOLE"
    },
    "CardAccountNbr": {},
    "CashAccount": {
        "value": "10200"
    },
    "CustomerID": {
        "value": "AACUSTOMER"
    },
    "Description": {
        "value": "w53"
    },
    "DocumentsToApply": [
        {
            "AmountPaid": {
                "value": 100.0000
            },
            "DocType": {
                "value": "Invoice"
            },
            "ReferenceNbr": {
                "value": "AR009766"
            },
        }
    ],
    "Hold": {
        "value": false
    },
    "PaymentAmount": {
        "value": 100.0000
    },
    "PaymentMethod": {
        "value": "CASH"
    },
    "PaymentRef": {
        "value": "453245"
    },
    "Type": {
        "value": "Payment"
    }
}

 


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