web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Unhandled Script Exception error when applying payment to sales invoice

(0) ShareShare
ReportReport
Posted on by

I am experiencing an issue where I will try to apply payment to invoices. I create the Cash Receipt and then select Apply. The window opens and I begin to select the invoices and by the time I select the second one I get this error message. 

Unhandled script exception:
Long integer out of range. Results invalid.

EXCEPTION_CLASS_SCRIPT_OUT_OF_RANGE
SCRIPT_CMD_SET

I click OK and if I try to select again I see this error 

pastedimage1663783429071v1.png

The invoice appears to be fully applied but when you use the Receivables Transaction Inquiry there are no records for a payment applied.

A check links on receivables and a reconcile of outstanding balances on the customer ID brings the invoice back so I can apply payment but the same thing happens again. 

Has anyone encountered this before and knows what might be the cause or how to resolve it? 

Categories:
I have the same question (0)
  • Suggested answer
    Dean Marty Profile Picture
    on at
    RE: Unhandled Script Exception error when applying payment to sales invoice

    Good Day

    I have seen a similar message when the item has not been aged.

    You could try running the aging routine, then see if you can apply without error.

    If not, I would suggest to open a Support ticket for this.

    Thanks!

    Dean

  • Freddie69 Profile Picture
    15 on at
    RE: Unhandled Script Exception error when applying payment to sales invoice

    I appreciate the information and advice you have shared myhtspace. I will try to figure it out for more.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 650 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 582 Most Valuable Professional

#3
CU05031448-0 Profile Picture

CU05031448-0 526

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans