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 :
Small and medium business | Business Central, N...
Suggested Answer

Extension compilation failed error AL1024: A package with Publisher xxx, name, and a version compatible with '14.1.0.20191114' could not be loaded.

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I try to run GET-NAVAPPRUNTIMEPACKAGE for an Extension in BC14 with a dependency to another published Base Extension.

        {
        "appId""b477b376-a9c8-47fc-b1ce-9999882c1643",
        "name""yyy"
        "publisher""xxx"
        "version""14.1.0.20191114"
        }

In VS Code the modification of the Base Extension are available and I can publish it without any Problems.

But when I try to run GET-NAVAPPRUNTIMEPACKAGE the following error appears:

"Extension compilation failed error AL1024: A package with Publisher xxx, Name yyy, and a version compatible with '14.1.0.20191114' could not be loaded.
(16,16): error AL0271: The action 'ZZZ' is not found in the target"

I check all versions but they seems to be correct.

Any idea what I am doing wrong?

Many thanks

Johannes

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Do you have the downloaded symbols for the two extensions?

  • Johannes B. Profile Picture
    5 on at

    Hi Stefano,

    what do you mean exactly?

    In VS Code I can download Symbols for the base extenstion with Name yyy. In VS Code I can see the modifications of this Extension and can work with them. A publish via VS Code works. Only GET-NAVAPPRUNTIMEPACKAGE outside of VS Code doesn't work.

    Do I need to run download Symbols when executing GET-NAVAPPRUNTIMEPACKAGE somehow?

    Thanks

    Johannes

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    No. If you have symbols previously downloaded and you can correctly compile from VS Code and obtaining the .app file, you should be able to execute that command. Can you post the exact error message you have?

  • Johannes B. Profile Picture
    5 on at

    Hi Stefano,

    I have created a very simple example with to extensions:

    1. HelloWorld wihtout dependencies.

    2. HelloWorld2 with a dependency to HelloWorld

     "dependencies": [

       {

         "appId": "ddfb9faf-9388-4b02-a30c-e054fb24df3b",

         "publisher": "Default publisher",

         "name": "HelloWorld",

         "version": "1.0.0.0"

       }

    I could publish both Extensions via VS Code without any Problems:

    pastedimage1582707678966v1.png

    When running GET-NAVAPPRUNTIMEPACKAGE I get the following error:

    "Extension compilation failed

    error AL1024: A package with publisher 'Default publisher', name 'HelloWorld', and a version compatible with '1.0.0.0' could not be loaded."

    Thanks

    Johannes

  • Johannes B. Profile Picture
    5 on at

    I found a similar issue.

    github.com/.../5286

    I will try to add the tenant to GET-NAVAPPRUNTIMEPACKAGE

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    I'll test later because I'm out of office now.

    Let me know if tenant id (or publishing the extensions with Powershell) will solve.

  • Johannes B. Profile Picture
    5 on at

    The error already occurs if publishing with PowerShell.

    But it works to run GET-NAVAPPRUNTIMEPACKAGE with Parameter tenant. :-)

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans