Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

You don't have the following permissions on codeunit execute

Posted on by 30

Hello, I have created a codeunit to use an event that is executed with the OnAfterModify of the Item table and I have the error "you don't have the following permissions on codeunit execute".

The user I use has SUPER permissions.

  • Suggested answer
    Renni Profile Picture
    Renni 958 on at
    RE: You don't have the following permissions on codeunit execute

    I am not too certain I used to get in touch with our procurement team and they could normally get me a copy if I could not find one saved in the correct place on the server

    It is somewhere in the cps or mpn  that i did not have access to in my company 

    So if a partner try that if and end user get in touch with your partner 

  • Ivan Labrador Profile Picture
    Ivan Labrador 30 on at
    RE: You don't have the following permissions on codeunit execute

    Hi, I couldn't see what the TXT was, but you gave me the idea that the codeunit that I had created could be out of range, I tried a lower range and it worked.

    Thank you all very much for your answers, they helped me to solve it.

  • Ivan Labrador Profile Picture
    Ivan Labrador 30 on at
    RE: You don't have the following permissions on codeunit execute

    Thank you.

    How can I export that information, I only have the .flf file.

    The other problem is that the system has 3 integrations (LSRetail, SANA and our customizations). Which license should be configured? or is it indistinct?

  • Verified answer
    Renni Profile Picture
    Renni 958 on at
    RE: You don't have the following permissions on codeunit execute

    Have a look at the  .txt file generated contextually with the latest version of your license, you'll see the following section, with the number of objects purchased (for which the fee has been payed) and assigned (for which an ID range has been chosen):

    Custom Area Objects

    **************************************************************************************************************

    Purchased TableData........: xxx      

    Purchased Report...........: xxx      

    Purchased Codeunit.........: xxx      

    Purchased Page.............: xxx      

    Purchased XMLPort..........: xxx        

    Assigned TableData.........: xxx      

    Assigned Report............: xxx      

    Assigned Codeunit..........: xxx        

    Assigned Page..............: xxx      

    Assigned XMLPort...........: xxx  

    And after the list of ID chosen for every object type:

    Object Assignment

    **************************************************************************************************************

    Object Type                   Quantity       Range From     Range To       Permission

    -----------------------------------------------------------------------------------------

    TableData                     6              50000          50005          RIMDX

    TableData                     2              50012          50013          RIMDX

    Report                        1              50150          50150          RIMDX

    Report                        7              59100          59106          RIMDX

    Codeunit                      19             50100          50118          RIMDX

    Page                          3              50000          50002          RIMDX

    Page                          2              50028          50029          RIMDX

    In this way you can check if the ID you pick for the codeunit is allowed by customer license.

  • Ivan Labrador Profile Picture
    Ivan Labrador 30 on at
    RE: You don't have the following permissions on codeunit execute

    Thank you. Currently I have tried with the with the company license.

    The user does not have a filter on permissions by company.

    What is missing or what can I be doing wrong?

  • RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: You don't have the following permissions on codeunit execute

    Verify your License and the Roles and Permission assigned to the user.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: You don't have the following permissions on codeunit execute

    You get issue if you license does not permission to execute, also check if your SUPER permission is restricted to a specific company.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans