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

kuhi
Member Posts: 18
In Dynamics Nav 2018 I made this codeunit 50006 called Prova:
When I Ctrl+R or run it will display this error message:
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?
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?
0
Answers
-
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
0 -
Check your permission, you don't like that you've super ones0
-
Your license is probably not configured to allow codeunit 50006. To check, you either need to connect to Business Center and check the license configuration, or get Detailed License Information txt/html file from whoever generated the license.
For your report error, there's protection to prevent just anyone from modifying certain tables. In the report, you need to grant explicit permissions to allow modification of Purch. Inv. Header table.
Are you coding in C/AL or AL? Because where and how you define it depends on it.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions