microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
368 stars 240 forks source link

Run-AlValidation returning ClientServicesCredentialType property cannot be found on this object #2928

Closed IgorAlfonso closed 1 year ago

IgorAlfonso commented 1 year ago

Describe the issue

Run-AlValidation is returning error related to ClientServicesCredentialType property not found.

Scripts used to create container and cause the issue

Run-AlValidation `
    -apps "C:\appsource\NewVersion.app" `
    -installapps "C:\appsource\AccessControl.app" `
    -affixes "AST" `
    -countries "es" `
    -previousApps "C:\appsource\PreviousVersion.app"

Full output of scripts

INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
  _____                               _                
 |  __ \                             | |               
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Container name                  bcserver
Credential                      admin/Vusi0923
MemoryLimit                     8G
validateVersion                 
validateCurrent                 False
validateNextMinor               False
validateNextMajor               False
SasToken                        Not Specified
countries                       es
validateCountries               es
affixes                         AST
supportedCountries              
ObsoleteTagMinAllowedMajorMinor 
vsixFile                        
Install Apps
- C:\appsource\AccessControl.app
Previous Apps
- C:\appsource\PreviousVersion.app
Apps
- C:\appsource\NewVersion.app
  _____       _                      _                         _   _  __           _       
 |  __ \     | |                    (_)                       | | (_)/ _|         | |      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
 | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/

Found https://bcartifacts.azureedge.net/sandbox/21.4.52563.53801/es
Using https://bcartifacts.azureedge.net/sandbox/21.4.52563.53801/es
  _____       _                      _       _                   _                           _                       
 |  __ \     | |                    (_)     (_)                 | |                         | |                      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __  _ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _   _ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \| | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| | | |
 | |__| |  __/ |_  __/ |  | | | | | | | | | | | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |_| |
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|\__, |
                                                      __/ |            | |                                      __/ |
                                                     |___/             |_|                                     |___/ 
Extracting C:\ProgramData\BcContainerHelper\d2f42e81-5ce0-4767-bf91-7c4ff60e899b\AccessControl.app
Extracting C:\ProgramData\BcContainerHelper\d2f42e81-5ce0-4767-bf91-7c4ff60e899b\NewVersion.app
Validating against Current Version (21.4)

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

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

Pulling generic image took 1 seconds

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

Creating container for country es
BcContainerHelper is version 4.0.14
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Enterprise - 10.0.19045.2604
Docker Client Version is 20.10.22
Docker Server Version is 20.10.22
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 21.4.52563.53801
Platform: 21.0.52534.53780
Generic Tag: 1.0.2.14
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19045.2604 (22H2)
WARNING: Host OS is Windows 10 21H1 or newer and Container OS is 2004, defaulting to process isolation. If you experience problems, add -isolation hyperv.
Using process isolation
Using locale es-ES
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.19041.1415-filesonly
93db92aa61456f92b986a5c6a5b3864bd22f28ee7d253660af2ba4aa2d5aa54d
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/21.4.52563.53801/es
Using installer from C:\Run\210-new
Installing Business Central
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\21.4.52563.53801\platform\ServiceTier\Program Files
c:\dl\sandbox\21.4.52563.53801\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\21.4.52563.53801\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\21.4.52563.53801\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\21.4.52563.53801\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\21.4.52563.53801\platform
c:\dl\sandbox\21.4.52563.53801\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\21.4.52563.53801\es\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\21.4.52563.53801\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\21.4.52563.53801\es\Extensions
Copying Applications
C:\dl\sandbox\21.4.52563.53801\platform\Applications
Copying Applications.ES
C:\dl\sandbox\21.4.52563.53801\es\Applications.ES
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 27 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from bcserver

Creating container took 61 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
Copying previous apps to packages folder
Extracting C:\ProgramData\BcContainerHelper\0692cdf8-6622-4235-90bf-509d8d345241\PreviousVersion.app
aCICatech SOLUCIONES TECNOLOGICAS, SL_Alquinta = 1.2.5.0
Latest Supported Runtime Version: 10.1
NewVersion.app is Signed with Authenticode certificate: CN=Acicatech servicios tecnologicos S.L., O=Acicatech servicios tecnologicos S.L., S=Cantabria, C=E
S
Extracting C:\ProgramData\BcContainerHelper\cf5bcc9f-53f3-49e4-abc3-d93dac0ae0de\NewVersion.app
App Runtime Version is '9.0'
Excluding Runtime Version from app.json
Analyzing: NewVersion.app
Using affixes: AST
Using previous app: aCICatech SOLUCIONES TECNOLOGICAS, SL_Alquinta_1.2.5.0.app
Downloading C:\ProgramData\BcContainerHelper\7b1a73da-5860-4c3b-a9b6-48f6f32c69fc\appsource.default.ruleset.json
Using WebClient
AppSourceCop.json content:
{
    "Publisher":  "aCICatech SOLUCIONES TECNOLOGICAS, SL",
    "Name":  "Alquinta",
    "mandatoryAffixes":  [
                             "AST"
                         ],
    "Version":  "1.2.5.0"
}
Ruleset.json content:
{
    "name":  "Run-AlCops RuleSet",
    "description":  "Generated by Run-AlCops",
    "includedRuleSets":  [
                             {
                                 "path":  "C:\\ProgramData\\BcContainerHelper\\7b1a73da-5860-4c3b-a9b6-48f6f32c69fc\\appsource.default.ruleset.json",
                                 "action":  "Default"
                             }
                         ]
}
Using Symbols Folder: C:\ProgramData\BcContainerHelper\0692cdf8-6622-4235-90bf-509d8d345241
Copying System.app from Container
Copying Microsoft_AMC Banking 365 Fundamentals_21.4.52563.53801.app from Container
Copying Microsoft_Any_21.4.52563.53801.app from Container
Copying Microsoft_API Reports - Finance_21.4.52563.53801.app from Container
Copying Microsoft_Application_21.4.52563.53801.app from Container
Copying Microsoft_Base Application_21.4.52563.53801.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release (ES)_21.4.52563.53801.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release_21.4.52563.53801.app from Container
Copying Microsoft_Business Central Cloud Migration API_21.4.52563.53801.app from Container
Copying Microsoft_Business Central Intelligent Cloud_21.4.52563.53801.app from Container
Copying Microsoft_Company Hub_21.4.52563.53801.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset (ES)_21.4.52563.53801.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset_21.4.52563.53801.app from Container
Copying Microsoft_Czech language (Czechia)_21.4.52563.53801.app from Container
Copying Microsoft_Danish language (Denmark)_21.4.52563.53801.app from Container
Copying Microsoft_Data Archive_21.4.52563.53801.app from Container
Copying Microsoft_Data Search_21.4.52563.53801.app from Container
Copying Microsoft_Dutch language (Belgium)_21.4.52563.53801.app from Container
Copying Microsoft_Dutch language (Netherlands)_21.4.52563.53801.app from Container
Copying Microsoft_Email - Current User Connector_21.4.52563.53801.app from Container
Copying Microsoft_Email - Microsoft 365 Connector_21.4.52563.53801.app from Container
Copying Microsoft_Email - Outlook REST API_21.4.52563.53801.app from Container
Copying Microsoft_Email - SMTP API_21.4.52563.53801.app from Container
Copying Microsoft_Email - SMTP Connector_21.4.52563.53801.app from Container
Copying Microsoft_English language (Australia)_21.4.52563.53801.app from Container
Copying Microsoft_English language (Canada)_21.4.52563.53801.app from Container
Copying Microsoft_English language (New Zealand)_21.4.52563.53801.app from Container
Copying Microsoft_English language (United Kingdom)_21.4.52563.53801.app from Container
Copying Microsoft_English language (United States)_21.4.52563.53801.app from Container
Copying Microsoft_Essential Business Headlines_21.4.52563.53801.app from Container
Copying Microsoft_Finnish language (Finland)_21.4.52563.53801.app from Container
Copying Microsoft_French language (Belgium)_21.4.52563.53801.app from Container
Copying Microsoft_French language (Canada)_21.4.52563.53801.app from Container
Copying Microsoft_French language (France)_21.4.52563.53801.app from Container
Copying Microsoft_French language (Switzerland)_21.4.52563.53801.app from Container
Copying Microsoft_German language (Austria)_21.4.52563.53801.app from Container
Copying Microsoft_German language (Germany)_21.4.52563.53801.app from Container
Copying Microsoft_German language (Switzerland)_21.4.52563.53801.app from Container
Copying Microsoft_Icelandic language (Iceland)_21.4.52563.53801.app from Container
Copying Microsoft_Intelligent Cloud Base_21.4.52563.53801.app from Container
Copying Microsoft_Intrastat Core_21.4.52563.53801.app from Container
Copying Microsoft_Intrastat ES_21.4.52563.53801.app from Container
Copying Microsoft_Italian language (Italy)_21.4.52563.53801.app from Container
Copying Microsoft_Italian language (Switzerland)_21.4.52563.53801.app from Container
Copying Microsoft_Late Payment Prediction_21.4.52563.53801.app from Container
Copying Microsoft_Library Assert_21.4.52563.53801.app from Container
Copying Microsoft_Library Variable Storage_21.4.52563.53801.app from Container
Copying Microsoft_Microsoft Pay Payments_21.4.52563.53801.app from Container
Copying Microsoft_Norwegian language (Norway)_21.4.52563.53801.app from Container
Copying Microsoft_Payment Links to PayPal_21.4.52563.53801.app from Container
Copying Microsoft_Performance Toolkit_21.4.52563.53801.app from Container
Copying Microsoft_Permissions Mock_21.4.52563.53801.app from Container
Copying Microsoft_Recommended Apps_21.4.52563.53801.app from Container
Copying Microsoft_Russian language (Russia)_21.4.52563.53801.app from Container
Copying Microsoft_Sales and Inventory Forecast_21.4.52563.53801.app from Container
Copying Microsoft_Send To Email Printer_21.4.52563.53801.app from Container
Copying Microsoft_Service Declaration_21.4.52563.53801.app from Container
Copying Microsoft_Shopify Connector_21.4.52563.53801.app from Container
Copying Microsoft_Simplified Bank Statement Import_21.4.52563.53801.app from Container
Copying Microsoft_Spanish language (Mexico)_21.4.52563.53801.app from Container
Copying Microsoft_Spanish language (Spain)_21.4.52563.53801.app from Container
Copying Microsoft_Swedish language (Sweden)_21.4.52563.53801.app from Container
Copying Microsoft_System Application_21.4.52563.53801.app from Container
Copying Microsoft_Test Runner_21.4.52563.53801.app from Container
Copying Microsoft_Troubleshoot FA Ledger Entries_21.4.52563.53801.app from Container
Copying Microsoft_Universal Print Integration_21.4.52563.53801.app from Container
Copying Microsoft_VAT Group Management_21.4.52563.53801.app from Container
Copying Microsoft_WorldPay Payments Standard_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_AnonymizedDataSharing__21.4.52563.53801.app from Container
Copying Microsoft__Exclude_APIV1__21.4.52563.53801.app from Container
Copying Microsoft__Exclude_APIV2__21.4.52563.53801.app from Container
Copying Microsoft__Exclude_Bank Deposits_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_ClientAddIns__21.4.52563.53801.app from Container
Copying Microsoft__Exclude_Connectivity Apps_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_Email Logging Using Graph API_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_Microsoft Dynamics 365 - SmartList_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_Onboarding Signals_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_PlanConfiguration__21.4.52563.53801.app from Container
Copying Microsoft__Exclude_ReportLayouts_21.4.52563.53801.app from Container
Copying Microsoft__Exclude_SyncBaseApp__21.4.52563.53801.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.4.52563.52836 ()
Dependency App exists
Processing dependency Microsoft_System_21.0.52534.52595 ()
Dependency App exists
Processing dependency aCICatech SOLUCIONES TECNOLOGICAS, SL_Acicatech Access Control_1.0.3.0 (ecd9ec2a-a5f9-42b7-b3d9-22f4d1a2fead)
Downloading symbols: aCICatech SOLUCIONES TECNOLOGICAS, SL_Acicatech Access Control_1.0.3.0.app
Url : /dev/packages?appId=ecd9ec2a-a5f9-42b7-b3d9-22f4d1a2fead&versionText=1.0.3.0&tenant=default
Using WebClient
Compile-AppInBcContainer Telemetry Correlation Id: 62944cec-2ab4-4812-924a-f49c2786caa5
ERROR No se encuentra la propiedad 'ClientServicesCredentialType' en este objeto. Compruebe que existe.
Ignoring warnings
Ignoring infos
Copy C:\ProgramData\BcContainerHelper\cf5bcc9f-53f3-49e4-abc3-d93dac0ae0de\NewVersion.app to C:\ProgramData\BcContainerHelper\0692cdf8-6622-4235-90bf-509d8
d345241

Running AppSourceCop took 22 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 3 seconds

AL Validation finished in 86 seconds
 __      __   _ _     _       _   _               _____                _ _       
 \ \    / /  | (_)   | |     | | (_)             |  __ \              | | |      
  \ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__) |___ ___ _   _| | |_ ___ 
   \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  _  // _ \ __| | | | | __/ __|
    \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | \ \  __\__ \ |_| | | |_\__ \
     \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \_\___|___/\__,_|_|\__|___/

1 errors found in NewVersion.app on https://bcartifacts.azureedge.net/sandbox/21.4.52563.53801/es:
No se encuentra la propiedad 'ClientServicesCredentialType' en este objeto. Compruebe que existe.

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

1 errors found in NewVersion.app on https://bcartifacts.azureedge.net/sandbox/21.4.52563.53801/es: No se encuentra la propiedad 'ClientServicesCredentialType' en este objeto. Compruebe que existe.

Additional context

Its happening from 2 weeks ago. App submission on appsource is failing also , and no telemetry on appinsights.

Versteege commented 1 year ago

Any update on this issue ? It seems it is still there, also in validation to BC22 version.

mstjernfelt commented 1 year ago

@freddydk Bump :)

freddydk commented 1 year ago

Sorry, have been crazy busy - will try to get to the bottom of all issues this week.

This is likely because your app has a dependency on aCICatech SOLUCIONES TECNOLOGICAS, SL_Acicatech Access Control_1.0.3.0.app

which needs to be added to Run-AlValidation as installApps.

IgorAlfonso commented 1 year ago

Hi freddy , is still added look at the script.

Run-AlValidation `
    -apps "C:\appsource\NewVersion.app" `
    -installapps **"C:\appsource\AccessControl.app"** `
    -affixes "AST" `
    -countries "es" `
    -previousApps "C:\appsource\PreviousVersion.app"
freddydk commented 1 year ago

Yeah, I can see that, but somehow that app isn't being recognized. Is that a runtime package? If I am to investigate further, I need a repro - if you can .zip the 3 apps and make them available for me on a onedrive or like to freddyk at microsoft dot com, then I will try and see what happens.

freddydk commented 1 year ago

It might be that the app in installApps needs to have the exact name from the compilation aCICatech SOLUCIONES TECNOLOGICAS, SL_Acicatech Access Control_1.0.3.0.app