Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error when running Run-AlValidation : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. #3452

Closed
egecov opened this issue Mar 28, 2024 · 6 comments · Fixed by #3453
Assignees

Comments

@egecov
Copy link

egecov commented Mar 28, 2024

Hi,
I've installed the latest version of the BCCOntainerHelper 6.0.12.
I Wonder what is the reason for the error.
Whether from the last BC Package version or it is a bug.
Can You help me somehow?

Best regards,
Evgeni.
Thanks in advance!

When I Ran the command :

$validationResults = Run-AlValidation `
    -installApps @( 'C:\Users\adminfts\Desktop\AL\FTSBaseApp\Install\FTS Bulgaria Ltd._FTS Base App_23.0.0.30.app', `
                    'C:\Users\adminfts\Desktop\AL\Localisation_BG\Install\FTS Bulgaria Ltd._BG Localization for Dynamics 365 Business Central_23.0.0.350.app') `
    -apps @( 'C:\Users\adminfts\Desktop\AL\GeneralBook\Install\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app' ) `
    -validateCurrent `
    -countries "bg" `
    -affixes "FBG" `
    -supportedCountries "bg"

I have received this message :

PS C:\Windows\system32> $validationResults = Run-AlValidation `
    -installApps @( 'C:\Users\adminfts\Desktop\AL\FTSBaseApp\Install\FTS Bulgaria Ltd._FTS Base App_23.0.0.30.app', `
                    'C:\Users\adminfts\Desktop\AL\Localisation_BG\Install\FTS Bulgaria Ltd._BG Localization for Dynamics 365 Business Central_23.0.0.350.app') `
    -apps @( 'C:\Users\adminfts\Desktop\AL\GeneralBook\Install\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app' ) `
    -validateCurrent `
    -countries "bg" `
    -affixes "FBG" `
    -supportedCountries "bg"
  _____                               _                
 |  __ \                             | |               
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Container name                  bcserver
Credential                      admin/Naca6153
MemoryLimit                     8G
validateVersion                 
validateCurrent                 True
validateNextMinor               False
validateNextMajor               False
SasToken                        Not Specified
countries                       bg
validateCountries               bg
affixes                         FBG
supportedCountries              bg
ObsoleteTagMinAllowedMajorMinor 
vsixFile                        
Install Apps
- C:\Users\adminfts\Desktop\AL\FTSBaseApp\Install\FTS Bulgaria Ltd._FTS Base App_23.0.0.30.app
- C:\Users\adminfts\Desktop\AL\Localisation_BG\Install\FTS Bulgaria Ltd._BG Localization for Dynamics 365 Business Central_23.0.0.350.app
Previous Apps
- None
Apps
- C:\Users\adminfts\Desktop\AL\GeneralBook\Install\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app

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

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

Pulling generic image took 0 seconds
  _____       _                      _                         _   _  __           _       
 |  __ \     | |                    (_)                       | | (_)/ _|         | |      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
 | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/
                                                                                           
Found https://bcartifacts.azureedge.net/sandbox/23.5.16502.17953/bg
Using https://bcartifacts.azureedge.net/sandbox/23.5.16502.17953/bg

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

Creating container for country bg
BcContainerHelper is version 6.0.12
BcContainerHelper is running as administrator
HyperV is Disabled
UsePsSession is True
UsePwshForBc24 is True
Host is Microsoft Windows Server 2016 Datacenter - 10.0.14393.6796
Docker Client Version is 20.10.4
Docker Server Version is 20.10.4
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2016-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 23.5.16502.17953
Platform: 23.0.17926.0
Generic Tag: 1.0.2.17
Container OS Version: 10.0.14393.6796 (ltsc2016)
Host OS Version: 10.0.14393.6796 (ltsc2016)
Using process isolation
Using locale 
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
Downloading using WebClient
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:ltsc2016-filesonly
3263f08110ce9cc49072755a705b87e2d6067fb3e4211781dfa7d8f2a3f32241
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/23.5.16502.17953/bg
Using installer from C:\Run\210-new
Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, a
ppArtifactPath=c:\dl\sandbox\23.5.16502.17953\bg, platformArtifactPath=c:\dl\sandbox\23.5.16502.17953\platform, databasePath=c:\dl\sandbox\23.5.16502.17953\bg\BusinessCentral-BG.bak, licenseFilePath=c:\dl\s
andbox\23.5.16502.17953\bg\Cronus.bclicense, rebootContainer=True
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\23.5.16502.17953\platform\ServiceTier\Program Files
c:\dl\sandbox\23.5.16502.17953\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\23.5.16502.17953\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\23.5.16502.17953\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\23.5.16502.17953\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\23.5.16502.17953\platform
c:\dl\sandbox\23.5.16502.17953\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\23.5.16502.17953\platform\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\23.5.16502.17953\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\23.5.16502.17953\bg\Extensions
Copying Applications
C:\dl\sandbox\23.5.16502.17953\platform\Applications
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 41 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from bcserver
Cleanup old dotnet core assemblies

Creating container took 62 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 11

PowerShell Call Stack:
at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 87
at Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: line 140
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 477
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 456
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 399
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 363
at Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 361
at <ScriptBlock>, <No file>: line 1

Container Free Physical Memory: 5.8Gb

Services in container bcserver:
- No services found

Latest Supported Runtime Version: 
FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app is Signed with Authenticode certificate: CN=FTS Bulgaria Ltd., O=FTS Bulgaria Ltd., S=Sofia, C=BG
Extracting C:\ProgramData\BcContainerHelper\954c7785-e40e-457a-a48d-e4c333057555\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app
Excluding Runtime Version from app.json
Analyzing: FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app
Using affixes: FBG
Using supportedCountries: bg
Downloading C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\appsource.default.ruleset.json
Downloading using WebClient
AppSourceCop.json content:
{
    "mandatoryAffixes":  [
                             "FBG"
                         ],
    "supportedCountries":  [
                               "bg"
                           ]
}
Ruleset.json content:
{
    "name":  "Run-AlCops RuleSet",
    "description":  "Generated by Run-AlCops",
    "includedRuleSets":  [
                             {
                                 "path":  "C:\\ProgramData\\BcContainerHelper\\4158644d-00c9-4a89-a5ad-94875158460f\\appsource.default.ruleset.json",
                                 "action":  "Default"
                             }
                         ]
}
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\230\Service to assemblyProbingPath
Removing dotnet Framework Assemblies
Using Symbols Folder: C:\ProgramData\BcContainerHelper\3d628ec4-708e-4477-a210-5f2e0a89d98a
Copying System.app from Container
Copying Microsoft_Any_23.5.16502.17953.app from Container
Copying Microsoft_API - Cross Environment Intercompany_23.5.16502.17953.app from Container
Copying Microsoft_API Reports - Finance_23.5.16502.17953.app from Container
Copying Microsoft_Application_23.5.16502.17953.app from Container
Copying Microsoft_Audit File Export_23.5.16502.17953.app from Container
Copying Microsoft_Bank Account Reconciliation With AI_23.5.16502.17953.app from Container
Copying Microsoft_Base Application_23.5.16502.17953.app from Container
Copying Microsoft_Business Central Cloud Migration - Previous Release_23.5.16502.17953.app from Container
Copying Microsoft_Business Central Cloud Migration API_23.5.16502.17953.app from Container
Copying Microsoft_Business Central Intelligent Cloud_23.5.16502.17953.app from Container
Copying Microsoft_Company Hub_23.5.16502.17953.app from Container
Copying Microsoft_Contoso Coffee Demo Dataset_23.5.16502.17953.app from Container
Copying Microsoft_Czech language (Czechia)_23.5.16502.17953.app from Container
Copying Microsoft_Danish language (Denmark)_23.5.16502.17953.app from Container
Copying Microsoft_Data Archive_23.5.16502.17953.app from Container
Copying Microsoft_Data Search_23.5.16502.17953.app from Container
Copying Microsoft_Dutch language (Belgium)_23.5.16502.17953.app from Container
Copying Microsoft_Dutch language (Netherlands)_23.5.16502.17953.app from Container
Copying Microsoft_E-Document Core_23.5.16502.17953.app from Container
Copying Microsoft_E-Documents Connector with External Endpoints_23.5.16502.17953.app from Container
Copying Microsoft_Email - Current User Connector_23.5.16502.17953.app from Container
Copying Microsoft_Email - Microsoft 365 Connector_23.5.16502.17953.app from Container
Copying Microsoft_Email - Outlook REST API_23.5.16502.17953.app from Container
Copying Microsoft_Email - SMTP API_23.5.16502.17953.app from Container
Copying Microsoft_Email - SMTP Connector_23.5.16502.17953.app from Container
Copying Microsoft_Enforced Digital Vouchers_23.5.16502.17953.app from Container
Copying Microsoft_English language (Australia)_23.5.16502.17953.app from Container
Copying Microsoft_English language (Canada)_23.5.16502.17953.app from Container
Copying Microsoft_English language (New Zealand)_23.5.16502.17953.app from Container
Copying Microsoft_English language (United Kingdom)_23.5.16502.17953.app from Container
Copying Microsoft_English language (United States)_23.5.16502.17953.app from Container
Copying Microsoft_Error Messages with Recommendations_23.5.16502.17953.app from Container
Copying Microsoft_Essential Business Headlines_23.5.16502.17953.app from Container
Copying Microsoft_EU 3-Party Trade Purchase_23.5.16502.17953.app from Container
Copying Microsoft_Finnish language (Finland)_23.5.16502.17953.app from Container
Copying Microsoft_French language (Belgium)_23.5.16502.17953.app from Container
Copying Microsoft_French language (Canada)_23.5.16502.17953.app from Container
Copying Microsoft_French language (France)_23.5.16502.17953.app from Container
Copying Microsoft_French language (Switzerland)_23.5.16502.17953.app from Container
Copying Microsoft_German language (Austria)_23.5.16502.17953.app from Container
Copying Microsoft_German language (Germany)_23.5.16502.17953.app from Container
Copying Microsoft_German language (Switzerland)_23.5.16502.17953.app from Container
Copying Microsoft_Icelandic language (Iceland)_23.5.16502.17953.app from Container
Copying Microsoft_Intelligent Cloud Base_23.5.16502.17953.app from Container
Copying Microsoft_Intrastat Core_23.5.16502.17953.app from Container
Copying Microsoft_Italian language (Italy)_23.5.16502.17953.app from Container
Copying Microsoft_Italian language (Switzerland)_23.5.16502.17953.app from Container
Copying Microsoft_Late Payment Prediction_23.5.16502.17953.app from Container
Copying Microsoft_Library Assert_23.5.16502.17953.app from Container
Copying Microsoft_Library Variable Storage_23.5.16502.17953.app from Container
Copying Microsoft_Microsoft Pay Payments_23.5.16502.17953.app from Container
Copying Microsoft_Norwegian language (Norway)_23.5.16502.17953.app from Container
Copying Microsoft_Payment Links to PayPal_23.5.16502.17953.app from Container
Copying Microsoft_Payment Practices_23.5.16502.17953.app from Container
Copying Microsoft_Performance Toolkit_23.5.16502.17953.app from Container
Copying Microsoft_Permissions Mock_23.5.16502.17953.app from Container
Copying Microsoft_Recommended Apps_23.5.16502.17953.app from Container
Copying Microsoft_Review General Ledger Entries_23.5.16502.17953.app from Container
Copying Microsoft_Russian language (Russia)_23.5.16502.17953.app from Container
Copying Microsoft_SAF-T_23.5.16502.17953.app from Container
Copying Microsoft_Sales and Inventory Forecast_23.5.16502.17953.app from Container
Copying Microsoft_Send remittance advice by email_23.5.16502.17953.app from Container
Copying Microsoft_Send To Email Printer_23.5.16502.17953.app from Container
Copying Microsoft_Service Declaration_23.5.16502.17953.app from Container
Copying Microsoft_Shopify Connector_23.5.16502.17953.app from Container
Copying Microsoft_Simplified Bank Statement Import_23.5.16502.17953.app from Container
Copying Microsoft_Spanish language (Mexico)_23.5.16502.17953.app from Container
Copying Microsoft_Spanish language (Spain)_23.5.16502.17953.app from Container
Copying Microsoft_Statistical Accounts_23.5.16502.17953.app from Container
Copying Microsoft_Swedish language (Sweden)_23.5.16502.17953.app from Container
Copying Microsoft_System Application_23.5.16502.17953.app from Container
Copying Microsoft_Test Runner_23.5.16502.17953.app from Container
Copying Microsoft_Troubleshoot FA Ledger Entries_23.5.16502.17953.app from Container
Copying Microsoft_Universal Print Integration_23.5.16502.17953.app from Container
Copying Microsoft_VAT Group Management_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_APIV1__23.5.16502.17953.app from Container
Copying Microsoft__Exclude_APIV2__23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Bank Deposits_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Business_Events__23.5.16502.17953.app from Container
Copying Microsoft__Exclude_ClientAddIns__23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Connectivity Apps_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Email Logging Using Graph API_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Master_Data_Management_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Microsoft Dynamics 365 - SmartList_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_Onboarding Signals_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_PlanConfiguration__23.5.16502.17953.app from Container
Copying Microsoft__Exclude_ReportLayouts_23.5.16502.17953.app from Container
Copying Microsoft__Exclude_SyncBaseApp__23.5.16502.17953.app from Container
Processing dependency Microsoft_Application_22.0.0.0 ()
WARNING: Unable to download symbols for Microsoft_Application_22.0.0.0.app
Processing dependency Microsoft_System_22.0.0.0 ()
WARNING: Unable to download symbols for Microsoft_System_22.0.0.0.app
Processing dependency FTS Bulgaria Ltd._BG Localization for Dynamics 365 Business Central_22.0.0.0 (80deda94-44ca-434f-ad83-9aa4da8130ed)
WARNING: Unable to download symbols for FTS Bulgaria Ltd._BG Localization for Dynamics 365 Business Central_22.0.0.0.app
Compiling...
.\alc.exe /project:"C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f" /packagecachepath:"C:\ProgramData\BcContainerHelper\3d628ec4-708e-4477-a210-5f2e0a89d98a" /out:"C:\ProgramData\BcCo
ntainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app" /GenerateReportLayout- /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.D
ynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\ruleset.json /reportsuppresseddiagnostics /BuildBy:"BcContainerHelper,6.0.12" /assemblyprobingpath
s:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\bcserver\.netPackages\Service"
Microsoft (R) AL Compiler version 13.0.14.54431
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'Bulgarian General Ledger Functionality' containing '26' files at '13:58:27.569'.

C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(209,85): warning AL0432: Table 'Invoice Post. Buffer' is marked for removal. Reason: This table will be rep
laced by table Invoice Posting Buffer in new Invoice Posting implementation.. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(208,48): warning AL0432: Method 'OnBeforePostInvoicePostBuffer' is marked for removal. Reason: Moved to Sal
es Invoice Posting implementation. Use the new event OnBeforePostLines in codeunit 825 "Sales Post Invoice Events".. Tag: 19.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(216,48): warning AL0432: Method 'OnBeforePostCustomerEntry' is marked for removal. Reason: Moved to Sales I
nvoice Posting implementation. Use the new event OnPostLedgerEntryOnBeforeGenJnlPostLine in codeunit 825 "Sales Post Invoice Events".. Tag: 19.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(225,125): warning AL0432: Table 'Invoice Post. Buffer' is marked for removal. Reason: This table will be re
placed by table Invoice Posting Buffer in new Invoice Posting implementation.. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(224,48): warning AL0432: Method 'OnBeforePostInvPostBuffer' is marked for removal. Reason: Moved to Sales I
nvoice Posting implementation. Use the new event OnPostLinesOnBeforeGenJnlLinePost in codeunit 825 "Sales Post Invoice Events".. Tag: 19.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(248,83): warning AL0432: Table 'Invoice Post. Buffer' is marked for removal. Reason: This table will be rep
laced by table Invoice Posting Buffer in new Invoice Posting implementation.. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(247,48): warning AL0432: Method 'OnBeforePostInvoicePostBuffer' is marked for removal. Reason: Moved to Pur
chase Invoice Posting implementation. Use the new event OnBeforePostLines in codeunit 826 "Purch. Post Invoice Events".. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(256,125): warning AL0432: Table 'Invoice Post. Buffer' is marked for removal. Reason: This table will be re
placed by table Invoice Posting Buffer in new Invoice Posting implementation.. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(255,48): warning AL0432: Method 'OnBeforePostInvPostBuffer' is marked for removal. Reason: Moved to Purchas
e Invoice Posting implementation. Use the new event OnPostLinesOnBeforeGenJnlLinePost in codeunit 826 "Purch. Post Invoice Events".. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(262,48): warning AL0432: Method 'OnBeforePostVendorEntry' is marked for removal. Reason: Moved to Purchase 
Invoice Posting implementation. Use the new event OnPostLedgerEntryOnBeforeGenJnlPostLine in codeunit 826 "Purch. Post Invoice Events".. Tag: 20.0.
C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\src\GLBookEvents.Codeunit.al(303,149): warning AL0432: Table 'Invt. Posting Buffer' is marked for removal. Reason: This table will be ma
rked as temporary. Make sure you are not using this table to store records.. Tag: 21.0.

Compilation ended at '13:58:36.629'.

C:\ProgramData\BcContainerHelper\4158644d-00c9-4a89-a5ad-94875158460f\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app successfully created in 95 seconds
Ignoring warnings
Ignoring infos
Copy C:\ProgramData\BcContainerHelper\954c7785-e40e-457a-a48d-e4c333057555\FTS Bulgaria Ltd._Bulgarian General Ledger Functionality_23.0.0.110.app to C:\ProgramData\BcContainerHelper\3d628ec4-708e-4477-a210
-5f2e0a89d98a

Running AppSourceCop took 139 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 4 seconds

AL Validation finished in 225 seconds
  _____                          ___      __   _ _     _       _   _                _____                            
 |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)              / ____|                           
 | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | (___  _   _  ___ ___ ___ ___ ___ 
 |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \   \___ \| | | |/ __/ __/ _ \ __/ __|
 | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | |  ____) | |_| | (__ (__  __\__ \__ \
 |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_____/ \__,_|\___\___\___|___/___/                                                                                             
<<<<<<<<<<<<<<<<<<<<<<<<<
The error rows are :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 11

PowerShell Call Stack:
at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 87
at Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: line 140
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 477
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 456
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 399
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 363
at Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: line 361
at <ScriptBlock>, <No file>: line 1
@xgwsanh
Copy link

xgwsanh commented Mar 28, 2024

Same Problem here, but only with current artifacts. If I validate against nextMajor, everything works fine.

@freddydk
Copy link
Contributor

it helps a lot if you mark the code as code (like I have done above)
by adding

3 of these characters: ` before and after.

@freddydk
Copy link
Contributor

freddydk commented Mar 28, 2024

Same Problem here, but only with current artifacts.

Are you also running Windows Server 2016?

@xgwsanh
Copy link

xgwsanh commented Mar 28, 2024

Same Problem here, but only with current artifacts.

Are you also running Windows Server 2016?

No, I am on Windows 10

Creating container for country de
BcContainerHelper is version 6.0.12
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
UsePwshForBc24 is True
Host is Microsoft Windows 10 Enterprise - 10.0.19045.4170
Docker Client Version is 20.10.21
Docker Server Version is 20.10.21
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2019-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 23.5.16502.17953
Platform: 23.0.17926.0
Generic Tag: 1.0.2.17
Container OS Version: 10.0.17763.5576 (ltsc2019)
Host OS Version: 10.0.19045.4170 (22H2)
Using hyperv isolation

If I am validating against Current and working as administrator, I get the following errors (with end result "Success")

Creating container took 53 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 11

PowerShell Call Stack:
bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 87
bei Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: Zeile 140
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 477
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 456
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 399
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 363
bei Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 361
bei <ScriptBlock>, <Keine Datei>: Zeile 1

Container Free Physical Memory: 7.1Gb

Services in container bcserver:
- No services found

If I am validating against Current and working as normal user (no administrator rights) I get the following errors (with end result "Failure")

Creating container took 49 seconds
  _____                   _                                    _____                           _____            
 |  __ \                 (_)                 /\               / ____|                         / ____|           
 | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
 |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
 | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
 |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
                                   __/ |          | |   | |                                              | |    
                                  |___/           |_|   |_|                                              |_|    
The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.

Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 5

PowerShell Call Stack:
bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 87
bei Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: Zeile 140
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 477
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 456
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 399
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 363
bei Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 361
bei <ScriptBlock>, <Keine Datei>: Zeile 1

Container Free Physical Memory: 7.1Gb

Services in container bcserver:
- No services found

Validatation against NextMajor works however with or without administration rights.
Hope this helps...

@freddydk
Copy link
Contributor

The problem here is that it fails to find the latest supported runtime version of the business central version used.
I will fix that.
Validation continues though - it is just not validated that the runtime version in app.json is OK.

freddydk added a commit to freddydk/navcontainerhelper that referenced this issue Mar 29, 2024
@egecov
Copy link
Author

egecov commented Mar 29, 2024

Hi,
Thanks for your feedback!
I've changed the parameter from -ValidateCurrent to validateNextMinor & validateNextMajor
and all errors disappeared.

freddydk added a commit that referenced this issue Mar 29, 2024
Fixes #3452

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants