Error when trying to import

Oct 8, 2015 at 8:39 PM
I am getting the following error when trying to import the file. This is using Server 2012 R2, as well as 2008 Enterprise R2.

Importing the xml input file E:\AD Import\Import\ADsyncXML_import.xml
System.Management.Automation.ArgumentTransformationMetadataException: Cannot convert value "System.Object[]" to type "System.
Xml.XmlDocument". Error: "The specified node cannot be inserted as the valid child of this node, because the specified node i
s the wrong type." ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "System.Object[]" to type "
System.Xml.XmlDocument". Error: "The specified node cannot be inserted as the valid child of this node, because the specified
node is the wrong type." ---> System.InvalidOperationException: The specified node cannot be inserted as the valid child of
this node, because the specified node is the wrong type.
at System.Xml.XmlDocument.AppendChildForLoad(XmlNode newChild, XmlDocument doc)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Management.Automation.LanguagePrimitives.ConvertToXml(Object valueToConvert, Type resultType, Boolean recursion,
PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.ConvertToXml(Object valueToConvert, Type resultType, Boolean recursion,
PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConversionData1.Invoke(Object valueToConvert, Type resultType, Boolean
recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IF
ormatProvider formatProvider, TypeTable backupTypeTable)
at System.Management.Automation.ArgumentTypeConverterAttribute.Transform(EngineIntrinsics engineIntrinsics, Object inputDa
ta, Boolean bindingParameters, Boolean bindingScriptCmdlet)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exceptio
n)
at System.Management.Automation.Interpreter.ActionCallInstruction
2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)