Options

No execution permission with on CodeUnit with id 1

borgyborgy Member Posts: 25
edited 2012-03-24 in NAV Three Tier
Dear Nav/Sql experts,

One user of our company gets the following error: "No execution permission with on CodeUnit with id 1".
Its only in the RTC, in the classic client he can do his normal job, same database.

Step 1
I have tried to synchronize, then delete his account and synchronize again.
Then made a new account and synchronize, with no errors.

Step 2
I've tried to do the following on SQL
Drop login, drop schema, drop user in combination with step 1
It doesn't work.

In the security we have a genaral authorization level with the right to execute/run a every codeunit.
CodeUnit 0, execute Yes.

I'm out of options, does anybody know this error?

Kind regards,

André Borgeld

Comments

  • Options
    sergisoftsergisoft Member Posts: 37
    I think the problem is not related with SQL Security. It seems to be something about NAV user role/permissions setup.
    ¿Did you modified codeunit 1 for any reason? ¿Is this codeunit the "original" codeunit?

    Sergi Navarro

    MCTS: Microsoft Dynamics™ NAV 2009 C/SIDE Solution Development

    Visit my Navision Spanish Blog here: http://www.sergisoft.com
  • Options
    borgyborgy Member Posts: 25
    Dear Sergi,

    I did not modify the codeunit and other users have no problem in logging in to the RTC.
    And like i said the same user can work in the classic client on the same database. You would expect the same error here.

    Kind regards,

    André
  • Options
    borgyborgy Member Posts: 25
    I think is a migrating issue to the RTC. Anybody got any idea how to solve this?
  • Options
    sunmorningindiasunmorningindia Member Posts: 65
    Try to Compile all object.
  • Options
    borgyborgy Member Posts: 25
    Solved. There was a problem with the AD synchronisation.
    After compliling there was still no issue with the first codeunit. Althrough a good idea to inspect it.
  • Options
    highspeed427highspeed427 Member Posts: 1
    borgy,

    could you enlighten me on what you did in AD to make it work. i have the exact same problem and can not figure out how to fix it. the Classic works fine but the RTC won't

    thanks,
  • Options
    SavatageSavatage Member Posts: 7,142
    borgy wrote:
    After compliling there was still no issue with the first codeunit

    sounds like he Recompiled the codeunit

    object designer->codeunits->select all->compile
  • Options
    grober01grober01 Member Posts: 1
    We have the same problem and are also not clear on the recommended resolution.

    Note that we have also:

    1. Recompiled all code Units
    2. Synchronized all Logins

    multiple times....

    Appreciated - g
  • Options
    julkifli33julkifli33 Member Posts: 1,073
    i also have a problem like that
    using administrator , yes it can
    but using other user can't
    what i do is remove the company name on the user role...
    because for administrator login i didnt put company name on his user role
  • Options
    FranklinFranklin Member Posts: 253
    That´s a SQL problem with permissions or the user don´t asigned any profile for RTC
  • Options
    tameemabdullahtameemabdullah Member Posts: 17
    had the same problem..

    The problem occurs when you filter any users permissions by company.

    The work around is to give that same user the ALL role with no company filter.

    They will be able to login to any company but will not see any data there or be able to open any forms.

    Not sure if there is a fix out yet.
  • Options
    mschneidermschneider Member Posts: 14
    ...
    The work around is to give that same user the ALL role with no company filter.

    They will be able to login to any company but will not see any data there or be able to open any forms.
    But when they Login to another Comany, the RTC crashes and won't open again. Because it will try to open the last comany.

    I have a workaround for that problem. You must create a User Personalization Entry in the database. Then the user can start the rtc.
  • Options
    navuser1navuser1 Member Posts: 1,329
    Add Role "ALL" to the User and synchronize.
    I have solves the same issue in this way. (Ref--http://dynamicsuser.net/forums/p/40739/208678.aspx)
    Now or Never
  • Options
    jbolksjbolks Member Posts: 17
    Role all is a work-around, not the solution. Problem is that you like to show only 1 of the companies.

    Solution is to create 1 role:
    - for example super => company A and assign this to user A
    Go to Application Setup: RoleTailered Client and create for this user a user personalization.

    Then the problem is solved
Sign In or Register to comment.