Skip to main content

Notifications

Microsoft Dynamics GP forum
Suggested answer

Unhandled script exception:

Posted on by 45

Reviewing Customer Records and received the following message:

Unhandled script exception:

Illegal address for field 'DC_Location' in script 'Display_Record_Customer'. Script terminated.

I can't find any information about the field.

If you know what this means, and how to correct it, please let me know.

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,831 Moderator on at
    RE: Unhandled script exception:

    Hi Mike

    An Illegal Address Error occurs when Dexterity code is looking for a field that does not exist on the current version of the window.

    It can happen when a (badly written) trigger script does not check if the correct alternate version of a window has been opened and tries to reference a field that is not on the window.

    It can also happen with a Modified window which was from an earlier version and is missing a newly added field.

    You need to check the Alternate Modified security to check you are using the correct version of the window.

    If you have GP Power Tools (as all customers should), you can use Resource Information to identify which dictionary product the script Display_Record_Customer comes from.

    You can also use it to find which dictionary the field DC_Location belongs to.

    The Security Profiler and Security Information windows will be able to confirm which window version is in use and show how to change it.

    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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans