Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Powershell - getting cannot index into a null array

$
0
0

foreach($i in $list.items)
    {
        $linkDetails= new-object Microsoft.SharePoint.SPFieldUrlValue($i["ItemLink"])
        write-host $linkDetails.URL
        write-host $linkDetails.Description
        Write-host $i.Url

}

More than half of the items in the library does not have ItemLink field populated. How to get around this issue when there is no value in the field?


Viewing all articles
Browse latest Browse all 17574

Trending Articles



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