Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Cannot process argument transformation on parameter 'resultSet'. Array was not a one-dimensional array.

$
0
0

Hey guys,

I'm trying to pass a multi-dimensional array though parameter to another function, however the powershell gives me the following error: 

Cannot process argument transformation on parameter 'resultSet'. Array was not a one-dimensional array.

    

The code is the follow: 

Function ParseResultSet() {
    Param ([array[,]] $resultSet, [int] $lineHeader)

    write-host ($resultSet)

}

parseResultSet $filterChangeResults 1

the filterChangeResults type is the following: 

$filterChangeResults.GetType()

IsPublic IsSerial Name                                     BaseType                                                                                                                                                                              
-------- -------- ----                                     --------                                                                                                                                                                               
True     True     Object[,]                                System.Array       

Can you help me?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>