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
{{ No output but I want to have some files moved. }}
Actual Output
{{ Cannot process argument transformation on parameter 'WinSCPSession'. Cannot convert value "WinSCP.Session" to type "WinSCP.Session". Error: "Cannot convert the "WinSCP.Session" value of type "Deserialized.WinSCP.Session" to type
"WinSCP.Session"."
+ CategoryInfo : InvalidData: (:) [Get-WinSCPSession], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-WinSCPSession
+ PSComputerName : [localhost]. }}
WinSCP-PowerShell Version
{{ 5.13.7.0 WinSCP }}\
Environment
{{ Windows 2016
$PSVersionTable.PSVersion
Major Minor Build Revision
5 1 14393 2636 . }}
The text was updated successfully, but these errors were encountered:
Please fill in the following fields, replacing the values inside the brackets
{{ }}
.Issue Description
{{ Sessions can't be passed into workflows, they become serialized whatever that means. }}
Example
{{ $sess = New-WinSCPSession -SessionOption $sessoption
Move-em-Nice $folders.name $sess
workflow Move-em-Nice
{
param([string[]]$remotedirs, [WinSCP.Session]$sess)
WORK
}}
Expected Output
{{ No output but I want to have some files moved. }}
Actual Output
{{ Cannot process argument transformation on parameter 'WinSCPSession'. Cannot convert value "WinSCP.Session" to type "WinSCP.Session". Error: "Cannot convert the "WinSCP.Session" value of type "Deserialized.WinSCP.Session" to type
"WinSCP.Session"."
+ CategoryInfo : InvalidData: (:) [Get-WinSCPSession], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-WinSCPSession
+ PSComputerName : [localhost]. }}
WinSCP-PowerShell Version
{{ 5.13.7.0 WinSCP }}\
Environment
{{ Windows 2016
$PSVersionTable.PSVersion
Major Minor Build Revision
5 1 14393 2636 . }}
The text was updated successfully, but these errors were encountered: