Closed Arthurvdv closed 1 year ago
Can you share what it DOES show?
Of course! I'm not 100% sure if ALOps can solve this, but it would be helpfull to throw an warning/error early on in the process where is the problem is actually located.
I've created an simple example, because the real-life scenario had multiple dependencies where it was more of a puzzel. In this example it will be more clear to keep it simple. For the context: We have a "Example App with Dependency" which has a dependency to the app called "App".
The content of the App.app has no source code, only SymbolReferences.
I've expected the error the shown on the Publish Dependencies step. The App is installed "succesfully", where I think it should thrown an warning.
Where it gets confusing is that the error only shows which object(s) are missing. Because the dependencies are installed "succesfully" it's tempting to search in the wrong direction like do I have a old version? Do I mis an other dependency? ..and so on..
Publish Dependencies
2022-05-05T14:20:04.7400914Z ##[section]Starting: Publish Dependencies
2022-05-05T14:20:04.7915005Z ==============================================================================
2022-05-05T14:20:04.7915270Z Task : ALOps App Publish
2022-05-05T14:20:04.7915475Z Description : Publish AL Extension to Business Central
2022-05-05T14:20:04.7915672Z Version : 1.448.2984
2022-05-05T14:20:04.7915820Z Author : Hodor
2022-05-05T14:20:04.7916031Z Help : Publish Business Central extension to service tier.
2022-05-05T14:20:04.7916285Z ==============================================================================
2022-05-05T14:20:06.2702422Z *** Validate configuration
2022-05-05T14:20:06.5254090Z *** Task Inputs:
2022-05-05T14:20:06.5291244Z
2022-05-05T14:20:06.5368746Z name value
2022-05-05T14:20:06.5369229Z ---- -----
2022-05-05T14:20:06.5370375Z usedocker True
2022-05-05T14:20:06.5372790Z fixed_tag
2022-05-05T14:20:06.5375142Z installpublishedapps True
2022-05-05T14:20:06.5378871Z installaltesttool False
2022-05-05T14:20:06.5381333Z install_al_app_names Tests-TestLibraries...
2022-05-05T14:20:06.5383911Z strictappnames False
2022-05-05T14:20:06.5385168Z nav_serverinstance BC140
2022-05-05T14:20:06.5387004Z artifact_path
2022-05-05T14:20:06.5389002Z nav_artifact_app_filter *.app
2022-05-05T14:20:06.5390969Z skip_verification True
2022-05-05T14:20:06.5392414Z forceinstall False
2022-05-05T14:20:06.5394100Z forcesync False
2022-05-05T14:20:06.5395330Z publish_scope Global
2022-05-05T14:20:06.5397002Z tenant default
2022-05-05T14:20:06.5398172Z batch_publish_folder .apps
2022-05-05T14:20:06.5399274Z publisherazureactivedirectorytenantid
2022-05-05T14:20:06.5399426Z
2022-05-05T14:20:06.5415940Z
2022-05-05T14:20:06.5421994Z
2022-05-05T14:20:06.5568534Z *** For documentation, please visit : https://www.alops.be/documentation
2022-05-05T14:20:06.5571870Z
2022-05-05T14:20:06.8945826Z *** ALOps License:
2022-05-05T14:20:06.8961779Z * Licensed To: Van Roey (Collection License)
2022-05-05T14:20:06.8964659Z
2022-05-05T14:20:06.9053492Z *** Importing required PS-Functions
2022-05-05T14:20:07.2384212Z *** Initiate Docker Session
2022-05-05T14:20:07.4657083Z *** Set Docker Container ErrorActionPreference = Stop
2022-05-05T14:20:07.7524221Z *** Start Batch App-Publish.
2022-05-05T14:20:07.8113205Z *** Copy Artifacts: [C:\azure-vsts-agent-build\_work\329\s\.apps] to [c:\Run\DevOps\Artifacts-e9c0836216ce414e9bc47b05c1fdbb05]
2022-05-05T14:20:08.2059042Z *** Import NAV/BC Management DLL's
2022-05-05T14:20:08.2077606Z *** Loading assemblies for ServiceTier [BC].
2022-05-05T14:20:08.8549038Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\200\service]
2022-05-05T14:20:08.8649251Z *** Selected module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-05-05T14:20:08.8660365Z *** Loading module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-05-05T14:20:08.9271033Z *** Selected module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Management.dll]
2022-05-05T14:20:08.9275190Z *** Loading module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Management.dll]
2022-05-05T14:20:09.2107935Z *** Get Available Applications from [c:\Run\DevOps\Artifacts-e9c0836216ce414e9bc47b05c1fdbb05].
2022-05-05T14:20:09.2186602Z *** Get [*.app] files recursive from [c:\Run\DevOps\Artifacts-e9c0836216ce414e9bc47b05c1fdbb05]
2022-05-05T14:20:09.2225052Z *** Found [1] files.
2022-05-05T14:20:09.2231376Z *** Extract App detail from [C:\Run\DevOps\Artifacts-e9c0836216ce414e9bc47b05c1fdbb05\VanRoey.be_App_1.0.0.0.app]
2022-05-05T14:20:09.3117406Z *** Installing Applications:
2022-05-05T14:20:09.3368560Z
2022-05-05T14:20:09.3402388Z **************************************
2022-05-05T14:20:09.3407684Z * App File = [C:\Run\DevOps\Artifacts-e9c0836216ce414e9bc47b05c1fdbb05\VanRoey.be_App_1.0.0.0.app]
2022-05-05T14:20:09.3407926Z
2022-05-05T14:20:09.3459337Z * App.ID = 0449bccc-a054-400a-9ef7-d33a4cfbe409
2022-05-05T14:20:09.3479063Z * App.Name = App
2022-05-05T14:20:09.3492809Z * App.Publisher = VanRoey.be
2022-05-05T14:20:09.3527496Z * App.Version = 1.0.0.0
2022-05-05T14:20:09.6201085Z => Publishing App 'App v1.0.0.0'
2022-05-05T14:20:12.3517987Z *** Get Tenants
2022-05-05T14:20:12.5328061Z *** Sync Tenant default
2022-05-05T14:20:12.8889042Z *** Sync App [App] on tenant [default]
2022-05-05T14:20:13.0774900Z *** Install App [App] on tenant [default]
2022-05-05T14:20:17.6773029Z
2022-05-05T14:20:17.6789635Z **************************************
2022-05-05T14:20:17.6789931Z
2022-05-05T14:20:17.6801823Z *** Batch App-Publish finished.
2022-05-05T14:20:17.6806568Z *** AL-Extension Published to ALOps Repository
2022-05-05T14:20:17.7053299Z ##[section]Async Command Start: Add Build Tag
2022-05-05T14:20:17.7053922Z Build '37288' has following tags now: AL.Analyzer.CodeCop, AL.Analyzer.UICop, AL.Analyzer.PerTenantExtensionCop, App.App.1.0.0.0, myimage-sandbox-20.0.37253.40150-be-10.0.17763.2686-ltsc2019, BC.Platform.20.0.37114.40119, BC.Version.20.0.37253.40150
2022-05-05T14:20:17.7054412Z ##[section]Async Command End: Add Build Tag
2022-05-05T14:20:17.7055179Z ##[section]Finishing: Publish Dependencies
Compile App
2022-05-05T14:20:17.7140946Z ##[section]Starting: Compile App
2022-05-05T14:20:17.7543256Z ==============================================================================
2022-05-05T14:20:17.7543671Z Task : ALOps App Compiler
2022-05-05T14:20:17.7543889Z Description : Compile AL Extensions for Business Central
2022-05-05T14:20:17.7544084Z Version : 1.448.2984
2022-05-05T14:20:17.7544234Z Author : Hodor
2022-05-05T14:20:17.7544442Z Help : Compile a Business Central extension from AL code.
2022-05-05T14:20:17.7544701Z ==============================================================================
2022-05-05T14:20:20.1291020Z *** Validate configuration
2022-05-05T14:20:20.3611660Z *** Task Inputs:
2022-05-05T14:20:20.3656777Z
2022-05-05T14:20:20.3759416Z name value
2022-05-05T14:20:20.3761180Z ---- -----
2022-05-05T14:20:20.3762829Z usedocker True
2022-05-05T14:20:20.3764473Z fixed_tag
2022-05-05T14:20:20.3766143Z targetproject C:\azure-vsts-agent-build\_work\329\s\app\app.json
2022-05-05T14:20:20.3768016Z nav_computername
2022-05-05T14:20:20.3768513Z nav_serverinstance BC140
2022-05-05T14:20:20.3769777Z nav_tenant default
2022-05-05T14:20:20.3770251Z nav_ports_dev 7049
2022-05-05T14:20:20.3771492Z bc_username
2022-05-05T14:20:20.3771879Z bc_password
2022-05-05T14:20:20.3773207Z al_compiler_version 0.12.15355
2022-05-05T14:20:20.3783852Z ruleset ...019-12-12&sr=b&sig=MMp3UtkpsoFMH%2BPvkvtggs5Rm2UPyG1akRzUKot0MaA%3D
2022-05-05T14:20:20.3784341Z al_analyzer None
2022-05-05T14:20:20.3785511Z nav_app_version ?.?.*.0
2022-05-05T14:20:20.3786806Z vsix_download_path
2022-05-05T14:20:20.3787181Z use_ssl False
2022-05-05T14:20:20.3788825Z download_test_symbols False
2022-05-05T14:20:20.3789311Z usecompression True
2022-05-05T14:20:20.3789703Z publish_artifact False
2022-05-05T14:20:20.3790995Z publishxlif False
2022-05-05T14:20:20.3792358Z failed_on_warnings False
2022-05-05T14:20:20.3792730Z app_file_suffix _APP
2022-05-05T14:20:20.3794673Z updatebuildnumber False
2022-05-05T14:20:20.3794970Z setup_working_folder False
2022-05-05T14:20:20.3796610Z showmycode Keep
2022-05-05T14:20:20.3797839Z resourceexposurepolicy_allowdebugging Keep
2022-05-05T14:20:20.3798608Z resourceexposurepolicy_allowdownloadingsource Keep
2022-05-05T14:20:20.3800131Z resourceexposurepolicy_includesourceinsymbolfile Keep
2022-05-05T14:20:20.3801212Z applicationinsightskey
2022-05-05T14:20:20.3801592Z printappmanifest True
2022-05-05T14:20:20.3802643Z output_alc_logs True
2022-05-05T14:20:20.3804324Z additionalprobingpaths
2022-05-05T14:20:20.3804470Z
2022-05-05T14:20:20.3820537Z
2022-05-05T14:20:20.3826955Z
2022-05-05T14:20:20.3967009Z *** For documentation, please visit : https://www.alops.be/documentation
2022-05-05T14:20:20.3970722Z
2022-05-05T14:20:20.8059598Z *** ALOps License:
2022-05-05T14:20:20.8077621Z * Licensed To: Van Roey (Collection License)
2022-05-05T14:20:20.8080026Z
2022-05-05T14:20:20.8170852Z *** Importing required PS-Functions
2022-05-05T14:20:21.3927114Z *** Initiate Docker Session
2022-05-05T14:20:21.6166552Z *** Set Docker Container ErrorActionPreference = Stop
2022-05-05T14:20:22.0748438Z *** Import NAV/BC Management DLL's
2022-05-05T14:20:22.0769543Z *** Loading assemblies for ServiceTier [BC].
2022-05-05T14:20:22.2914007Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\200\service]
2022-05-05T14:20:22.3006061Z *** Selected module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-05-05T14:20:22.3009663Z *** Loading module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-05-05T14:20:22.3243418Z *** Selected module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Management.dll]
2022-05-05T14:20:22.3247060Z *** Loading module: [C:\program files\microsoft dynamics nav\200\service\Microsoft.Dynamics.Nav.Management.dll]
2022-05-05T14:20:22.5307706Z *** Setting up AL Compiler [ALLanguage]
2022-05-05T14:20:22.7039471Z *** Downloading AL Compiler [ALLanguage]
2022-05-05T14:20:22.7319516Z *** Get Extension from Local-Disk...[C:\Run\ALLanguage.vsix]
2022-05-05T14:20:22.7322478Z *** Resolving Path [C:\Run\ALLanguage.vsix]
2022-05-05T14:20:22.7932892Z *** VSIX Path Resolved: [C:\Run\ALLanguage.vsix]
2022-05-05T14:20:22.7950743Z *** Unpacking Extension to folder...
2022-05-05T14:20:28.4052665Z *** Loading Json Object: [c:\Run\Microsoft.al\al-ALLanguage\extension\package.json]
2022-05-05T14:20:28.4302741Z *** Using AL Compiler [vALLanguage] located [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe]
2022-05-05T14:20:28.4305852Z ***
2022-05-05T14:20:28.4312438Z *** Working folder: C:\azure-vsts-agent-build\_work\329\s
2022-05-05T14:20:28.4316421Z ***
2022-05-05T14:20:28.4320825Z *** Copy Working folder to Docker Container: 5847177da58d0a4a1ba5e18fcee263c417fd217bdf373640c6b238871c38bb67
2022-05-05T14:20:28.4324748Z *** Docker Working Folder: c:\Run\DevOps\
2022-05-05T14:20:28.4329016Z *** Copy from [C:\azure-vsts-agent-build\_work\329\s] to [c:\Run\DevOps\]
2022-05-05T14:20:28.4359614Z *** Source File setup completed
2022-05-05T14:20:28.7006015Z *** Target Project: \app\app.json
2022-05-05T14:20:28.7008515Z *** Check for app.json files: c:\Run\DevOps\
2022-05-05T14:20:28.7170273Z *** Multiple projects found:
2022-05-05T14:20:28.7277094Z - C:\Run\DevOps\App
2022-05-05T14:20:28.7280360Z - C:\Run\DevOps\Test
2022-05-05T14:20:28.7281993Z *** Retrieving App-Info [\app\app.json]
2022-05-05T14:20:28.7284191Z *** Loading Json Object: [c:\Run\DevOps\app\app.json]
2022-05-05T14:20:28.7302900Z * App.ID = 5031e150-a45a-4d66-9517-e3e8950d0aee
2022-05-05T14:20:28.7317404Z * App.Name = Example App with Dependency
2022-05-05T14:20:28.7383110Z * App.Publisher = VanRoey.be
2022-05-05T14:20:28.7395576Z * App.Version = 1.0.0.0
2022-05-05T14:20:28.7409624Z * App.Platform = 17.0.0.0
2022-05-05T14:20:28.7420306Z * App.Application = 17.0.0.0
2022-05-05T14:20:28.7467826Z *** Check Runtime: [6.0]
2022-05-05T14:20:28.7535655Z *** Removing ResourceExposurePolicy
2022-05-05T14:20:28.7562093Z ***
2022-05-05T14:20:28.7838905Z *** Retaining original [Major] from version (?.0.0.0)
2022-05-05T14:20:28.7857876Z *** Retaining original [Minor] from version (0.?.0.0)
2022-05-05T14:20:28.7894223Z *** Setting Managed App Version [c:\Run\DevOps\app\app.json] => 1.0.37288.0
2022-05-05T14:20:28.8115979Z *** Final app.json:
2022-05-05T14:20:28.8153929Z {
2022-05-05T14:20:28.8154593Z "id": "5031e150-a45a-4d66-9517-e3e8950d0aee",
2022-05-05T14:20:28.8154911Z "name": "Example App with Dependency",
2022-05-05T14:20:28.8155188Z "publisher": "VanRoey.be",
2022-05-05T14:20:28.8155414Z "version": "1.0.37288.0",
2022-05-05T14:20:28.8155620Z "brief": "",
2022-05-05T14:20:28.8155819Z "description": "",
2022-05-05T14:20:28.8156086Z "privacyStatement": "https://www.vanroey.be/voorwaarden/#tab4",
2022-05-05T14:20:28.8156411Z "EULA": "https://www.vanroey.be/voorwaarden/",
2022-05-05T14:20:28.8156681Z "help": "https://www.vanroey.be/support/",
2022-05-05T14:20:28.8156935Z "url": "https://www.vanroey.be/",
2022-05-05T14:20:28.8157190Z "logo": "Assets/VanRoey-logo-compact.png",
2022-05-05T14:20:28.8157421Z "dependencies": [
2022-05-05T14:20:28.8157611Z {
2022-05-05T14:20:28.8157855Z "id": "0449bccc-a054-400a-9ef7-d33a4cfbe409",
2022-05-05T14:20:28.8158129Z "publisher": "VanRoey.be",
2022-05-05T14:20:28.8158355Z "name": "App",
2022-05-05T14:20:28.8158576Z "version": "1.0.0.0"
2022-05-05T14:20:28.8158777Z }
2022-05-05T14:20:28.8158954Z ],
2022-05-05T14:20:28.8159153Z "internalsVisibleTo": [
2022-05-05T14:20:28.8159353Z {
2022-05-05T14:20:28.8159595Z "id": "a20627cd-4097-402c-ac86-a311c79c0492",
2022-05-05T14:20:28.8159879Z "publisher": "VanRoey.be",
2022-05-05T14:20:28.8160148Z "name": "Example App with Dependency-Test"
2022-05-05T14:20:28.8160377Z }
2022-05-05T14:20:28.8160558Z ],
2022-05-05T14:20:28.8160747Z "screenshots": [
2022-05-05T14:20:28.8160842Z
2022-05-05T14:20:28.8161005Z ],
2022-05-05T14:20:28.8161206Z "application": "17.0.0.0",
2022-05-05T14:20:28.8161425Z "platform": "17.0.0.0",
2022-05-05T14:20:28.8161630Z "idRanges": [
2022-05-05T14:20:28.8161811Z {
2022-05-05T14:20:28.8162005Z "from": 54300,
2022-05-05T14:20:28.8162216Z "to": 79999
2022-05-05T14:20:28.8162549Z }
2022-05-05T14:20:28.8162727Z ],
2022-05-05T14:20:28.8162974Z "contextSensitiveHelpUrl": "https://www.vanroey.be/support/",
2022-05-05T14:20:28.8163463Z "showMyCode": false,
2022-05-05T14:20:28.8163774Z "features": [
2022-05-05T14:20:28.8163984Z "TranslationFile"
2022-05-05T14:20:28.8164177Z ],
2022-05-05T14:20:28.8164362Z "runtime": "6.0",
2022-05-05T14:20:28.8164567Z "suppressWarnings": [
2022-05-05T14:20:28.8164775Z "PTE0012"
2022-05-05T14:20:28.8164962Z ]
2022-05-05T14:20:28.8165130Z }
2022-05-05T14:20:28.8165205Z
2022-05-05T14:20:28.8165378Z ***
2022-05-05T14:20:28.8812381Z *** Working Direcotry: [c:\Run\DevOps\]
2022-05-05T14:20:28.8817623Z *** Target Project: [\app\app.json]
2022-05-05T14:20:28.8821952Z *** Project Directory: [c:\Run\DevOps\app]
2022-05-05T14:20:28.8861215Z *** Downloading Ruleset: [***]
2022-05-05T14:20:28.8868152Z ##[command]Invoke-RestMethod -Method Get -Uri "***" -OutFile "c:\Run\DevOps\app\ruleset.json"
2022-05-05T14:20:29.0774978Z *** Ruleset download complete
2022-05-05T14:20:29.0810736Z *** Using Ruleset: [c:\Run\DevOps\app\ruleset.json]
2022-05-05T14:20:29.0821224Z ***
2022-05-05T14:20:29.3246795Z *** Resolve Docker Credentials
2022-05-05T14:20:29.3296931Z *** Setup BC Username/Password from Container info
2022-05-05T14:20:29.3336517Z *** Download Symbols
2022-05-05T14:20:29.6612790Z *** Working Dir: c:\Run\DevOps\
2022-05-05T14:20:29.8149623Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\200\service]
2022-05-05T14:20:29.8822544Z *** PackageCache path created [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:29.8824783Z ***
2022-05-05T14:20:29.8896374Z *** Propagated Dependency: VanRoey.be - App - 1.0.0.0
2022-05-05T14:20:29.8944002Z *** Download System-Symbols for [17.0.0.0]
2022-05-05T14:20:29.9231300Z *** Downloading NAV Symbols for [System v17.0.0.0]
2022-05-05T14:20:29.9234696Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default]
2022-05-05T14:20:29.9419580Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:29.9428748Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
2022-05-05T14:20:30.9962244Z *** Content-Disposition: attachment; filename=Microsoft_System_20.0.37114.40119.app; filename*=UTF-8''Microsoft_System_20.0.37114.40119.app
2022-05-05T14:20:31.0094751Z *** Saving symbol file [Microsoft_System_20.0.37114.40119.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:31.0208130Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System_20.0.37114.40119.app].
2022-05-05T14:20:31.0866242Z ***
2022-05-05T14:20:31.0871548Z *** Download Application-Symbols for [17.0.0.0]
2022-05-05T14:20:31.0880443Z *** Downloading NAV Symbols for [Application v17.0.0.0]
2022-05-05T14:20:31.0887501Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0&tenant=default]
2022-05-05T14:20:31.0894272Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:31.0899172Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0&tenant=default
2022-05-05T14:20:31.3901378Z *** Content-Disposition: attachment; filename=Microsoft_Application_20.0.37253.40150.app; filename*=UTF-8''Microsoft_Application_20.0.37253.40150.app
2022-05-05T14:20:31.3917131Z *** Saving symbol file [Microsoft_Application_20.0.37253.40150.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:31.3931434Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_20.0.37253.40150.app].
2022-05-05T14:20:31.4073052Z *** Propagated Dependency: Microsoft - System Application - 20.0.0.0
2022-05-05T14:20:31.4106333Z *** Propagated Dependency: Microsoft - Base Application - 20.0.0.0
2022-05-05T14:20:31.4113474Z ***
2022-05-05T14:20:31.4120407Z *** AppSourceCop not specified, skipping download previous
2022-05-05T14:20:31.4125415Z *** Check for Depency Apps 3
2022-05-05T14:20:31.4151958Z *** Download Application-Symbols for [App v1.0.0.0]
2022-05-05T14:20:31.4161727Z *** Downloading NAV Symbols for [App v1.0.0.0]
2022-05-05T14:20:31.4166573Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=VanRoey.be&appName=App&versionText=1.0.0.0&tenant=default]
2022-05-05T14:20:31.4174880Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:31.4184047Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=VanRoey.be&appName=App&versionText=1.0.0.0&tenant=default
2022-05-05T14:20:31.7644899Z *** Content-Disposition: attachment; filename=VanRoey.be_App_1.0.0.0.app; filename*=UTF-8''VanRoey.be_App_1.0.0.0.app
2022-05-05T14:20:31.7658705Z *** Saving symbol file [VanRoey.be_App_1.0.0.0.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:31.7679111Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\VanRoey.be_App_1.0.0.0.app].
2022-05-05T14:20:31.7699199Z *** Propagated Dependency: Microsoft - Application - 1.0.0.0
2022-05-05T14:20:31.7706147Z ***
2022-05-05T14:20:31.7746339Z *** Download Application-Symbols for [System Application v20.0.0.0]
2022-05-05T14:20:31.7769447Z *** Downloading NAV Symbols for [System Application v20.0.0.0]
2022-05-05T14:20:31.7773661Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=20.0.0.0&tenant=default]
2022-05-05T14:20:31.7781382Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:31.7787202Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=20.0.0.0&tenant=default
2022-05-05T14:20:32.0951173Z *** Content-Disposition: attachment; filename="Microsoft_System Application_20.0.37253.40150.app"; filename*=UTF-8''Microsoft_System%20Application_20.0.37253.40150.app
2022-05-05T14:20:32.0971333Z *** Saving symbol file [Microsoft_System Application_20.0.37253.40150.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:32.1068801Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System Application_20.0.37253.40150.app].
2022-05-05T14:20:32.1195138Z ***
2022-05-05T14:20:32.1200256Z *** Download Application-Symbols for [Base Application v20.0.0.0]
2022-05-05T14:20:32.1210994Z *** Downloading NAV Symbols for [Base Application v20.0.0.0]
2022-05-05T14:20:32.1217139Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=20.0.0.0&tenant=default]
2022-05-05T14:20:32.1272222Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:32.1275149Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=20.0.0.0&tenant=default
2022-05-05T14:20:32.5221508Z *** Content-Disposition: attachment; filename="Microsoft_Base Application_20.0.37253.40150.app"; filename*=UTF-8''Microsoft_Base%20Application_20.0.37253.40150.app
2022-05-05T14:20:32.5239495Z *** Saving symbol file [Microsoft_Base Application_20.0.37253.40150.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:32.6328203Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Base Application_20.0.37253.40150.app].
2022-05-05T14:20:32.7495601Z ***
2022-05-05T14:20:32.7499635Z *** Download Application-Symbols for [Application v1.0.0.0]
2022-05-05T14:20:32.7511369Z *** Downloading NAV Symbols for [Application v1.0.0.0]
2022-05-05T14:20:32.7516486Z *** Downloading NAV Symbols from [https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=1.0.0.0&tenant=default]
2022-05-05T14:20:32.7524113Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-05-05T14:20:32.7530680Z ##[command]Invoke-RestMethod -Method Get -Uri https://5847177da58d:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=1.0.0.0&tenant=default
2022-05-05T14:20:33.0465171Z *** Content-Disposition: attachment; filename=Microsoft_Application_20.0.37253.40150.app; filename*=UTF-8''Microsoft_Application_20.0.37253.40150.app
2022-05-05T14:20:33.0482713Z *** Saving symbol file [Microsoft_Application_20.0.37253.40150.app] to [c:\Run\DevOps\PackageCache]
2022-05-05T14:20:33.0497765Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_20.0.37253.40150.app].
2022-05-05T14:20:33.0516847Z ***
2022-05-05T14:20:33.3664255Z *** Starting AL Compiler...
2022-05-05T14:20:33.3665939Z *** App.Name = Example App with Dependency
2022-05-05T14:20:33.3672682Z *** App.Publisher = VanRoey.be
2022-05-05T14:20:33.3679183Z *** App.Compiler Path= C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe
2022-05-05T14:20:33.3720407Z *** Checking for Assemblies in App
2022-05-05T14:20:33.3842872Z *** Add Windows Assembly Path [C:\Windows\assembly]
2022-05-05T14:20:33.3891463Z *** CodeAnalyzers DISABLED.
2022-05-05T14:20:33.3934736Z *** Detect ALC.EXE Features.
2022-05-05T14:20:33.3937017Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /?
2022-05-05T14:20:34.0039947Z * PARALLEL+
2022-05-05T14:20:34.0044277Z * MAXDEGREEOFPARALLELISM
2022-05-05T14:20:34.0046299Z * ASSEMBLYPROBINGPATHS
2022-05-05T14:20:34.0078324Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /packagecachepath:"c:\Run\DevOps\PackageCache" /project:"c:\Run\DevOps\app" /out:"c:\Run\DevOps\VanRoey.be_Example App with Dependency_1.0.37288.0_APP.app" /fullpaths /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\program files\microsoft dynamics nav\200\service" /ruleset:"c:\Run\DevOps\app\ruleset.json"
2022-05-05T14:20:37.9627506Z *** AL Compiler Exit Code: 1
2022-05-05T14:20:37.9637735Z *** Full Compile Log:
2022-05-05T14:20:37.9671206Z Microsoft (R) AL Compiler version 9.0.9.2912 Copyright (C) Microsoft Corporation. All rights reserved Compilation started for project 'Example App with Dependency' containing '1' files at '16:20:34.423'. c:\Run\DevOps\app\Source\PTEItemUoMShelves.PageExt.al(5,56): error AL0247: The target Page "VRA Item UoM Shelves" for the extension object is not found Compilation ended at '16:20:37.940'.
2022-05-05T14:20:37.9672797Z
2022-05-05T14:20:38.0169342Z *** AL Compiler raw logs: Start
2022-05-05T14:20:38.0172866Z Microsoft (R) AL Compiler version 9.0.9.2912
2022-05-05T14:20:38.0422632Z Copyright (C) Microsoft Corporation. All rights reserved
2022-05-05T14:20:38.0425985Z Compilation started for project 'Example App with Dependency' containing '1' files at '16:20:34.423'.
2022-05-05T14:20:38.0432619Z c:\Run\DevOps\app\Source\PTEItemUoMShelves.PageExt.al(5,56): error AL0247: The target Page "VRA Item UoM Shelves" for the extension object is not found
2022-05-05T14:20:38.0439869Z Compilation ended at '16:20:37.940'.
2022-05-05T14:20:38.0447430Z *** AL Compiler raw logs: End
2022-05-05T14:20:38.0454936Z *** Start processing compile results.
2022-05-05T14:20:38.0502305Z ##[error]c:\Run\DevOps\app\Source\PTEItemUoMShelves.PageExt.al(5,56): error AL0247: The target Page "VRA Item UoM Shelves" for the extension object is not found
2022-05-05T14:20:38.0510574Z ##[error]Compilation ended at '16:20:37.940'.
2022-05-05T14:20:38.0511235Z *** Store compile log to [c:\Run\DevOps\compilelog.txt]
2022-05-05T14:20:38.0511531Z *** Start processing compile results done.
2022-05-05T14:20:38.0516241Z *** Transfer App Artifact from Docker container.
2022-05-05T14:20:38.2238342Z ##[error]Cannot find path 'c:\Run\DevOps\VanRoey.be_Example App with Dependency_1.0.37288.0_APP.app' because it does not exist.
2022-05-05T14:20:38.2499576Z ##[section]Async Command Start: Add Build Tag
2022-05-05T14:20:38.2500241Z Build '37288' has following tags now: AL.Analyzer.CodeCop, AL.Analyzer.UICop, AL.Analyzer.PerTenantExtensionCop, AL.Compiler.ALLanguage, App.App.1.0.0.0, myimage-sandbox-20.0.37253.40150-be-10.0.17763.2686-ltsc2019, BC.Platform.20.0.37114.40119, BC.Version.20.0.37253.40150
2022-05-05T14:20:38.2500954Z ##[section]Async Command End: Add Build Tag
2022-05-05T14:20:38.2501772Z ##[section]Finishing: Compile App
We'll see if we can check that in the app, if so, we'll build it in.
Dear @Arthurvdv ,
We found a way to make this work :-)
We included the functionality in 3 tasks:
This is in our latest release: v1.454.3354
Kind regards,
This was on my backlog to verify. the result is that it works PERFECT..!
* App.ID = 0449bccc-a054-400a-9ef7-d33a4cfbe409
* App.Name = App
* App.Publisher = VanRoey.be
* App.Version = 1.0.0.0
*** Check NAVApp: VanRoey.be_App_1.0.0.0.app
- Runtime Package : False
- Contains Symbols : True
- Contains Source Code: False
- Symbols Only : True
##[error]C:\Run\DevOps\Artifacts-dc25b993f20446848c236a3c7cca87c9\VanRoey.be_App_1.0.0.0.app: Symbol-Only App detected. Can not be published.
*** Batch App-Publish finished.
Small remark: Could it be that the default behavior of the 'blocksymbolsonly' parameter is set to false in stead of true? (I needed to add the parameter to enable this). To be honest I would prefer the default to set to be true.
We didn't want to risk to break pipelines, so we decided to make it false.
Is your feature request related to a problem? Please describe. Coincidentally this week two of my colleagues ran into trouble with out pipeline with the same issue. The error they received is about missing dependencies, while they where sure to put the .app file in the .dependencies folder in the project.
After investigate I've concluded the developer copied the .app file from the .alpackages folder. If the includeSourceInSymbolFile is set to true this will work, when set to false, the .app file (obviously) only contains the symbols. This sometimes makes it prone to error to grab the wrong .app file.
The ALOpsAppCompiler@2 works without a problem to compile the app. On the next stage, creating a docker and install the app, the problem occurs: The app can not be installed because of the missing dependency-app. The step before; Installing the dependent app shows no error and this step shows a green light.
Describe the solution you'd like The annoying part of the scenario is that the ALOpsAppPublish-step doesn't throw an error on installing a app-file which only contains symbols and no source code.
The ALOpsAppPublish should throw a warning when installing a app-file which only contains symbols (and no source code).