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:
  • IMS IT Profile Picture
    IMS IT 5 on at
    RE: Illegal Address, Script Terminated

    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.

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,006 User Group Leader on at
    RE: Illegal Address, Script Terminated

    @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 ?

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: Illegal Address, Script Terminated

    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

  • IMS IT Profile Picture
    IMS IT 5 on at
    RE: Illegal Address, Script Terminated

    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
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: Illegal Address, Script Terminated

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans