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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Access denied to VendInvoiceInfoSubTable despite privilege and role assignment in D365 FO

(3) ShareShare
ReportReport
Posted on by 843

Hi everyone.

I'm encountering a persistent issue in Dynamics 365 Finance & Operations related to security permissions.

I receive the following runtime error when opening a form (VendEditInvoice) or running code that accesses VendInvoiceInfoSubTable:
 
You are not autorized to access table 'Vendor invoice - purchase order relation table' (VendInvoiceInfoSubTable). Contact your system administrator.
 
This happens even though I have created and assigned all necessary security artifacts.
 

What I've already done:

  • Created a custom Privilege that grants Delete access to VendInvoiceInfoSubTable
  • Created a custom Duty including the above Privilege
  • Assigned this Duty to a custom Role
  • Assigned this Role to the affected user
  • Added VendEditInvoice MenuItemDisplay with Read access to the same Privilege
  • Verified that VendInvoiceInfoSubTable has Disable Lock Escalation = Yes
  • Cleared role assignment cache for the user and restarted the session
  • Confirmed that granting the System administrator role resolves the issue

 

Can someone help?

Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at
    Hi Shooowtek,
     
    Can you clarify some parts of your question please?
     
    1. You mentioned that you added delete access to VendInvoiceInfoSubTable. Can you confirm you are talking about table permissions? I do assume so.
    2. Where exactly do you get the error? Is it on the user interface or when running a task in batch?
    3. Have you tried using the standard privilege for maintaining vendor invoices?
    4. Have you checked if there are possibly some deny permissions defined on one of the security roles assigned to this user?
  • Shooowtek Profile Picture
    843 on at
    Hello Andre,

    1. Yes, I have added the table Delete permissions to the privilege directly

    2. I’ve done detailed debugging, and the error occurs when calling super() in the init() method of the VendEditInvoice form

    3. Yes, I’ve tried using the standard privilege for maintaining vendor invoices.

    4. I haven’t found any deny permissions. The issue occurs for all users who do not have the System Administrator role.


    I added a short piece of code in the init() method to check the access level. Every check returns true, but the error still occurs.

    Could someone please advise me? I feel like I’ve already tried everything.
    Could it be related to permissions at the DataSource level on the VendEditInvoice form?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans