none
Export/Import Schema validation bug - ItemFileConverted

    Question

  • 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..

    Friday, April 25, 2008 1:27 PM

All replies