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

Permission to view statistics.

(5) ShareShare
ReportReport
Posted on by 10

User got this error "you don't have permission to view statistics."

So I manage to add page 161 statistics for this user but the error still remain....

I may add the wrong page for him? or I have to add more table, page or object?

From the error can't tell me any detail. Generally, the error will directly identify what page but this time it's not.

Thanks in advance

2022_2D00_01_2D00_05_5F00_10_2D00_38_2D00_31.png 

  • Suggested answer
    S.Kawamura Profile Picture
    1,532 on at

    Hi,

    Recording features will show you the permission you are lacking.
    pastedimage1641355463324v1.png

    I hope this is useful to you.

    S.Kawamura

  • Brijesh joshi Profile Picture
    19 on at

    I used this Function But Still I'm getting Same error Please Suggest Any Other solution

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    Pls check Roles in User Permission Set tab in Users Card.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    There are a lot of other objects involved in calculating the statistics. So simply adding the page to the permission will not fix it i think.

    The calculation is done in the posting codeunit if i remember correctly. Are the user allowed to post?

  • Brijesh joshi Profile Picture
    19 on at

    I was Also Faced Same Issue on Sales order Statistics.

    in Given permission Set to user, He/She Don't have Permission to Sales Line Delete On Table Data

  • pankaj.k Profile Picture
    1,020 on at
    Hi All,
    Try with below code this will solve your statistics permission issue ...
     

      [EventSubscriber(ObjectType::Table, Database::"Purchase Header", OnBeforeOpenDocumentStatistics, '', false, false)]
        local procedure "Purchase Header_OnBeforeOpenDocumentStatistics"(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
        begin
            IsHandled := true;
            PurchaseHeader.ShowDocumentStatisticsPage();
        end;
     
     
    you can verify my answer if it work for you.
    Thanks 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    23,136 Super User 2026 Season 2 on at
  • Suggested answer
    Jainam M. Kothari Profile Picture
    17,045 Super User 2026 Season 2 on at
    Hello,
     
    It sounds like you're dealing with a tricky permissions issue in Business Central. Adding page 161 might not be enough because multiple objects are often involved in calculating and displaying statistics. To troubleshoot, ensure the user has permissions for all related objects, use the Effective Permissions page to identify missing permissions, utilize the recording feature to track required permissions, check the posting codeunit permissions, and analyze telemetry data for permission errors.
     
     
  • Suggested answer
    AS-30010455-0 Profile Picture
    9 on at
    This worked for me.

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans