Skip to content

The 'Flush-ContainerHelperCache' command was found in the module 'BcContainerHelper', but the module could not be loaded. #2709

@printvisdevelopment

Description

@printvisdevelopment

Describe the issue
Flush-ContainerHelperCache command cannot be executed. As instructed, I run Import-module BcContainerHelper.
The Import-module BcVontainerHelper fails to find module in module directory.

Scripts used to create container and cause the issue

import-module BcContainerHelper

Full output of scripts

BcContainerHelper version 4.0.3
BcContainerHelper emits usage statistics telemetry to Microsoft
. : The term 'C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.3\Api\Get-NavContainerApiCompanyId.ps1' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.3\BcContainerHelper.psm1:333 char:3
+ . (Join-Path $PSScriptRoot "Api\Get-NavContainerApiCompanyId.ps1")
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...piCompanyId.ps1:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException
 
import-module : The module to process 'BcContainerHelper.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program 
Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.3\BcContainerHelper.psd1' was not processed because no valid module was found in any module directory.
At line:1 char:1
+ import-module BcContainerHelper
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (BcContainerHelper:String) [Import-Module], PSInvalidOperationException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Screenshots
image

Additional context

  • worked until Thursday last week

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions