You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting form Jannuary 16, 2025, our release pipelines fail due to a PnP.PowerShell error because no valid module was found.
This is the output:
Starting: Connect to SharePoint and copy files
==============================================================================
Task : Run PnP PowerShell
Description : Can use PowerShell cmdlets inline or with a referenced script.
Version : 3.0.4
Author : Sebastian Schütze
Help : This task helps you to execute inline PowerShell or a referenced file with the already loaded PnP PowerShell module. <br/><br/>[More Information](https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps)
==============================================================================
The script was partially inspired by the official Azure DevOps inline PowerShell task from Microsoft Corporation. Some lines are reused.
Source Code can be found here https://github.com/Microsoft/azure-pipelines-tasks/tree/e9f6da2c523e456f10421ed40dbeed1dd45af2b4/Tasks/powerShell
Module SharePointPnPPowerShellOnline with version 3.29.2101.0 is downloading.
##[error]The specified module 'C:\hostedtoolcache\windows\SharePointPnPPowerShellOnline\3.29.2101.0\SharePointPnP.PowerShell.Online.Commands.dll' was not loaded because no valid module file was found in any module directory.
Module Path is: C:\hostedtoolcache\windows\SharePointPnPPowerShellOnline\3.29.2101.0\SharePointPnP.PowerShell.Online.Commands.dll
Generating the scripts...
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\7ece8d4f-9e85-4189-bcaa-2c51617545ac.ps1'"
Import-Module : The specified module
'C:\hostedtoolcache\windows\SharePointPnPPowerShellOnline\3.29.2101.0\SharePointPnP.PowerShell.Online.Commands.dll'
was not loaded because no valid module file was found in any module directory.
At D:\a\_temp\7ece8d4f-9e85-4189-bcaa-2c51617545ac.ps1:2 char:9
+ $null = Import-Module C:\hostedtoolcache\windows\SharePointPnPPowerSh ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\hostedtoolca...ne.Commands.dll:String) [Import-Module], FileNot
FoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
##[error]PowerShell exited with code: 1
Finishing: Connect to SharePoint and copy files
The pipeline target is connect to our SharePoint and upload some files.
Anybody has seen and solved this issue?
Any assistance would be greatly appreciated
The text was updated successfully, but these errors were encountered:
3.29.2101.0 is the old version from https://github.com/pnp/PnP-PowerShell that has been archived, not updated since 2021 and no longer maintained. It's strongly recommended to migrated to PnP.PowerShell module .
SharePointPnPPowerShellOnline is the old module name, while the new one is PnP.PowerShell . That's why the "latest version" is still the 2021 one is your script.
Starting form Jannuary 16, 2025, our release pipelines fail due to a PnP.PowerShell error because no valid module was found.
This is the output:
The pipeline target is connect to our SharePoint and upload some files.
Anybody has seen and solved this issue?
Any assistance would be greatly appreciated
The text was updated successfully, but these errors were encountered: