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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Sorry, the current permissions prevented the action (TableData Read in codeunit)

(1) ShareShare
ReportReport
Posted on by 50
I have created a new table where I store settings. These settings are used for posting data to an external party. For the posting I use a codeunit. But when a normal user trys to post I get an error:
Sorry, the current permissions prevented the action (TableData ....Read....)
 
In the codeunit I set the permissions RMID. But still not working. Am I missing something?
 
My table:
table 63000 /Middleware Settings/
{
    DataClassification = ToBeClassified;
 
    fields
    {
        field(1; Id; Text[200])
        {
 
        }
 
        field(2; /Host/; Text[2048])
        {
 
        }
 
        field(3; /ApiKey/; Text[100])
        {
 
        }
 
    }
}
 
 
Codeunit code:
codeunit 69002 MiddlewareApiLogicCodeunit
{
    Permissions = tabledata 63000 = rimd;
 
 procedure SendRequestToApi(jsonText: Text; endPoint: Text; method: Text) response: HttpResponseMessage
    var
        client: HttpClient;
        request: HttpRequestMessage;
        contentHeaders: HttpHeaders;
        requestHeaders: HttpHeaders;
        content: HttpContent;
        apiKey: Text;
        settings: Record /Middleware Settings/;
        apiEndPoint: Text;
    begin
 
        if settings.IsEmpty() then
            Error('No middleware settings found. Please add settings on page /Middleware Settings/');
 
        settings.FindFirst();
 
  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at
    Hi, it looks like you didn't generate the permission file and need to assign it to the user in User Setup.
     
    Hope this helps.
    Thanks.
    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 676 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 483 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans