Validating Customization Code

While the MYOB Advanced Customization Platform processes publication of a customization project, the platform validates the customization code included in the project. This validation of the code provides not only checking for syntax and semantics but also checking of the compatibility of the code included in the customization project with the original application code.

If you have a customization project that works properly for the current version of MYOB Advanced and have upgraded an application instance to a newer version, the customization project might not work properly or might even prevent the website from starting after the upgrade. This could occur because the code of MYOB Advanced is continuously developed to implement new features or enhance existing functionality. Thus, the code of an updated instance of MYOB Advanced can become inconsistent with the code in a customization project. For example, if the signature of a method that is overridden in the customization code is changed in the original code, a run-time error may occur in the graph extension. As another example, modified or deleted database columns and tables might cause the functionality of a data access class extension to fail.

The platform checks the compatibility of the code included in a customization project with the original application code every time it publishes the project. If there are any compatibility errors, the platform displays the warning and error messages in the Compilation window and stops the publication process. See Messages for Validation Errors and To Resolve an Issue Discovered During the Validation for detailed information about, respectively, the error messages and the ways to fix the validation errors.