Simon Fell > Its just code > but wait there's more

Wednesday, July 7, 2004

Turns out it doesn't matter what it generates, cause it doesn't run. :(

Unhandled Exception: System.InvalidOperationException: Method SforceService.create can not be reflected. 
	---> System.InvalidOperationException: There was an error reflecting 'sObjects'. 
	---> System.InvalidOperationException: There was an error reflecting type 'sforce.sObject'. 
	---> System.InvalidOperationException: There was an error reflecting type 'sforce.Task'. 
	---> System.InvalidOperationException: There was an error reflecting property 'ActivityDate'. 
	---> System.InvalidOperationException: There was an error reflecting type 'System.Nullable`1[System.DateTime]'.
 	--->System.InvalidOperationException: 'date' is an invalid value for the XmlElementAttribute.DataType property. 
	The property may only be specified for primitive types.
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, 
	ImportContext context, String dataType, Boolean repeats, Boolean openModel)

ActivitiyDate is specified as

<s:element minOccurs="0" name="ActivityDate" nillable="true" type="s:date" />