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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Illegal Address, Script Terminated

(0) ShareShare
ReportReport
Posted on by 5

One of my users is trying to Print Payments in the purchasing module.  Every time they try, they get a message that says:

Unhandled script exception:

Illegal address for field 'Currency ID' in script 'Check_Batch'. Script terminated.

They click OK and it bypasses the error and prints the payments (checks in this case) but I'm hoping someone can tell me how to prevent this error from occurring.

Categories:
I have the same question (0)
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Do you have a modified or alternate version of the window?

    Especially on that is missing the Currency ID field.

    I am wondering if there is another 3rd party dictionary or ISV product involved.

    I looked on my system for a script called Check_Batch and was not able to find one. I used GP Power Tools Resource Information to check every script name in every product installed in my system.

    If you have GP Power Tools installed, we can capture a script log to identify if Check_Batch is a global or form level script. Then we can use the Resource Information to identify the dictionary it comes from.

    We can also use the Security Profiler and Security Information windows to check which version of the window you are using and which version you should be using.

    Regards

    David

  • IMS IT Profile Picture
    5 on at

    Thanks for your response.

    We are not using a 3rd party or modified form for this functionality as far as I can cell by looking in Alternate Forms and Reports, Customization Maintenance.  We do have 3rd party products though.

    I don't have GP Power Tools but I ran the system debugger to log the script calls.  The last entry in the script log when the error occurs is

    'Check_Batch() of form PM_Process_Direct_Deposit', 0, "XPM_Cchecks", "VBB041922-CKS", Idx=1;New=0;Chg=0;Crt=1;IdxSet=1;RgSet=0;Row=2, table 'PM_Payment_WORK', ""

    Is this PM_Process_Direct_Deposit form a core form in Dynamics?  

    Thanks,

    Jon

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Hi Jon

    The PM_Process_Direct_Deposit form is not a form in the core Dynamics.dic.

    If you install GP Power Tools and activate the free 30 day trial period, you can then use Resource Information to identify which product dictionary the PM_Process_Direct_Deposit form belongs to.

    Do you have the Multilingual Cheque product installed? It could be related to that product.

    Once we can identify the product, you can contact the development (Microsoft or ISV).

    Regards

    David

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    @IMS IT

    Go to Alternate/Modified Forms and Reports window.

    select the Alternate/Modified Forms and Reports ID assigned to the user who is getting this error message.

    Select Product as All Products and Series as Purchasing

    Expand Print Payment window and if you will find any other product window, mark it and save and then print and see if you still get message ?

  • IMS IT Profile Picture
    5 on at

    Thanks David.  Now that you've pointed me in the right direction, I think I know which 3rd party this might be in.  I will check the alternate forms/reports also, as suggested by Almas.

    If I need to, I will install the GP Power Tools and gather further information.

    Thank you all for your help.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans