Search code examples
microsoft-dynamicsnavisiondynamics-navmicrosoft-dynamics-nav

You do not have the following permissions on CodeUnit Prova: Execute


In Dynamics Nav 2018 I made this codeunit 50006 called Prova:

OnRun()
MESSAGE('Hello');

When I Ctrl+R or run it will display this error message:

You do not have the following permissions on CodeUnit Prova: Execute

My user has SUPER permissions.

If it's a license thing I really don't know how to check that.

How can I run this codeunit? Or check if it's a license issue?

EDIT:

I've tested to create a REPORT and run it:

OnPreReport()
  PurchHeader.GET('CF-181003');    
  PurchHeader."Buy-from Vendor No." := 'RONALDO';
  PurchHeader.MODIFY;

It ran but I got this error:

You do not have the following permissions on TableData Purch. Inv. Header: Modify

Solution

  • Most probably it IS a license restriction. There are two options to check that.

    1. There's a txt file that you can get along with license flf file. In this txt file you can find all allowed ranges in readable format.
    2. Create a page for table called License Permissions. There you will see all objects available to you. See screenshot.

    enter image description here