Works but I commented out deployment of datasets

I had to comment out the deployment of datasets.  I'm getting the error:
ForEach-Object : Exception setting "Query": "Cannot convert the
"System.Xml.XmlElement" value of type
"System.Xml.XmlElement#http://schemas.microsoft.com/sqlserver/reporting/201
0/01/shareddatasetdefinition#Query" to type
"SSRS.ReportingService2010.QueryDefinition"."
At C:\Users\jdgonzalez\documents\GitHub\Powershell\SSRS 2012
Deploy\SSRSDeploy\Deploy-SSRSProject.ps1:198 char:16
+     ForEach-Object <<<<  {
+ CategoryInfo          : InvalidOperation: (:) [ForEach-Object],
RuntimeException
+ FullyQualifiedErrorId :
PropertyAssignmentException,Microsoft.PowerShell.Commands.ForEachObjectCommand

I can't seem to fix it.