Health Check Error: Use of Removed getField Signature


    The Health Check wizard must be run when upgrading to evaluate whether your instance is suitable for upgrade. During the health check, various types of issues may be detected which can affect your ability to upgrade. This article will cover the “Use of Removed getField Signature” error reported by the health check.


    This error generates an output similar to the following in health check:



    The generated error message will help determine the contents of the file causing the health check error. To address this issue, the code-level customization will need to be corrected or removed before proceeding with the upgrade.

    The example error shown above was caused by a problem in the named file, ./custom/clients/base/views/wGlobalSearch-admin-stats/wGlobalSearch-admin-stats.js. This custom code is using app.metadata.getField() incorrectly. We can see this issue on line 95 of the problematic file:

    meta: app.metadata.getField('enum'),

    In Sugar 7.10 and above, you should use the attribute instead of specifying a string. In order to proceed with the upgrade, either update or remove the offending line of code or disable the specified file. The corrected line should look similar to this:

    meta: app.metadata.getField({name: 'enum'}),

    Once the necessary change has been made, please navigate to Admin > Repair and perform a “Quick Repair and Rebuild”. Then perform the health check again to confirm that the error is no longer reported.

    in Troubleshooting Health Check Output

    Reach out to us for help