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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Your license does not grant you the following permissions on CodeUnit 6989 Expense Attachment

(3) ShareShare
ReportReport
Posted on by 19
Hi
 
v28.3 was rolled into one environment overnight. Now when we are attaching documents to Sales Orders, Sales Invoices or Sales Credit Memo via the API (/documentAttachments) through an Entra Enterprise App, the exception "Your license does not grant you the following permissions on CodeUnit 6989 Expense Attachment" is returned.

Expenses is not used and no users are configured to use it.

Another environment still on v28.2 works still perfects with the exact same code. This API call was working in this environment in v28.2 yesterday
 
Mike
 
 
(Correction, is /documentAttachments not /Attachments)
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    18,722 Super User 2026 Season 2 on at
    Hello Mike,
    Since the same /documentAttachments call worked in v28.2 and started failing immediately after the v28.3 update with a license error on standard Codeunit 6989, this strongly looks like a v28.3 regression in the standard API/entitlement path, not an issue with your Entra app setup or Expenses configuration. Recheck that the Entra application still has the required Business Central permission sets, but because this is a license entitlement error rather than a normal permission-set error, adding object permissions may not solve it. I would raise a Microsoft support ticket and provide the working v28.2 environment, failing v28.3 environment, full API request, timestamp, correlation ID, and the exact error; republishing or changing your integration should not be the permanent fix.
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Mike Switzerland Profile Picture
    19 on at
    Environments > Manage apps

    I uninstalled the Expense Agent (Preview) for Germany. No effect.
    I then uninstalled the Expense Agent (Preview) with Data Deletion. SUCCESS!!!!!
     
    There 2 previews were automatically installed with 28.3

    It was the Global Expense Agent (Preview) that broke us. 28.3 brought a bad preview with it.

    I happened to stumble on "Issue ID 6546294: Expense Agent is currently unavailable in the Germany region" and thought that I rip them out in case it was them.
  • Mike Switzerland Profile Picture
    19 on at
    And of course, Document Posting via the API also broke as we have the "digital vouchers" enabled

    There the API responded with Error 400. A very "useful" error....not.

    Set up digital vouchers - Business Central | Microsoft Learn
  • Suggested answer
    YUN ZHU Profile Picture
    102,765 Super User 2026 Season 2 on at
    This is caused by a known issue.
     
    Thanks
    ZHU
  • Mike Switzerland Profile Picture
    19 on at
    Breaking Production, totally unrelated to the issue is really bad.
     
    We don't use expenses, and is not configured, but this preview blows up document generation (configured with Digital Vouchers) and document attachments in Sales Invoices, Sales Orders and Sales Credit Memos (actually all document attachments).
     
    If it is a known issue, then Microsoft can't deploy a version into a Country that it knows breaks the production environments. It reeks of AI code slop deploying AI code slop.
     
  • M-Owens Profile Picture
    2 on at
    Thank you Mike from Switzerland. We thought about deleting these new apps on Monday, but were unsure. Now that they and thier Data is deleted our API's are working for ALL of our companies. I say ALL because for some of our companies we were able to create Purchase Invoices with the API and for all of our companies we could change and delete. Very strange. Especially since all of our companies we cloned from a Template with the exact same configurations. Very disappointed that Microsoft brought in two preview apps that seriously affected our Production Environment even though we do not use Expenses and had no need for these Apps. DO NOT INSTALL them automatically, PLEASE.
  • Suggested answer
    ImAPilot Profile Picture
    72 on at
    Thanks Mike Switzerland, this was our issue as well. In our case it broke a custom API inserting new Purchase Orders, and it was the US regional version. Deleting the base preview extension also deleted the dependent regional extension. Seems crazy that a preview module would be rolled out with a license entitlement requirement. 
     
    Instructions for removal:
    1. Tell-me: Extension Management
    2. Scroll down to 'Expense Agent (Preview)
    3. Click on the 3 dots and select uninstall
    4. Use your best judgment on deleting underlying data - either way will remove the code unit causing the error
    5. Click the uninstall button
    6. Accept the prompts to also delete the dependent regional extension
    7. Retest your action that failed previously
     


  • DK-24070857-0 Profile Picture
    2 on at
    We've experienced the same problem in the UK.
     
    Releasing features which break production for preview additions is really poor. 

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 575 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 334 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans