web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

You don't have the following permissions on codeunit execute

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

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

  • RockwithNav Profile Picture
    8,658 Super User 2025 Season 2 on at

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

  • Ivan Labrador Profile Picture
    30 on at

    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?

  • Verified answer
    Renni Profile Picture
    960 on at

    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
    30 on at

    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?

  • Ivan Labrador Profile Picture
    30 on at

    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.

  • Suggested answer
    Renni Profile Picture
    960 on at

    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 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans