AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

[Bug]: Build fails when a dependency is added

Open AlexCeg opened this issue 6 months ago • 11 comments

AL-Go version

7.2

Describe the issue

I added a dependency on this app:

{
      "id": "<guid>",
      "name": "gevis ERP VEO",
      "publisher": "GWS mbH",
      "version": "26.2.129.0"
    }

But then I get an error when I run CI/CD action:

Image

When I add a dependency on another app, it works.

Additional Information: I think the problem is, that the App "gevis ERP VEO" has a dependency on an app which also has the name "System"

Expected behavior

There is no error because of a missing System App.

Steps to reproduce

Add the dependency as above to an empty app and run the CI/CD action

Additional context (logs, screenshots, etc.)

No response

AlexCeg avatar Jul 07 '25 12:07 AlexCeg

@AlexCeg can you please attach full log (feel free to redact any information, related to your repo or BC instance).

mazhelez avatar Jul 07 '25 12:07 mazhelez

log.txt

AlexCeg avatar Jul 07 '25 13:07 AlexCeg

It's quite a peculiar error. I noticed you use a custom template (AlexCeg/PTETest), is there anything you do there that might affect this process?

Can you also include the app.json of the app?

mazhelez avatar Jul 09 '25 11:07 mazhelez

I think the same. I created the repository from the Template. This is my app.json, when it fails:

{
  "id": "1795e769-4e99-4f65-a0c4-b5dcb2e09885",
  "name": "test",
  "publisher": "AlexCeg",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [
    {
      "id": "332798ea-ba9b-48f0-9351-172ea6fffb45",
      "name": "gevis ERP VEO",
      "publisher": "GWS mbH",
      "version": "26.2.129.0"
    }
  ],
  "screenshots": [],
  "platform": "26.0.0.0",
  "application": "26.2.0.0",
  "idRanges": [
    {
      "from": 50100,
      "to": 50110
    }
  ],
  "features": [
    "NoImplicitWith"
  ],
  "resourceExposurePolicy": {
    "allowDebugging": true,
    "allowDownloadingSource": false,
    "includeSourceInSymbolFile": false
  }
}

AlexCeg avatar Jul 09 '25 11:07 AlexCeg

@AlexCeg There was a fix for https://github.com/microsoft/navcontainerhelper/issues/3943 a couple of weeks ago. Have you tried to repro with the latest BCContainerHelper version?

mazhelez avatar Jul 24 '25 12:07 mazhelez

@mazhelez Thank you. Compiling works now. But I get the next error and I cannot explain it:

Installing test app dependencies
    _____           _        _ _ _               _            _                             _                           _                 _
   |_   _|         | |      | | (_)             | |          | |                           | |                         | |               (_)
     | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |_ ___  ___| |_    __ _ _ __  _ __     __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___  ___
     | | | '_ \/ __| __/ _` | | | | '_ \ / _` | | __/ _ \/ __| __|  / _` | '_ \| '_ \   / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \/ __|
    _| |_| | | \__ \ || (_| | | | | | | | (_| | | ||  __/\__ \ |_  | (_| | |_) | |_) | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __/\__ \
   |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__\___||___/\__|  \__,_| .__/| .__/   \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___||___/
                                          __/ |                          | |   | |                | |
                                         |___/                           |_|   |_|                |_|
  Missing TestApp dependencies
  - 332798ea-ba9b-48f0-9351-172ea6fffb45
  Synchronizing gevis ERP VEO on default
  Cannot synchronize the extension because no synchronized extension could be found to satisfy the dependency definition for Change Dashboard DDP by GWS mbH 26.3.133.239517.
  
  Exception Script Stack Trace:
  at <ScriptBlock>, <No file>: line 21

I added you to the repository so that you may have a closer look onto it.

AlexCeg avatar Jul 29 '25 05:07 AlexCeg

@mazhelez i think i might be experiencing the same problem. My app.json has a single dependency:

{ "id": "{guid}", "name": "TemperPack Customizations", "publisher": "TemperPack IT", "version": "1.0.26.22", "runtime": "14.0", "target": "Cloud", "platform": "1.0.0.0", "application": "25.0.0.0", "resourceExposurePolicy": { "allowDebugging": true, "allowDownloadingSource": true, "includeSourceInSymbolFile": true }, "dependencies": [ { "id": "a4c02dc2-a5a1-4fa1-bddd-f47a26b048ca", "name": "Temper Pack Inventory", "version": "23.0.0.2", "publisher": "Wipfli, LLP." }], "idRanges": [ { "from": 52511, "to": 53511 } ] }

and when it attempts to build it fails to find the package related to the dependency: Image

I see you mention a newer version of BCContainerHelper...how do i force that new version to see if that helps the issue?

m-scipione avatar Aug 01 '25 23:08 m-scipione

@m-scipione there's a setting you can use to control the BCContainerHelper version: http://aka.ms/algosettings#BcContainerHelperVersion

mazhelez avatar Aug 20 '25 19:08 mazhelez

@AlexCeg Thanks! I'll take a look these days and try to figure out the reason of the failure.

mazhelez avatar Aug 20 '25 19:08 mazhelez

@mazhelez thanks! i did try with both latest and preview for the BcContainerHelperVersion setting and it still yields the same result (failure to compile because the dependent app isnt found in the package cache folder).

AL-Go Settings: Image

Error Messge: Image

I did a little digging on this comment and was able to manually download the .app from the dependency: Image

Since I'm able to download the .app manually, I wonder why the pipeline can't do the same. Should I open a new Issue for this or is it similar enough to this issue?

m-scipione avatar Aug 20 '25 20:08 m-scipione

@m-scipione Please open a new issue and provide the logs (please obfuscate all sensitive data, if needed).

mazhelez avatar Aug 20 '25 20:08 mazhelez

@mazhelez Could the error be fixed?

AlexCeg avatar Nov 17 '25 09:11 AlexCeg