Skip to content

[Bug]: Dependency Field Service Integration does not get published in container while Installing apps #1530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
louagej opened this issue Mar 24, 2025 · 3 comments · Fixed by #1661
Assignees
Labels
bug Something isn't working Fix Ready Fix Ready Shipped Feature is included in the latest version

Comments

@louagej
Copy link

louagej commented Mar 24, 2025

AL-Go version

6.4

Describe the issue

CICD workflow is failing while Building - Installing apps

I have 3 apps in my dependencies folder that I need to install to build my app:

Image

The apps are also store in my setting file AL-Go-Settings.json

"generateDependencyArtifact": true,
"installOnlyReferencedApps": false,
"installApps": [
    "MyPTEApp\\dependencies\\Microsoft__Exclude_APIV2__*.app",
    "MyPTEApp\\dependencies\\Microsoft_Audit File Export_*.app",
    "MyPTEApp\\dependencies\\Microsoft_Field Service Integration_*.app"
  ]

The first two apps get published and installed on the BC container, but the last one doesn't

Creating Container took 491 seconds
  Copy C:\ProgramData\BcContainerHelper\Extensions\bc14037262547\4568f0ba-fe01-4e97-a050-b33f8a3eff99\Microsoft__Exclude_APIV2__25.5.30849.32044.app to D:\a\PTE-BC-MyPTEApp-BE\PTE-BC-MyPTEApp-BE\.buildartifacts\Dependencies
  _Exclude_APIV2_ version 25.5.30849.32085 is already published
  _Exclude_APIV2_ version 25.5.30849.32085 is already installed
  App Microsoft__Exclude_APIV2__25.5.30849.32044.app successfully published
  Copy C:\ProgramData\BcContainerHelper\Extensions\bc14037262547\4568f0ba-fe01-4e97-a050-b33f8a3eff99\Microsoft_Audit File Export_25.5.30849.32044.app to D:\a\PTE-BC-MyPTEApp-BE\PTE-BC-MyPTEApp-BE\.buildartifacts\Dependencies
  Audit File Export version 25.5.30849.32085 is already published
  Audit File Export version 25.5.30849.32085 is already installed
  App Microsoft_Audit File Export_25.5.30849.32044.app successfully published
  Copy C:\ProgramData\BcContainerHelper\Extensions\bc14037262547\4568f0ba-fe01-4e97-a050-b33f8a3eff99\Microsoft_Field Service Integration_25.5.30849.32044.app to D:\a\PTE-BC-MyPTEApp-BE\PTE-BC-MyPTEApp-BE\.buildartifacts\Dependencies
  Field Service Integration version 25.5.30849.32085 is already published
  Synchronizing Field Service Integration on tenant default
  No published extensions match the specified parameter values.
  Exception Script Stack Trace:
  at <ScriptBlock>, <No file>: line 74
  PowerShell Call Stack:
  at Invoke-ScriptInBcContainer, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 71
  at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Publish-NavContainerApp.ps1: line 394
  at Publish-BcContainerApp, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Publish-NavContainerApp.ps1: line 154
  at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1176
  at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1450
  at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1377
  at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1269
  at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.0.37\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1254
  at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v6.4\RunPipeline\RunPipeline.ps1: line 467
  at <ScriptBlock>, D:\a\_temp\60a3d403-99a4-4e37-ad22-ee2a38fe71f2.ps1: line 3
  at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v6.4\Invoke-AlGoAction.ps1: line 17
  at <ScriptBlock>, D:\a\_temp\60a3d403-99a4-4e37-ad22-ee2a38fe71f2.ps1: line 2
  at <ScriptBlock>, <No file>: line 1
  Container Free Physical Memory: 2.0Gb
  Disk C: Free 121Gb from 127Gb
  Services in container bc14037262547:
  Publish-BcContainerApp Telemetry Correlation Id: 77aaae4f-2bee-432b-8dc6-6e2a7b3d3b81

Expected behavior

Install the 3 apps:
Microsoft__Exclude_APIV2__.app",
Microsoft_Audit File Export_
.app",
Microsoft_Field Service Integration_*.app"

Steps to reproduce

  • Create an empty BC Project
  • Add the dependencies to the app.json
  • Try building app

Additional context (logs, screenshots, etc.)

I also tried the CICD without the dependencies folder and apps in my repo so that they get downloaded from the Microsoft Nuget feed, but that didn't work as well.

@louagej louagej added the bug Something isn't working label Mar 24, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@freddydk freddydk self-assigned this Apr 14, 2025
@freddydk freddydk added the Under Investigation Issue is under investigation label Apr 14, 2025
@freddydk
Copy link
Contributor

The reason for this error is, that Field Service Integration is installed in version 25.5.30849.32085 and you are trying to install/synchronize version 25.5.30849.32044, which doesn't exist.

But... you shouldn't need to copy Microsoft apps to your repository for dependency resolution - these should already be in the container/artifacts, so my expectation was that you could just remove the InstallApps setting and AL-Go would figure everything out, the publishing however still fails because the app is published but not installed.

Will investigate why this is

@freddydk
Copy link
Contributor

When the bug-fix is in, you can remove the InstallApps setting and the copy of the 3 microsoft apps from your repo - AL-Go will automatically find the right version of these app dependencies in the artifacts downloaded.

@freddydk freddydk added Fix Ready Fix Ready and removed Under Investigation Issue is under investigation labels Apr 15, 2025
@freddydk freddydk added the Shipped Feature is included in the latest version label Apr 16, 2025
@github-project-automation github-project-automation bot moved this to 💡 Ideas (Brainstorm) in AL-Go for GitHub Roadmap Apr 16, 2025
@freddydk freddydk moved this from 💡 Ideas (Brainstorm) to 👀 In preview in AL-Go for GitHub Roadmap Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fix Ready Fix Ready Shipped Feature is included in the latest version
Projects
Status: 👀 In preview
Development

Successfully merging a pull request may close this issue.

2 participants