Cannot convert argument query with value Microsoft.SharePoint.Client.CamlQuery
When using PowerShell CSOM modules for SharePoint, I randomly stumbled into the error message: Cannot convert argument query with value Microsoft.SharePoint.Client.CamlQuery. I was seeing the error when running a CAML query and calling GetItems(): $query = New-Object Microsoft.SharePoint.Client.CamlQuery $query.ViewXml =...