Closed ghost closed 3 years ago
I have made a small change, which tests the return value of the AL compiler differently. Please test again when the next preview is available (in ~4 hours) and let me know if this still fails.
thx for picking up the case. the build failed again using preview 347.
I did stumble on a ticket regarding alc.exe and reports that I thought might be related. I only have a few processing reports, so no rdlc.
Here is a snip from the log:
_____ _ _ _
/ ____| (_) (_)
| | ___ _ __ ___ _ __ _| |_ _ __ __ _ __ _ _ __ _ __ ___
| | / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` | / _` | '_ \| '_ \/ __|
| |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
\_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, | \__,_| .__/| .__/|___/
| | __/ | | | | |
|_| |___/ |_| |_|
Using Version 17.0.101.0
Copying previous apps to packages folder
Downloading C:\Users\VssAdministrator\AppData\Local\Temp\26ef1d7a-2e94-45f0-95be-4bb11d267d9d
Extracting D:\a\1\s\.packages\Cenium AS_Cenium Hospitality ERP Connector_17.0.93.0.app
Cenium AS_Cenium Hospitality ERP Connector = 17.0.93.0
Creating AppSourceCop.json for validation
Using Symbols Folder: D:\a\1\s\.packages
Downloading symbols: Microsoft_Application_17.4.21491.22091.app
Url : http://172.24.98.100:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0&tenant=default
Adding dependency to System Application from Microsoft
Adding dependency to Base Application from Microsoft
Downloading symbols: Microsoft_System_17.0.21485.22014.app
Url : http://172.24.98.100:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
Downloading symbols: Microsoft_System Application_17.4.21491.22091.app
Url : http://172.24.98.100:7049/BC/dev/packages?publisher=Microsoft&appName=System Application&versionText=17.4.0.0&tenant=default
Downloading symbols: Microsoft_Base Application_17.4.21491.22091.app
Url : http://172.24.98.100:7049/BC/dev/packages?publisher=Microsoft&appName=Base Application&versionText=17.4.0.0&tenant=default
Compiling...
.\alc.exe /project:"c:\sources\app" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\Cenium AS_Cenium Hospitality ERP Connector_17.0.101.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\170\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\170\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
App generation failed with exit code 1
at <ScriptBlock>, <No file>: line 53
at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 44
at Compile-AppInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Compile-AppInNavContainer.ps1: line 430
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 470
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 1032
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 779
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 771
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 548
at Run-AlPipeline, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6-preview347\AppHandling\Run-AlPipeline.ps1: line 514
at <ScriptBlock>, D:\a\1\s\scripts\DevOps-Pipeline.ps1: line 49
+ CategoryInfo : OperationStopped: (App generation failed with exit code 1:String) [], RuntimeException
+ FullyQualifiedErrorId : App generation failed with exit code 1
##[error]PowerShell exited with code '1'.
Finishing: Run Pipeline
You can switch to latest bccontainerhelper instead of preview, then your build works again.
If possible, I would like to investigate what in your app causes this problem - alc.exe exits with exitcode 1 without signalling any error. I have emailed the moderndev team and asked how this can be, but we might need your app in order to repro the problem. You can email freddyk at microsoft dot com if you would be able to share your source with Microsoft in order to find a reason for this,.
Shipped in BcContainerHelper 2.0.6
I started getting an "App generation failed" this Sunday 14 feb in the azure build pipeline
The app compiles and runs locally but the azure build fails. Wonder if anyone has an idea what's going on.
Thanks for any guidance...
This is the block that fails:
2021-02-15T18:11:15.1787639Z Compiling... 2021-02-15T18:11:15.1887985Z .\alc.exe /project:"c:\sources\app" /packagecachepath:"c:\sources.packages" /out:"c:\sources.output\Cenium AS_Cenium Hospitality ERP Connector_17.0.99.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\170\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\170\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies" 2021-02-15T18:11:28.4732421Z App generation failed
here is the full build log: