Every time a Service Pack for Microsoft Dynamics GP is released, there is a potential for the installation of the service pack to cause Illegal Address errors for a field on Modified or Alternate windows. I have seen this a few times over the years, mostly with the Sales Transaction Entry (SOP_Entry) window in the Sales Order Processing (SOP) module.
The reason for this error is usually that the Service Pack adds a new field onto the window and also updates the scripts to use this new field. If the Modified or Alternate version of the window has not been updated to include this new field, when the code executes and references the missing field, the error is generated.
Illegal Address for field field name in script script name
How can I fix an Illegal Address Error on an Alternate or Modified window after installing a Service Pack?
Firstly, you should confirm exactly which version of the window is "at fault". Use the security settings (or the Alternate Modified Forms and Reports ID for GP 2010) to tell the system to use the Original version of the window. When using the Original, there should be no error.
Note: If you get an error referring to a missing resources added by the Alternate window, it means that the addon product is not checking to see if its Alternate window is in use before running its trigger code. The best practice for handling this is explained in the following Knowledge Base (KB) articles: Rules to maintain alternate windows when you make customizations in Dexterity in Microsoft Dynamics GP (KB 929211) Referring to third party fields in focus triggers (KB 850482) Error message when you access new fields from an alternate window in Microsoft Dynamics GP: "Illegal Address for field 'field name' in script 'script name'" (KB 941327)
Note: If you get an error referring to a missing resources added by the Alternate window, it means that the addon product is not checking to see if its Alternate window is in use before running its trigger code. The best practice for handling this is explained in the following Knowledge Base (KB) articles:
If the problem occurs only on the Modified or Modified Alternate version of the window, but works on the Original or Alternate version of the window, then you will need to just recreate the Modified window. The following steps should resolve the issue:
This process will recreate the window from the Original (or Alternate) version and will not include the previously missing field.
If the problem occurs with an Alternate version of the window, then the solution has to be handled at the Dexterity level. The cause is the same (missing newly added field), but the resolution is slightly different. To fix the issue:
Note: If there is a Modified version of the Alternate window, you will also need to perform the first set of steps to update that version.
That's all folks. Hope this is helpful.
David
Posting from Mark Polino at DynamicAccounting.net
msdynamicsgp.blogspot.com/.../solving-illegal-address-errors-on.html
PLEASE READ BEFORE POSTING
Please only post comments relating to the topic of this page.
If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.