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 :
Microsoft Dynamics AX (Archived)
Answered

"Access denied: PurchFormLetter_Invoice", while the menu item has full access

(1) ShareShare
ReportReport
Posted on by 518

Hello.

Short version:

Working with AX 2012 R3 CU8 security in SDT (Security Development Tool), I have come across a strange error message: "Access denied: PurchFormLetter_Invoice". The error is thrown when pressing "Invoice" button on a purchase order. The role having this problem is assigned with a privilege that has the action menu item "PurchFormLetter_Invoice" set to delete, i.e. full access. What else can I check/do to fix that problem?

 

More details if needed:

The privilege for the role is created via SDT by using std. roles which has something to do with accounts payable, so that their "sum" has access to purchase order invoice, and then taking the entry points from there and putting them into a new privilege. The privilege will be modified in the future so this is done to avoid modifying std. roles. Only the entry points that do not have full access on "system user", have any access on any of the std. roles used originally and has its configuration key enabled are taken into the privilege.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    Please check the security and configuration keys on the menu item that the button is calling.  Also check the auto declaration property and search around to make sure that the keys are not being modified on the fly if auto declaration is set to yes.

    Best.

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Alexey,

    To solve this error, you can follow the next steps:

    - Open the Development workspace with the Application Object Tree

    - Expand the Security node

    - Expand the Roles node

    - Select your role

    - Expand the Permissions node

    - Right click Server methods node and choose 'New server method'.

    - Open the properties form (Alt+Enter)

    - Put in the value 'PurchFormLetter_Invoice' in the Class propery

    - Fill the method name property with the value 'run'.

    - Set Effective access to 'Invoke'

    - Fill the property ManagedBy with the value 'Manual'.

    - Save and compile the role.

    You can also try to find the standard duty or privilege used in other roles and add this to your role. You can use e.g. the Security Development Tool to find these.

  • Verified answer
    Alexey Lekanov Profile Picture
    518 on at

    Thank you both for the answers!

    André, unfortunately, different variations of your method did not solve the problem. What did solve the problem was copying following server operations from std. privilege to my new privilege:

    FormletterServicePostPOApproval

    FormletterServicePostPOInvoice

    FormletterServicepostPurchaseOrderBOE_IN

    Apparently, one of them (or all?) solved the problem and I must have done something wrong when transferring all entry points from the std. roles to my privilege e.g. maybe the filtering was too limiting.

  • Febriani Vira Profile Picture
    165 on at

    Hi Alexey, 

    I'm a newbie in setting security matrix for Dynamics AX 2012 and I'm facing the same problem like yours. Your post is very helpful for me to solve the problem "Access denied: PurchFormLetter_Invoice". 

    thanks so much for all who already gave the solution. 

    Thanks, 

    Best Regards, 

    Vira

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans