Error Message: 'RegisterOverrideMethod Was Called Twice for the Same Object for Method ’Clicked’'
    • 27 Mar 2025
    • 1 Minute to read
    • Contributors
    • PDF

    Error Message: 'RegisterOverrideMethod Was Called Twice for the Same Object for Method ’Clicked’'

    • PDF

    Article summary

    This article provides a solution for the following error that may appear in AX 2012 when trying to run a report:

    Error

    Error executing code: Wrong type of argument for conversion function.

    In addition, this article also provides a solution for the following error:

    Error

    RegisterOverrideMethod was called twice for the same object for method ’Clicked’. You can only override a method once per instance.

    Resolution

    This message appears if you try to run the Clicked method more than once. This can happen if you add the same record to the system twice.

    An example of this would be if you add a control more than once to a dialog for a report or if you add the Lasernet button to the same journal more than once. In this case, apply the following steps:

    1. Check your Dialog setup on the report, the Reprint in Forms, and the Dialog setup on your Reprint in Forms.

    2. Eliminate any duplications.

    3. Confirm that the report runs without an error message.

    Additional Information

    This issue is frequently seen on the SalesInvoice and FreeTextInvoice reports.