Cannot compile Codeunit 1 - ApplicationManagement

aquawateraquawater Member Posts: 71
I was unable to compile changes on Codeunit 1 ApplicationManagement.
Due to this following error.
---------------------------
Microsoft Dynamics NAV
---------------------------
The OLE control (GUID: {3478A2C5-F354-11D3-AFA0-005004C33BAF}) could not be compiled because it was not registered properly.

Try to register the OLE control by clicking Tools, Custom Controls, Browse.

---------------------------
OK   
---------------------------

And the cursor always points to:
MenuRunTimer::TimerError(ErrorString : Text[1024])
MenuRunTimer.Enabled := FALSE;

Does anyone know what is the error?

If I look at CAL Globals \ VARIABLES, there is this "Unknown OLE Control".
How am I supposed to know what OCX or OLE control I am missing?

Answers

  • DenSterDenSter Member Posts: 8,304
    edited 2009-07-03
  • ara3nara3n Member Posts: 9,256
    you should not create automation variable in CU. You should crate a separate CU that is single instance and contains automation.

    That way it's separated and handled by that CU and even during upgrade you can upgrade the object without having the automation.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • TomasTomas Member Posts: 420
    ara3n wrote:
    you should not create automation variable in CU. You should crate a separate CU that is single instance and contains automation.

    That way it's separated and handled by that CU and even during upgrade you can upgrade the object without having the automation.

    Now, here I would like to have a possibility in a forum of tagging an entry with my own tags (i.e. "best practises").
    Good tip.
  • aquawateraquawater Member Posts: 71
    Thanks for the reply.

    @DenSter:
    I don't see how "hiding tabs" got anything to do with my problem.

    @ara3n:
    Automation variables...
    That was created by LSRetail team. We are using NAV with LSRetail package.

    So what is the problem ?
    Is it "'Navision Timer 1.0'.Timer" or the unknown OCX control.
    How could I compile my codeunit #1.
  • ara3nara3n Member Posts: 9,256
    LS retail is one of the worst offenders on how not to modify NAV. The product works, It's just sad they are not improving the code.
    LS Retail comes with a toolbox that you need to install to get all the dll/ocx registered.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSterDenSter Member Posts: 8,304
    aquawater wrote:
    @DenSter:
    I don't see how "hiding tabs" got anything to do with my problem.
    Sorry about that, I usually test links before I post them, but obviously didn't do that this time. I googled the GUID in your message and found another mibuso topic with the same GUID:
    viewtopic.php?f=23&t=21341&view=next
    I removed the "&view=next" part from the link and that changed the link to the one with the tabs, which I agree is not relevant at all :mrgreen:
  • aquawateraquawater Member Posts: 71
    ara3n wrote:
    LS retail is one of the worst offenders on how not to modify NAV. The product works, It's just sad they are not improving the code.
    LS Retail comes with a toolbox that you need to install to get all the dll/ocx registered.

    Yes that's the answer.
    In CODEUNIT 1, there is OCX control from LS RETAIL TOOLBOX.
    After I install that, I can compile successfully. Geez...
    Thanks. :thumbsup:
  • ara3nara3n Member Posts: 9,256
    I'm glad you got this solved.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.