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

(1) ShareShare
ReportReport
Posted on by 17
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,420 Super User 2026 Season 1 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
  • Verified answer
    Mike Switzerland Profile Picture
    17 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
    17 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

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans