Hello everyone,
I am working with Business Central 22 OnPrem and I have a setup with three AL apps:
MycustomTable
MycustomField
In Visual Studio Code everything compiles fine. Dependencies are declared correctly (App2 → App1, App3 → App2) and symbols are downloaded without any errors.
App2 → App1
App3 → App2
When I publish the apps:
Publish-NAVApp -ServerInstance BC220 -Path "C:\Apps\App2.app" -SkipVerification Sync-NAVApp -ServerInstance BC220 -Name "App2" -Publisher "..." -Version 1.0.0.0 -Mode ForceSync Install-NAVApp -ServerInstance BC220 -Name "App2" -Publisher "..." -Version 1.0.0.0
(I also confirmed with Get-NAVAppInfo that App2 is published, installed, and synchronized.)
Get-NAVAppInfo
app.json
ForceSync
showMyCode
resourceExposurePolicy
FieldRef
🙏 Any advice or references would be very helpful. I need to explain to my customer why this error occurs even though everything compiles fine.
Thanks in advance!
What i could make out of above problem is - App3 is indirectly dependent on App1 and App2.
Solution
It is advisable to explicitly declare both dependencies (App1 and App2) in the app.json file of App3.
By doing this, you ensure smoother publishing and installation, avoiding issues that can arise from indirect or missing dependencies.
Please try this way
Publish and install App1.
Publish and install App2
Publish and install App3 In many real-world scenarios, it is common to reference two or more dependencies directly to maintain stability and avoid dependency chain issues.
If you feel this answer helpful , please verify the answer .
Hi, good day I hope this can help you, and give you some hints.
Dynamics 365 Business Central: Can we access the standard internal table/field (Access Property = Internal) via AL??? | Dynamics 365 Lab
Moving tables and fields between extensions - Business Central | Microsoft Learn
Resource exposure policy setting - Business Central | Microsoft Learn
Best Regards Gerardo
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sumit Singh 2,708
Sohail Ahmed 2,675 Super User 2025 Season 2
Jeffrey Bulanadi 2,203