Event & Subcriber Error by using Page

balabala Member Posts: 7
Hi All,

i have done some changes for Sales Order 42 page by using Event & Subscriber, for this purpose i have created new code unit in this code unit with new function OnOpenPageEvent .Am using Finland localization NAV 2016

when we create the new sales order am getting attached error.
please help me where I did wrong.

Comments

  • Wisa123Wisa123 Member Posts: 308
    This usually hints towards dead metadata, i don't think this problem is connected to the use of events.
    Make sure you recompile the Object on the Server you use it.

    This especially happens a lot if you transfer objects between CU's
    eg. CU1 -> CU3
    Austrian NAV/BC Dev
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    yes, please compile codeunit 59201 and all objects if possible.
  • balabala Member Posts: 7
    Yes Wisa,

    am creating new functions in CU5000, those functions am calling to CU50001(Event code unit).
    how to rectify this issue please!!!!
  • balabala Member Posts: 7
    Sorry Wisa,
    am creating new functions in CU59201, those functions am calling to CU59200(Event code unit).
    how to rectify this issue please!!!!

    I have complied CU59201 but no errors.
  • davmac1davmac1 Member Posts: 1,283
    the error message is complaining about the subform saleslines - check and see if you have a problem there.
    Maybe you can't refer to the subform in the codeunit.
Sign In or Register to comment.