Export/Import Schema validation bug - ItemFileConverted
-
Friday, April 25, 2008 1:27 PM
Hi,
I keep getting these nice errors from WSS from time to time. The most recent one is this, on a list import operation:
FatalError: The 'Type' attribute is invalid - The value 'ItemFileConverted' is invalid according to its datatype 'urn: deployment-manifest-schema: SPEventReceiverType' - The Enumeration constraint failed.
The full stack trace:
Code Snippet[4/25/2008 4:12:52 PM]: FatalError: The 'Type' attribute is invalid - The value 'ItemFileConverted' is invalid according to its datatype 'urn:deployment-manifest-schema:SPEventReceiverType' - The Enumeration constraint failed.
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String[] args, Exception innerException)
at System.Xml.Schema.XmlSchemaValidator.CheckAttributeValue(Object value, SchemaAttDef attdef)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)
at System.Xml.XsdValidatingReader.ValidateAttributes()
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.ProcessReaderEvent()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr)
at System.Xml.XmlReader.ReadOuterXml()
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()
*** Inner exception:
The Enumeration constraint failed.So, what is this? A bug in WSS? We can see in this MSDN page on SPEventReceiverType that ItemFileConverted event receiver is indeed not registered... So if we export a list with an ItemFileConverted event receiver, we have no way of importing it...
Moreover, there is this description on ItemFileTransformed:
ItemFileTransformed -
Indicates a file was converted.
Hmmm... does this mean someone mistyped?
Can anyone comment on this? Preferably someone from Microsoft..
All Replies
-
Thursday, October 16, 2008 2:04 PMHi,
Same error when adding eventreceiver to a list:
I found in msdn :
- SPEventReceiverType enumeration : ItemFileTransformed - Indicates a file was converted
(http://msdn.microsoft.com/en-us/library/bb263624.aspx)
- SPItemEventReceiver Members : ItemFileConverted
(http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver_members.aspx)
Is this a bug? -
Thursday, March 26, 2009 2:58 PMI have managed to add ItemFileConverted to event list, but It never gets catched... ???It this realy possible to use?
-
Tuesday, February 14, 2012 10:12 AM
I have the same problem with ItemFileConverted.
What can we do to make this work.
I need to catch an event when a document is converted from word to pdf.
Can someone from the Sharepoint team help us here?
Thanks:-)

