TrueCommerce Fails After BC 28.3: License Does Not Grant Permissions on CodeUnit 6989 Expense Attachment Mgt.
Your license does not grant you the following permissions on CodeUnit 6989 Expense Attachment Mgt.: Execute.What It Means
After the environment updates to Business Central 28.3, Transaction Manager operations in Business Central fail with an Internal_ServerError. The message says the license does not allow CodeUnit 6989 Expense Attachment Mgt. EDI imports and exports stop until the cause is removed. Other apps that create purchase records see the same error.
Root Cause
Version 28.3 adds the Microsoft extensions Expense Agent (Preview) and Expense Agent (Preview) (GB). They bring CodeUnit 6989 Expense Attachment Mgt., which runs during operations that the TrueCommerce integration user performs. That user's license and permissions do not include Execute on CodeUnit 6989, so the call fails. Equisys reports the same error for Zetadocs Expenses on 28.3 and says Microsoft has acknowledged it as a known issue.
Step-by-Step Fix
- Confirm the version: in Business Central, open Help & Support and check that the application version is 28.3 or later.
- Confirm the error text in Transaction Manager: it names CodeUnit 6989 Expense Attachment Mgt.
- If your company does not use Expense Agent, search for Extension Management.
- Select Expense Agent (Preview), open the three-dot menu, and choose Uninstall.
- Turn on Delete Extension Data, then confirm. Note: this deletes the app's data and the data of apps that depend on it, and cannot be undone.
- Repeat for Expense Agent (Preview) (GB) if it is installed.
- Retry the failed operations from Transaction Manager.
- If your company needs Expense Agent, do not uninstall it. Contact TrueCommerce Support or your VAR and ask for the permission or app update for 28.3.
Verification Steps
Sources & References
- https://help.truecommerce.com/en/articles/16053663-dynamics-365-business-central-error-your-license-does-not-grant-you-the-following-permissions-on-codeunit-6989-expense-attachment-mgt
- http://www.equisys.com/Support/Technotes/prb-zetadocs-expenses-export-issue-of-your-license-does-not-grant-you-the-following-permissions-on-codeunit-6989-expense-attachment-mgt
- https://learn.microsoft.com/en-us/dynamics365/business-central/ui-extensions-install-uninstall
Early Access · 30-Day Sandbox Pilot
Stop Order Sync Failures Before Customers Notice
The Order Flow Doctor monitors Microsoft Dynamics 365 Business Central order flows across Shopify, EDI (TrueCommerce, SPS), 3PLs, and carriers. Get automated root-cause diagnosis and one-click fixes.