Error: Invalid datatype for aggregate COUNT for mapping variable <MAPPINGVARIABLE name>.
In the XML file, you specified COUNT for the AGGFUNCTION attribute, and you entered an invalid value for the DATATYPE attribute for the specified MAPPINGVARIABLE element.
Edit the XML file and enter either LONG or SHORT for the DATATYPE attribute for the MAPPINGVARIABLE element. Or, export the object again and then import it.