microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
748 stars 245 forks source link

Run-ALValidation The code 'de' is not a valid ISO 3166-1 alpha-2 code for a country/region supported by the product #7331

Closed pri-kise closed 1 year ago

pri-kise commented 1 year ago

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue I recieve the following error, when I run ALValidation.

C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\AppSourceCop.json(1,1): warning AS0056: The code 'de' is not a valid ISO 3166-1 alpha-2 code for a country/region supported by the product.

Scripts used to Run-ALValidation and cause the issue


Run-AlValidation -apps "pathtomyApp" `
    -installApps "pathtomylibraryApp" `
    -affixes "PQS_DAT" `
    -supportedCountries "de"`
    -countries "de"

Full output of scripts

BcContainerHelper version 4.0.14
_____                               _                
 |  __ \                             | |               
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Container name                  bcserver
Credential                      admin/Huvu6318
MemoryLimit                     8G
validateVersion                 
validateCurrent                 False
validateNextMinor               False
validateNextMajor               False
SasToken                        Not Specified
countries                       de
validateCountries               de
affixes                         PQS_DAT
supportedCountries              de
ObsoleteTagMinAllowedMajorMinor 
vsixFile                        
Install Apps
- pathtomyapp
Previous Apps
- None
Apps
- pathtomylibraryapp
  _____       _                      _                         _   _  __           _       
 |  __ \     | |                    (_)                       | | (_)/ _|         | |      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
 | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/

Found https://bcartifacts.azureedge.net/sandbox/21.4.52563.53501/de
Using https://bcartifacts.azureedge.net/sandbox/21.4.52563.53501/de
  _____       _                      _       _                   _                           _                       
 |  __ \     | |                    (_)     (_)                 | |                         | |                      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __  _ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _   _ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \| | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| | | |
 | |__| |  __/ |_  __/ |  | | | | | | | | | | | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |_| |
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|\__, |
                                                      __/ |            | |                                      __/ |
                                                     |___/             |_|                                     |___/ 
Extracting C:\ProgramData\BcContainerHelper\4ab39714-aae2-4f0f-baee-b193fea0e50c\prisma informatik GmbH_libaryapp_0.1.25443.0_sandbox_21.3_de.app
Extracting C:\ProgramData\BcContainerHelper\4ab39714-aae2-4f0f-baee-b193fea0e50c\prisma informatik GmbH_myapp_21.0.25860.0.app
Validating against Current Version (21.4)
Additionally validating against application dependency (21.0)

  _____       _ _ _                                          _        _                            
 |  __ \     | | (_)                                        (_)      (_)                           
 | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
 |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
 | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
 |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
                           __/ |   __/ |                                                 __/ |     
                          |___/   |___/                                                 |___/      

Pulling mcr.microsoft.com/businesscentral:10.0.17763.4010-filesonly

Pulling generic image took 23 seconds

   _____                _   _                               _        _                 
  / ____|              | | (_)                             | |      (_)                
 | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
 | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
  \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
                                     __/ |                                             
                                    |___/                                              

Creating container for country de
BcContainerHelper is version 4.0.14
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows Server 2019 Standard - 10.0.17763.4010
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.17763.4010-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 21.4.52563.53501
Platform: 21.0.52534.53479
Generic Tag: 1.0.2.14
Container OS Version: 10.0.17763.4010 (ltsc2019)
Host OS Version: 10.0.17763.4010 (ltsc2019)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\bcserver\Microsoft.VisualStudio.Services.VSIXPackage.vsix
Using WebClient
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:10.0.17763.4010-filesonly
af6d647ac40c8b3fa528e9f8a2907ed9bd4d9aaffdb85a7fcbfe5e1c8eca4fe8
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/21.4.52563.53501/de
Using installer from C:\Run\210-new
Installing Business Central
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\21.4.52563.53501\platform\ServiceTier\Program Files
c:\dl\sandbox\21.4.52563.53501\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\21.4.52563.53501\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\21.4.52563.53501\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\21.4.52563.53501\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\21.4.52563.53501\platform
c:\dl\sandbox\21.4.52563.53501\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\21.4.52563.53501\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\21.4.52563.53501\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\21.4.52563.53501\de\Extensions
Copying Applications
C:\dl\sandbox\21.4.52563.53501\platform\Applications
Copying Applications.DE
C:\dl\sandbox\21.4.52563.53501\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 20 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from bcserver

Creating container took 52 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
Latest Supported Runtime Version: 10.1
prisma informatik GmbH_myapp_21.0.25860.0.app is Signed with Authenticode certificate: CN=prisma informatik GmbH, O=prisma informatik GmbH, S=Bayern, C=DE
Extracting C:\ProgramData\BcContainerHelper\3b245bb1-48f5-406d-aee4-a28363a17e6f\prisma informatik GmbH_myapp_21.0.25860.0.app
App Runtime Version is '10.0'
Excluding Runtime Version from app.json
Analyzing: prisma informatik GmbH_myapp_21.0.25860.0.app
Using affixes: PQS_DAT
Using supportedCountries: de
Downloading C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\appsource.default.ruleset.json
Using WebClient
AppSourceCop.json content:
{
    "mandatoryAffixes":  [
                             "PQS_DAT"
                         ],
    "supportedCountries":  [
                               "de"
                           ]
}
Ruleset.json content:
{
    "name":  "Run-AlCops RuleSet",
    "description":  "Generated by Run-AlCops",
    "includedRuleSets":  [
                             {
                                 "path":  "C:\\ProgramData\\BcContainerHelper\\094dd82e-f98e-4414-ab70-16f78578eb5f\\appsource.default.ruleset.json",
                                 "action":  "Default"
                             }
                         ]
}
Using Symbols Folder: C:\ProgramData\BcContainerHelper\ce7f7b38-71fe-4838-9ae6-910259b417a9
Copying System.app from Container
Copying Microsoft_AMC Banking 365 Fundamentals_21.4.52563.53501.app from Container
Copying Microsoft_Any_21.4.52563.53501.app from Container
Copying Microsoft_API Reports - Finance_21.4.52563.53501.app from Container
Copying Microsoft_Application_21.4.52563.53501.app from Container
Copying Microsoft_Base Application_21.4.52563.53501.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release (DE)_21.4.52563.53501.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release_21.4.52563.53501.app from Container
Copying Microsoft_Business Central Cloud Migration API_21.4.52563.53501.app from Container
Copying Microsoft_Business Central Intelligent Cloud_21.4.52563.53501.app from Container
Copying Microsoft_Company Hub_21.4.52563.53501.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset (DE)_21.4.52563.53501.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset_21.4.52563.53501.app from Container
Copying Microsoft_Czech language (Czechia)_21.4.52563.53501.app from Container
Copying Microsoft_Danish language (Denmark)_21.4.52563.53501.app from Container
Copying Microsoft_Data Archive_21.4.52563.53501.app from Container
Copying Microsoft_Data Search_21.4.52563.53501.app from Container
Copying Microsoft_Dutch language (Belgium)_21.4.52563.53501.app from Container
Copying Microsoft_Dutch language (Netherlands)_21.4.52563.53501.app from Container
Copying Microsoft_ELSTER VAT Localization for Germany_21.4.52563.53501.app from Container
Copying Microsoft_Email - Current User Connector_21.4.52563.53501.app from Container
Copying Microsoft_Email - Microsoft 365 Connector_21.4.52563.53501.app from Container
Copying Microsoft_Email - Outlook REST API_21.4.52563.53501.app from Container
Copying Microsoft_Email - SMTP API_21.4.52563.53501.app from Container
Copying Microsoft_Email - SMTP Connector_21.4.52563.53501.app from Container
Copying Microsoft_English language (Australia)_21.4.52563.53501.app from Container
Copying Microsoft_English language (Canada)_21.4.52563.53501.app from Container
Copying Microsoft_English language (New Zealand)_21.4.52563.53501.app from Container
Copying Microsoft_English language (United Kingdom)_21.4.52563.53501.app from Container
Copying Microsoft_English language (United States)_21.4.52563.53501.app from Container
Copying Microsoft_Essential Business Headlines_21.4.52563.53501.app from Container
Copying Microsoft_Finnish language (Finland)_21.4.52563.53501.app from Container
Copying Microsoft_French language (Belgium)_21.4.52563.53501.app from Container
Copying Microsoft_French language (Canada)_21.4.52563.53501.app from Container
Copying Microsoft_French language (France)_21.4.52563.53501.app from Container
Copying Microsoft_French language (Switzerland)_21.4.52563.53501.app from Container
Copying Microsoft_German language (Austria)_21.4.52563.53501.app from Container
Copying Microsoft_German language (Germany)_21.4.52563.53501.app from Container
Copying Microsoft_German language (Switzerland)_21.4.52563.53501.app from Container
Copying Microsoft_Icelandic language (Iceland)_21.4.52563.53501.app from Container
Copying Microsoft_Intelligent Cloud Base_21.4.52563.53501.app from Container
Copying Microsoft_Intrastat Core_21.4.52563.53501.app from Container
Copying Microsoft_Intrastat DE_21.4.52563.53501.app from Container
Copying Microsoft_Italian language (Italy)_21.4.52563.53501.app from Container
Copying Microsoft_Italian language (Switzerland)_21.4.52563.53501.app from Container
Copying Microsoft_Late Payment Prediction_21.4.52563.53501.app from Container
Copying Microsoft_Library Assert_21.4.52563.53501.app from Container
Copying Microsoft_Library Variable Storage_21.4.52563.53501.app from Container
Copying Microsoft_Microsoft Pay Payments_21.4.52563.53501.app from Container
Copying Microsoft_Norwegian language (Norway)_21.4.52563.53501.app from Container
Copying Microsoft_Payment Links to PayPal_21.4.52563.53501.app from Container
Copying Microsoft_Performance Toolkit_21.4.52563.53501.app from Container
Copying Microsoft_Permissions Mock_21.4.52563.53501.app from Container
Copying Microsoft_Recommended Apps_21.4.52563.53501.app from Container
Copying Microsoft_Russian language (Russia)_21.4.52563.53501.app from Container
Copying Microsoft_Sales and Inventory Forecast_21.4.52563.53501.app from Container
Copying Microsoft_Send To Email Printer_21.4.52563.53501.app from Container
Copying Microsoft_Service Declaration_21.4.52563.53501.app from Container
Copying Microsoft_Shopify Connector_21.4.52563.53501.app from Container
Copying Microsoft_Simplified Bank Statement Import_21.4.52563.53501.app from Container
Copying Microsoft_Spanish language (Mexico)_21.4.52563.53501.app from Container
Copying Microsoft_Spanish language (Spain)_21.4.52563.53501.app from Container
Copying Microsoft_Swedish language (Sweden)_21.4.52563.53501.app from Container
Copying Microsoft_System Application_21.4.52563.53501.app from Container
Copying Microsoft_Test Runner_21.4.52563.53501.app from Container
Copying Microsoft_Troubleshoot FA Ledger Entries_21.4.52563.53501.app from Container
Copying Microsoft_Universal Print Integration_21.4.52563.53501.app from Container
Copying Microsoft_WorldPay Payments Standard_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_AnonymizedDataSharing__21.4.52563.53501.app from Container
Copying Microsoft__Exclude_APIV1__21.4.52563.53501.app from Container
Copying Microsoft__Exclude_APIV2__21.4.52563.53501.app from Container
Copying Microsoft__Exclude_Bank Deposits_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_ClientAddIns__21.4.52563.53501.app from Container
Copying Microsoft__Exclude_Connectivity Apps_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_Email Logging Using Graph API_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_Microsoft Dynamics 365 - SmartList_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_Onboarding Signals_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_PlanConfiguration__21.4.52563.53501.app from Container
Copying Microsoft__Exclude_ReportLayouts_21.4.52563.53501.app from Container
Copying Microsoft__Exclude_SyncBaseApp__21.4.52563.53501.app from Container
INFO: You have to specify AuthContext and Environment if you are compiling in a filesOnly container in order to download dependencies
Processing dependency Microsoft_Application_21.0.0.0 ()
Dependency App exists
Processing dependency Microsoft_System_21.0.0.0 ()
Dependency App exists
Processing dependency prisma informatik GmbH_libaryapp_0.1.0.0 (42d8c02a-2ad8-482b-938c-6bad0bfd9325)
Dependency App exists
Compiling...
.\alc.exe /project:"C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f" /packagecachepath:"C:\ProgramData\BcContainerHelper\ce7f7b38-71fe-4838-9ae6-910259b417a9" /out:"C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\p
risma informatik GmbH_myapp_21.0.25860.0.app" /GenerateReportLayout- /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\rules
et.json /reportsuppresseddiagnostics /assemblyprobingpaths:"C:\Program Files\Microsoft Dynamics NAV\210\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
Microsoft (R) AL Compiler version 10.4.11.26323
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'BC Suite Data Provider' containing '34' files at '08:20:00.795'.

C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\app.json(1,1): warning AS0092: The app.json file must specify an Azure Application Insights resource with the property 'applicationInsightsConnectionString' for monitoring operations relat
ed to this extension. See https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-overview for additional information.
C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\AppSourceCop.json(1,1): warning AS0056: The code 'de' is not a valid ISO 3166-1 alpha-2 code for a country/region supported by the product.

Compilation ended at '08:20:08.048'.

C:\ProgramData\BcContainerHelper\094dd82e-f98e-4414-ab70-16f78578eb5f\prisma informatik GmbH_myapp_21.0.25860.0.app successfully created in 16 seconds
Ignoring warnings
Ignoring infos
Copy C:\ProgramData\BcContainerHelper\3b245bb1-48f5-406d-aee4-a28363a17e6f\prisma informatik GmbH_myapp_21.0.25860.0.app to C:\ProgramData\BcContainerHelper\ce7f7b38-71fe-4838-9ae6-910259b417a9

Running AppSourceCop took 34 seconds

  _____                           _                _____            _        _                 
 |  __ \                         (_)              / ____|          | |      (_)                
 | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
 |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
 |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
                                           __/ |                                               
                                          |___/                                                

Removing Session bcserver
Removing container bcserver
Removing entries from hosts
Removing bcserver from container hosts file
Removing bcserver-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver

Removing container took 7 seconds
  _____       _                      _                         _   _  __           _       
 |  __ \     | |                    (_)                       | | (_)/ _|         | |      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
 | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/

Found https://bcartifacts.azureedge.net/sandbox/21.0.46256.53411/de
Using https://bcartifacts.azureedge.net/sandbox/21.0.46256.53411/de

   _____                _   _                               _        _                 
  / ____|              | | (_)                             | |      (_)                
 | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
 | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
  \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
                                     __/ |                                             
                                    |___/                                              

Creating container for country de
BcContainerHelper is version 4.0.14
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows Server 2019 Standard - 10.0.17763.4010
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Removing Desktop shortcuts
Downloading application artifact /sandbox/21.0.46256.53411/de
https://bcartifacts.azureedge.net/sandbox/21.0.46256.53411/de
Downloading C:\Users\kise\AppData\Local\Temp\85a57441-2aab-4adc-970e-b518f0147ce0.zip
Using WebClient
Unpacking application artifact to tmp folder using Expand-Archive
Downloading platform artifact /sandbox/21.0.46256.53411/platform
https://bcartifacts.azureedge.net/sandbox/21.0.46256.53411/platform
Downloading C:\Users\kise\AppData\Local\Temp\ce6eae04-afe0-44e6-a173-74c38ff21f44.zip
Using WebClient
Unpacking platform artifact to tmp folder using Expand-Archive
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\21.0.46256.53411\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Using WebClient
Downloading c:\bcartifacts.cache\sandbox\21.0.46256.53411\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Using WebClient
The CRONUS Demo License shipped in Version 21.0 artifacts doesn't contain sufficient rights to all Test Libraries objects. Patching the license file.
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.17763.4010-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 21.0.46256.53411
Platform: 21.0.46384.53336
Generic Tag: 1.0.2.14
Container OS Version: 10.0.17763.4010 (ltsc2019)
Host OS Version: 10.0.17763.4010 (ltsc2019)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file https://bcartifacts.azureedge.net/prerequisites/21demolicense/de/3048953.bclicense
Downloading C:\ProgramData\BcContainerHelper\Extensions\bcserver\my\license.bclicense
Using WebClient
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- license.bclicense
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:10.0.17763.4010-filesonly
bf9bd5fa1458ae22d40ae096f8f141402f10270ea069f27818430af578d7693e
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/21.0.46256.53411/de
Using installer from C:\Run\210-new
Installing Business Central
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\21.0.46256.53411\platform\ServiceTier\Program Files
c:\dl\sandbox\21.0.46256.53411\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\21.0.46256.53411\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\21.0.46256.53411\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\21.0.46256.53411\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\21.0.46256.53411\platform
c:\dl\sandbox\21.0.46256.53411\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\21.0.46256.53411\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\21.0.46256.53411\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\21.0.46256.53411\de\Extensions
Copying Applications
C:\dl\sandbox\21.0.46256.53411\platform\Applications
Copying Applications.DE
C:\dl\sandbox\21.0.46256.53411\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 20 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from bcserver

Creating container took 119 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
Latest Supported Runtime Version: 10.0
prisma informatik GmbH_myapp_21.0.25860.0.app is Signed with Authenticode certificate: CN=prisma informatik GmbH, O=prisma informatik GmbH, S=Bayern, C=DE
Extracting C:\ProgramData\BcContainerHelper\d7f19472-78d5-4699-a76a-2b9834b205ae\prisma informatik GmbH_myapp_21.0.25860.0.app
App Runtime Version is '10.0'
Excluding Runtime Version from app.json
Analyzing: prisma informatik GmbH_myapp_21.0.25860.0.app
Using affixes: PQS_DAT
Using supportedCountries: de
Downloading C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\appsource.default.ruleset.json
Using WebClient
AppSourceCop.json content:
{
    "mandatoryAffixes":  [
                             "PQS_DAT"
                         ],
    "supportedCountries":  [
                               "de"
                           ]
}
Ruleset.json content:
{
    "name":  "Run-AlCops RuleSet",
    "description":  "Generated by Run-AlCops",
    "includedRuleSets":  [
                             {
                                 "path":  "C:\\ProgramData\\BcContainerHelper\\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\\appsource.default.ruleset.json",
                                 "action":  "Default"
                             }
                         ]
}
Using Symbols Folder: C:\ProgramData\BcContainerHelper\8ec2ca54-eae9-4839-9e85-4c228186f488
Copying System.app from Container
Copying Microsoft_AMC Banking 365 Fundamentals_21.0.46256.53411.app from Container
Copying Microsoft_Any_21.0.46256.53411.app from Container
Copying Microsoft_API Reports - Finance_21.0.46256.53411.app from Container
Copying Microsoft_Application_21.0.46256.53411.app from Container
Copying Microsoft_Base Application_21.0.46256.53411.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release (DE)_21.0.46256.53411.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release_21.0.46256.53411.app from Container
Copying Microsoft_Business Central Cloud Migration API_21.0.46256.53411.app from Container
Copying Microsoft_Business Central Intelligent Cloud_21.0.46256.53411.app from Container
Copying Microsoft_Company Hub_21.0.46256.53411.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset (DE)_21.0.46256.53411.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset_21.0.46256.53411.app from Container
Copying Microsoft_Czech language (Czechia)_21.0.46256.53411.app from Container
Copying Microsoft_Danish language (Denmark)_21.0.46256.53411.app from Container
Copying Microsoft_Data Archive_21.0.46256.53411.app from Container
Copying Microsoft_Data Search_21.0.46256.53411.app from Container
Copying Microsoft_Dutch language (Belgium)_21.0.46256.53411.app from Container
Copying Microsoft_Dutch language (Netherlands)_21.0.46256.53411.app from Container
Copying Microsoft_ELSTER VAT Localization for Germany_21.0.46256.53411.app from Container
Copying Microsoft_Email - Current User Connector_21.0.46256.53411.app from Container
Copying Microsoft_Email - Microsoft 365 Connector_21.0.46256.53411.app from Container
Copying Microsoft_Email - Outlook REST API_21.0.46256.53411.app from Container
Copying Microsoft_Email - SMTP API_21.0.46256.53411.app from Container
Copying Microsoft_Email - SMTP Connector_21.0.46256.53411.app from Container
Copying Microsoft_English language (Australia)_21.0.46256.53411.app from Container
Copying Microsoft_English language (Canada)_21.0.46256.53411.app from Container
Copying Microsoft_English language (New Zealand)_21.0.46256.53411.app from Container
Copying Microsoft_English language (United Kingdom)_21.0.46256.53411.app from Container
Copying Microsoft_English language (United States)_21.0.46256.53411.app from Container
Copying Microsoft_Essential Business Headlines_21.0.46256.53411.app from Container
Copying Microsoft_Finnish language (Finland)_21.0.46256.53411.app from Container
Copying Microsoft_French language (Belgium)_21.0.46256.53411.app from Container
Copying Microsoft_French language (Canada)_21.0.46256.53411.app from Container
Copying Microsoft_French language (France)_21.0.46256.53411.app from Container
Copying Microsoft_French language (Switzerland)_21.0.46256.53411.app from Container
Copying Microsoft_German language (Austria)_21.0.46256.53411.app from Container
Copying Microsoft_German language (Germany)_21.0.46256.53411.app from Container
Copying Microsoft_German language (Switzerland)_21.0.46256.53411.app from Container
Copying Microsoft_Icelandic language (Iceland)_21.0.46256.53411.app from Container
Copying Microsoft_Intelligent Cloud Base_21.0.46256.53411.app from Container
Copying Microsoft_Italian language (Italy)_21.0.46256.53411.app from Container
Copying Microsoft_Italian language (Switzerland)_21.0.46256.53411.app from Container
Copying Microsoft_Late Payment Prediction_21.0.46256.53411.app from Container
Copying Microsoft_Library Assert_21.0.46256.53411.app from Container
Copying Microsoft_Library Variable Storage_21.0.46256.53411.app from Container
Copying Microsoft_Microsoft Pay Payments_21.0.46256.53411.app from Container
Copying Microsoft_Norwegian language (Norway)_21.0.46256.53411.app from Container
Copying Microsoft_Payment Links to PayPal_21.0.46256.53411.app from Container
Copying Microsoft_Performance Toolkit_21.0.46256.53411.app from Container
Copying Microsoft_Permissions Mock_21.0.46256.53411.app from Container
Copying Microsoft_Recommended Apps_21.0.46256.53411.app from Container
Copying Microsoft_Russian language (Russia)_21.0.46256.53411.app from Container
Copying Microsoft_Sales and Inventory Forecast_21.0.46256.53411.app from Container
Copying Microsoft_Send To Email Printer_21.0.46256.53411.app from Container
Copying Microsoft_Shopify Connector_21.0.46256.53411.app from Container
Copying Microsoft_Simplified Bank Statement Import_21.0.46256.53411.app from Container
Copying Microsoft_Spanish language (Mexico)_21.0.46256.53411.app from Container
Copying Microsoft_Spanish language (Spain)_21.0.46256.53411.app from Container
Copying Microsoft_Swedish language (Sweden)_21.0.46256.53411.app from Container
Copying Microsoft_System Application_21.0.46256.53411.app from Container
Copying Microsoft_Test Runner_21.0.46256.53411.app from Container
Copying Microsoft_Troubleshoot FA Ledger Entries_21.0.46256.53411.app from Container
Copying Microsoft_Universal Print Integration_21.0.46256.53411.app from Container
Copying Microsoft_WorldPay Payments Standard_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_AnonymizedDataSharing__21.0.46256.53411.app from Container
Copying Microsoft__Exclude_APIV1__21.0.46256.53411.app from Container
Copying Microsoft__Exclude_APIV2__21.0.46256.53411.app from Container
Copying Microsoft__Exclude_Bank Deposits_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_ClientAddIns__21.0.46256.53411.app from Container
Copying Microsoft__Exclude_Connectivity Apps_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_Email Logging Using Graph API_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_Microsoft Dynamics 365 - SmartList_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_PlanConfiguration__21.0.46256.53411.app from Container
Copying Microsoft__Exclude_ReportLayouts_21.0.46256.53411.app from Container
Copying Microsoft__Exclude_SyncBaseApp__21.0.46256.53411.app from Container
INFO: You have to specify AuthContext and Environment if you are compiling in a filesOnly container in order to download dependencies
Processing dependency Microsoft_Application_21.0.0.0 ()
Dependency App exists
Processing dependency Microsoft_System_21.0.0.0 ()
Dependency App exists
Processing dependency prisma informatik GmbH_libaryapp_0.1.0.0 (42d8c02a-2ad8-482b-938c-6bad0bfd9325)
Dependency App exists
Compiling...
.\alc.exe /project:"C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85" /packagecachepath:"C:\ProgramData\BcContainerHelper\8ec2ca54-eae9-4839-9e85-4c228186f488" /out:"C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\p
risma informatik GmbH_myapp_21.0.25860.0.app" /GenerateReportLayout- /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\rules
et.json /reportsuppresseddiagnostics /assemblyprobingpaths:"C:\Program Files\Microsoft Dynamics NAV\210\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
Microsoft (R) AL Compiler version 10.0.10.35234
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'BC Suite Data Provider' containing '34' files at '08:22:42.106'.

C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\app.json(1,1): warning AS0092: The app.json file must specify an Azure Application Insights resource with the property 'applicationInsightsConnectionString' for monitoring operations relat
ed to this extension. See https://docs.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-overview for additional information.

Compilation ended at '08:22:49.205'.

C:\ProgramData\BcContainerHelper\57884e4d-07f5-4a7d-abb9-0b3f824ccd85\prisma informatik GmbH_myapp_21.0.25860.0.app successfully created in 15 seconds
Ignoring warnings
Ignoring infos
Copy C:\ProgramData\BcContainerHelper\d7f19472-78d5-4699-a76a-2b9834b205ae\prisma informatik GmbH_myapp_21.0.25860.0.app to C:\ProgramData\BcContainerHelper\8ec2ca54-eae9-4839-9e85-4c228186f488

Running AppSourceCop took 32 seconds

  _____                           _                _____            _        _                 
 |  __ \                         (_)              / ____|          | |      (_)                
 | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
 |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
 |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
                                           __/ |                                               
                                          |___/                                                

Removing Session bcserver
Removing container bcserver
Removing entries from hosts
Removing bcserver from container hosts file
Removing bcserver-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver

Removing container took 6 seconds

AL Validation finished in 254 seconds
  _____                          ___      __   _ _     _       _   _                _____                            
 |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)              / ____|                           
 | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | (___  _   _  ___ ___ ___ ___ ___ 
 |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \   \___ \| | | |/ __/ __/ _ \ __/ __|
 | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | |  ____) | |_| | (__ (__  __\__ \__ \
 |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_____/ \__,_|\___\___\___|___/___/
...

Screenshots image

freddydk commented 1 year ago

It looks like this is related to AppSourceCop, and there have been other examples of this: https://github.com/microsoft/AL/issues/6209 https://github.com/microsoft/AL/issues/6888 But they should have been fixed. Will transfer this issue to microsoft/AL

qutreson commented 1 year ago

@pri-kise - This is the same issue as for #7306. The rule is case sensitive and doesn't accept 'de' which should be replaced by 'DE'. We will be fixing it but for now the solution is to use the uppercase version. Closing as duplicate of the other issue.

pri-kise commented 1 year ago

@freddydk could you please check if this can be improved by the Run-ALValidation https://github.com/microsoft/navcontainerhelper/blob/81f0eba49b606545316fd560a42a3f0f2da16d91/AppHandling/Run-AlValidation.ps1#L257 When you use the getCountryCode function the country code is always returned with the lower InVariant. https://github.com/microsoft/navcontainerhelper/blob/81f0eba49b606545316fd560a42a3f0f2da16d91/HelperFunctions.ps1#L787